cleanup: Map test files according to structure in src
For example cmd_account() is located in src/command/cmd_funcs.c. The unit test was located in tests/unittests/test_cmd_account.c. Let's move it to a subdirectory like tests/unittests/command/test_cmd_account.c to correpsond to the same structure.
This commit is contained in:
50
meson.build
50
meson.build
@@ -605,31 +605,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',
|
||||
)
|
||||
|
||||
@@ -666,7 +666,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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user