Merge pull request #2099 from profanity-im/clean-unittests

Cleanup unittests and improve documentation for new contibutors
This commit is contained in:
Michael Vetter
2026-02-28 15:15:13 +01:00
committed by GitHub
118 changed files with 2675 additions and 2360 deletions

View File

@@ -606,31 +606,31 @@ if get_option('tests')
'tests/unittests/tools/stub_aesgcm_download.c',
'tests/unittests/tools/stub_plugin_download.c',
'tests/unittests/helpers.c',
'tests/unittests/test_form.c',
'tests/unittests/xmpp/test_form.c',
'tests/unittests/test_common.c',
'tests/unittests/test_autocomplete.c',
'tests/unittests/test_jid.c',
'tests/unittests/test_parser.c',
'tests/unittests/test_roster_list.c',
'tests/unittests/test_chat_session.c',
'tests/unittests/test_contact.c',
'tests/unittests/test_preferences.c',
'tests/unittests/test_server_events.c',
'tests/unittests/test_muc.c',
'tests/unittests/test_cmd_presence.c',
'tests/unittests/test_cmd_alias.c',
'tests/unittests/test_cmd_connect.c',
'tests/unittests/test_cmd_rooms.c',
'tests/unittests/test_cmd_account.c',
'tests/unittests/test_cmd_sub.c',
'tests/unittests/test_cmd_bookmark.c',
'tests/unittests/test_cmd_otr.c',
'tests/unittests/test_cmd_pgp.c',
'tests/unittests/test_cmd_join.c',
'tests/unittests/test_cmd_roster.c',
'tests/unittests/test_cmd_disconnect.c',
'tests/unittests/test_callbacks.c',
'tests/unittests/test_plugins_disco.c',
'tests/unittests/tools/test_autocomplete.c',
'tests/unittests/xmpp/test_jid.c',
'tests/unittests/tools/test_parser.c',
'tests/unittests/xmpp/test_roster_list.c',
'tests/unittests/xmpp/test_chat_session.c',
'tests/unittests/xmpp/test_contact.c',
'tests/unittests/config/test_preferences.c',
'tests/unittests/event/test_server_events.c',
'tests/unittests/xmpp/test_muc.c',
'tests/unittests/command/test_cmd_presence.c',
'tests/unittests/command/test_cmd_alias.c',
'tests/unittests/command/test_cmd_connect.c',
'tests/unittests/command/test_cmd_rooms.c',
'tests/unittests/command/test_cmd_account.c',
'tests/unittests/command/test_cmd_sub.c',
'tests/unittests/command/test_cmd_bookmark.c',
'tests/unittests/command/test_cmd_otr.c',
'tests/unittests/command/test_cmd_pgp.c',
'tests/unittests/command/test_cmd_join.c',
'tests/unittests/command/test_cmd_roster.c',
'tests/unittests/command/test_cmd_disconnect.c',
'tests/unittests/plugins/test_callbacks.c',
'tests/unittests/plugins/test_plugins_disco.c',
'tests/unittests/unittests.c',
)
@@ -667,7 +667,7 @@ if get_option('tests')
'unittests',
unittest_sources,
dependencies: profanity_deps + [cmocka_dep],
include_directories: [inc, include_directories('tests')],
include_directories: [inc, include_directories('tests'), include_directories('tests/unittests')],
build_by_default: false,
)
@@ -677,6 +677,10 @@ if get_option('tests')
endif
endif
run_target('doublecheck',
command: ['scripts/quality-check.sh', '--fix-formatting', '--meson']
)
summary({
'Platform': platform,
'Package status': get_option('buildtype'),