2018-05-09 17:34:56 +10:00
|
|
|
subdir('data')
|
|
|
|
|
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_test_lib_sources = [
|
2018-03-09 12:03:07 +11:00
|
|
|
'mock-object.vala',
|
2018-03-09 11:58:02 +11:00
|
|
|
'test-case.vala',
|
|
|
|
|
]
|
|
|
|
|
|
2017-12-15 15:11:24 +11:00
|
|
|
geary_test_engine_sources = [
|
|
|
|
|
'test-engine.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
|
2018-03-09 11:58:02 +11:00
|
|
|
# These should be included in the test lib sources, but we can't
|
|
|
|
|
# since that would make the test lib depend on geary-engine.vapi,
|
|
|
|
|
# and the engine test sute needs to depend
|
|
|
|
|
# geary-engine_internal.vapi, which leads to duplicate symbols when
|
|
|
|
|
# linking
|
|
|
|
|
'engine/api/geary-account-mock.vala',
|
2018-05-28 23:52:59 +04:30
|
|
|
'engine/api/geary-credentials-mediator-mock.vala',
|
2018-03-09 11:58:02 +11:00
|
|
|
'engine/api/geary-email-identifier-mock.vala',
|
|
|
|
|
'engine/api/geary-email-properties-mock.vala',
|
|
|
|
|
'engine/api/geary-folder-mock.vala',
|
2019-04-04 16:57:53 +11:00
|
|
|
'engine/api/geary-folder-properties-mock.vala',
|
2018-03-09 11:58:02 +11:00
|
|
|
|
2018-07-02 19:03:42 +10:00
|
|
|
'engine/api/geary-account-information-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/api/geary-attachment-test.vala',
|
|
|
|
|
'engine/api/geary-engine-test.vala',
|
Convert Geary.FolderRoot to be an actual root, not just a top-level
Instead of each top-level IMAP folder being a FolderRoot object, then
children of that being FolderPath objects, this makes FolderRoot an
"empty" FolderPath, so that both top-level and descendant folders are
plain FolderPath objects. Aside from being more technically correct,
this means that empty namespace roots can now be used interchangably
with non-empty namespace roots (addressing issue #181), and custom
folder implementations no longer need to provide their own trivial,
custom FolderRoot.
To support this, a notion of an IMAP root and a local root have been
added from which all remote and local folder paths are now derived,
existing places that assume top-level == root have been fixed, and
unit tests have been added.
2019-01-14 12:10:48 +11:00
|
|
|
'engine/api/geary-folder-path-test.vala',
|
2018-09-05 23:10:30 +10:00
|
|
|
'engine/api/geary-service-information-test.vala',
|
2017-12-15 15:11:24 +11:00
|
|
|
'engine/app/app-conversation-test.vala',
|
2018-04-04 15:58:44 +10:00
|
|
|
'engine/app/app-conversation-monitor-test.vala',
|
2017-12-15 15:11:24 +11:00
|
|
|
'engine/app/app-conversation-set-test.vala',
|
2018-05-08 09:18:06 +09:30
|
|
|
'engine/db/db-database-test.vala',
|
|
|
|
|
'engine/db/db-versioned-database-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/imap/command/imap-create-command-test.vala',
|
2018-07-26 11:25:35 +10:00
|
|
|
'engine/imap/command/imap-fetch-command-test.vala',
|
2018-07-20 13:29:09 +10:00
|
|
|
'engine/imap/message/imap-data-format-test.vala',
|
2018-07-20 13:35:26 +10:00
|
|
|
'engine/imap/message/imap-mailbox-specifier-test.vala',
|
2018-07-01 14:47:23 +10:00
|
|
|
'engine/imap/parameter/imap-list-parameter-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/imap/response/imap-namespace-response-test.vala',
|
|
|
|
|
'engine/imap/transport/imap-deserializer-test.vala',
|
2019-01-14 11:01:03 +11:00
|
|
|
'engine/imap-db/imap-db-account-test.vala',
|
2018-04-28 20:56:09 +10:00
|
|
|
'engine/imap-db/imap-db-attachment-test.vala',
|
2018-05-08 09:18:06 +09:30
|
|
|
'engine/imap-db/imap-db-database-test.vala',
|
2019-02-13 18:41:49 +11:00
|
|
|
'engine/imap-db/imap-db-folder-test.vala',
|
2018-01-12 12:23:33 +11:00
|
|
|
'engine/imap-engine/account-processor-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/mime-content-type-test.vala',
|
|
|
|
|
'engine/rfc822-mailbox-address-test.vala',
|
2018-01-31 11:09:09 +10:30
|
|
|
'engine/rfc822-mailbox-addresses-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/rfc822-message-test.vala',
|
|
|
|
|
'engine/rfc822-message-data-test.vala',
|
2018-05-10 13:47:47 +10:00
|
|
|
'engine/rfc822-part-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/rfc822-utils-test.vala',
|
2018-05-17 15:41:01 +10:00
|
|
|
'engine/util-ascii-test.vala',
|
2018-05-25 00:32:17 +10:00
|
|
|
'engine/util-config-file-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'engine/util-html-test.vala',
|
|
|
|
|
'engine/util-idle-manager-test.vala',
|
|
|
|
|
'engine/util-inet-test.vala',
|
|
|
|
|
'engine/util-js-test.vala',
|
2018-01-29 09:57:24 +10:30
|
|
|
'engine/util-string-test.vala',
|
2018-05-09 17:34:56 +10:00
|
|
|
'engine/util-timeout-manager-test.vala',
|
|
|
|
|
|
|
|
|
|
geary_test_engine_resources
|
2017-12-15 15:11:24 +11:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
geary_test_client_sources = [
|
|
|
|
|
'test-client.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
|
2018-07-23 13:28:58 +10:00
|
|
|
# These should be included in the test lib sources, but we can't
|
|
|
|
|
# since that would make the test lib depend on geary-engine.vapi,
|
|
|
|
|
# and the engine test sute needs to depend
|
|
|
|
|
# geary-engine_internal.vapi, which leads to duplicate symbols when
|
|
|
|
|
# linking
|
2019-03-09 20:06:45 +11:00
|
|
|
'engine/api/geary-email-identifier-mock.vala',
|
2018-07-23 13:28:58 +10:00
|
|
|
'engine/api/geary-credentials-mediator-mock.vala',
|
|
|
|
|
|
2018-07-23 14:38:57 +10:00
|
|
|
'client/accounts/accounts-manager-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
'client/application/geary-configuration-test.vala',
|
|
|
|
|
'client/components/client-web-view-test.vala',
|
|
|
|
|
'client/components/client-web-view-test-case.vala',
|
|
|
|
|
'client/composer/composer-web-view-test.vala',
|
2019-03-09 19:59:25 +11:00
|
|
|
'client/util/util-avatar-test.vala',
|
2019-03-09 20:06:45 +11:00
|
|
|
'client/util/util-email-test.vala',
|
2017-12-09 00:45:29 +01:00
|
|
|
|
|
|
|
|
'js/client-page-state-test.vala',
|
|
|
|
|
'js/composer-page-state-test.vala',
|
|
|
|
|
'js/conversation-page-state-test.vala',
|
2017-12-15 15:11:24 +11:00
|
|
|
|
2017-12-12 15:34:41 +11:00
|
|
|
geary_compiled_schema,
|
|
|
|
|
geary_resources
|
2017-12-09 00:45:29 +01:00
|
|
|
]
|
|
|
|
|
|
2019-03-31 01:42:08 +11:00
|
|
|
geary_test_integration_sources = [
|
|
|
|
|
'test-integration.vala',
|
|
|
|
|
|
|
|
|
|
'integration/imap/client-session.vala',
|
|
|
|
|
]
|
|
|
|
|
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_test_lib_dependencies = [
|
2017-12-15 15:11:24 +11:00
|
|
|
gee,
|
|
|
|
|
gio,
|
2018-03-09 11:58:02 +11:00
|
|
|
glib
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
geary_test_engine_dependencies = [
|
|
|
|
|
geary_engine_internal_dep
|
2017-12-15 15:11:24 +11:00
|
|
|
]
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_test_engine_dependencies += geary_engine_dependencies
|
2017-12-15 15:11:24 +11:00
|
|
|
|
|
|
|
|
geary_test_client_dependencies = [
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_client_dep
|
2017-12-09 00:45:29 +01:00
|
|
|
]
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_test_client_dependencies += geary_client_dependencies
|
|
|
|
|
|
2019-03-31 01:42:08 +11:00
|
|
|
geary_test_lib = static_library('test-lib',
|
2018-03-09 11:58:02 +11:00
|
|
|
geary_test_lib_sources,
|
|
|
|
|
dependencies: geary_test_lib_dependencies,
|
|
|
|
|
include_directories: config_h_dir,
|
|
|
|
|
vala_args: geary_vala_options,
|
|
|
|
|
c_args: geary_c_options,
|
|
|
|
|
)
|
2017-12-09 00:45:29 +01:00
|
|
|
|
2019-03-31 01:42:08 +11:00
|
|
|
geary_test_engine_bin = executable('test-engine',
|
2017-12-15 15:11:24 +11:00
|
|
|
geary_test_engine_sources,
|
2018-03-09 11:58:02 +11:00
|
|
|
link_with: geary_test_lib,
|
2017-12-15 15:11:24 +11:00
|
|
|
dependencies: geary_test_engine_dependencies,
|
2017-12-09 00:45:29 +01:00
|
|
|
include_directories: config_h_dir,
|
2017-12-12 15:34:41 +11:00
|
|
|
vala_args: geary_vala_options,
|
|
|
|
|
c_args: geary_c_options,
|
2017-12-09 00:45:29 +01:00
|
|
|
)
|
2017-12-15 15:11:24 +11:00
|
|
|
|
2019-03-31 01:42:08 +11:00
|
|
|
geary_test_client_bin = executable('test-client',
|
2017-12-15 15:11:24 +11:00
|
|
|
geary_test_client_sources,
|
|
|
|
|
dependencies: geary_test_client_dependencies,
|
2018-03-09 11:58:02 +11:00
|
|
|
link_with: geary_test_lib,
|
2017-12-15 15:11:24 +11:00
|
|
|
include_directories: config_h_dir,
|
|
|
|
|
vala_args: geary_vala_options,
|
|
|
|
|
c_args: geary_c_options,
|
|
|
|
|
)
|
|
|
|
|
|
2019-03-31 01:42:08 +11:00
|
|
|
geary_test_integration_bin = executable('test-integration',
|
|
|
|
|
geary_test_integration_sources,
|
|
|
|
|
dependencies: [
|
|
|
|
|
geary_engine_dep,
|
|
|
|
|
gee,
|
|
|
|
|
gio,
|
|
|
|
|
gmime,
|
|
|
|
|
webkit2gtk,
|
|
|
|
|
],
|
|
|
|
|
link_with: geary_test_lib,
|
|
|
|
|
include_directories: config_h_dir,
|
|
|
|
|
vala_args: geary_vala_options,
|
|
|
|
|
c_args: geary_c_options,
|
|
|
|
|
)
|
|
|
|
|
|
2017-12-15 15:11:24 +11:00
|
|
|
test('engine-tests', geary_test_engine_bin)
|
|
|
|
|
test('client-tests', geary_test_client_bin)
|