summaryrefslogtreecommitdiff
path: root/lib/meson.build
diff options
context:
space:
mode:
authorDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-08-10 08:20:58 +0300
committerDirk-Jan C. Binnema <djcb@djcbsoftware.nl>2022-08-15 23:18:18 +0300
commit11389247c532bf3564ea89ea3264f707d1340dd2 (patch)
treefc686b483a9c75785af2b82fa06b6b5f54b4eeed /lib/meson.build
parent3ba2c4ea08b5f9631556718c1f9b59d5213ea15b (diff)
tests: update test helpers and users
Move test-mu-common to mu-test-utils. Use mu_test_init as a wrapper for g_test_init. Update users.
Diffstat (limited to 'lib/meson.build')
-rw-r--r--lib/meson.build16
1 files changed, 3 insertions, 13 deletions
diff --git a/lib/meson.build b/lib/meson.build
index ccbf091..eb04859 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -1,4 +1,4 @@
-## Copyright (C) 2021 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
+## Copyright (C) 2021-2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -63,16 +63,6 @@ tokenize = executable(
dependencies: [ lib_mu_utils_dep, glib_dep ],
install: false)
-# test helpers
-lib_test_mu_common=static_library('mu-test-common', [
- 'tests/test-mu-common.cc',
- 'tests/test-mu-common.hh'],
- dependencies: [ glib_dep, thread_dep,
- config_h_dep ])
-lib_test_mu_common_dep=declare_dependency(
- link_with: lib_test_mu_common,
- include_directories: include_directories(['tests']))
-
# actual tests
test('test-threads',
@@ -80,12 +70,12 @@ test('test-threads',
'mu-query-threads.cc',
install: false,
cpp_args: ['-DBUILD_TESTS'],
- dependencies: [glib_dep, lib_mu_dep, lib_test_mu_common_dep]))
+ 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, lib_test_mu_common_dep]))
+ dependencies: [glib_dep, lib_mu_dep]))
subdir('tests')