tests: move to tests/, make optional
While not recommended, sometimes it can be useful to disable building
the unit tests. This can be done now with
meson -Dtests=disabled build
This commit is contained in:
@ -90,78 +90,6 @@ list_maildirs = executable('list-maildirs', 'mu-scanner.cc',
|
||||
dependencies: [glib_dep, config_h_dep,
|
||||
lib_mu_utils_dep])
|
||||
|
||||
#
|
||||
# unit tests
|
||||
#
|
||||
|
||||
test('test-threads',
|
||||
executable('test-threads',
|
||||
'mu-query-threads.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, lib_mu_dep]))
|
||||
test('test-contacts-cache',
|
||||
executable('test-contacts-cache',
|
||||
'mu-contacts-cache.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, lib_mu_dep]))
|
||||
|
||||
test('test-config',
|
||||
executable('test-config',
|
||||
'mu-config.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, lib_mu_dep]))
|
||||
|
||||
test('test-query-macros',
|
||||
executable('test-query-macros',
|
||||
'mu-query-macros.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [lib_mu_dep]))
|
||||
|
||||
test('test-query-processor',
|
||||
executable('test-query-processor',
|
||||
'mu-query-processor.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [lib_mu_dep]))
|
||||
|
||||
test('test-query-parser',
|
||||
executable('test-query-parser',
|
||||
'mu-query-parser.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [lib_mu_dep]))
|
||||
|
||||
test('test-query-xapianizer',
|
||||
executable('test-query-xapianizer',
|
||||
'mu-query-xapianizer.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [lib_mu_dep]))
|
||||
|
||||
|
||||
test('test-indexer',
|
||||
executable('test-indexer', 'mu-indexer.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, config_h_dep,
|
||||
lib_mu_dep]))
|
||||
|
||||
test('test-scanner',
|
||||
executable('test-scanner', 'mu-scanner.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [glib_dep, config_h_dep,
|
||||
lib_mu_utils_dep]))
|
||||
|
||||
test('test-xapian-db',
|
||||
executable('test-xapian-db', 'mu-xapian-db.cc',
|
||||
install: false,
|
||||
cpp_args: ['-DBUILD_TESTS'],
|
||||
dependencies: [lib_mu_dep, config_h_dep]))
|
||||
|
||||
|
||||
subdir('tests')
|
||||
if not get_option('tests').disabled()
|
||||
subdir('tests')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user