diff options
author | Simon McVittie <smcv@collabora.com> | 2022-07-13 19:31:33 +0100 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2022-07-13 20:36:13 +0100 |
commit | 60a88f360ca42abd76d791c7e246197bda731e5f (patch) | |
tree | 8b48f3ccabfd7bc8d945a55c0ac5a34880ace851 /test/meson.build | |
parent | 5d3756f6fbc8fd03065f5f5e9db29aeb795e92bf (diff) | |
download | dbus-60a88f360ca42abd76d791c7e246197bda731e5f.tar.gz |
test: Don't prepend test- to the names of manual tests
This makes them consistent with what we do in Autotools.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/test/meson.build b/test/meson.build index 43ae3e93..e6360900 100644 --- a/test/meson.build +++ b/test/meson.build @@ -292,14 +292,14 @@ endif tests += [ { - 'name': 'service', + 'name': 'test-service', 'srcs': [ 'test-service.c' ], 'link': [ libdbus_testutils, ], 'install': true, 'test': false, }, { - 'name': 'sleep-forever', + 'name': 'test-sleep-forever', 'srcs': [ 'test-sleep-forever.c' ], 'link': [ libdbus_testutils, ], 'install': true, @@ -544,6 +544,12 @@ foreach test: tests suites = test.get('suite', ['dbus']) install = test.get('install', true) + if test.get('test', true) + exe_name = 'test-' + name + else + exe_name = name + endif + if 'slow' in suites timeout = 300 else @@ -552,7 +558,7 @@ foreach test: tests timeout = test.get('timeout', timeout) - test_exe = executable('test-' + name, + test_exe = executable(exe_name, srcs, link_with: link, dependencies: deps, @@ -577,8 +583,8 @@ foreach test: tests if install and test.get('test', true) installed_tests += [{ - 'name': 'test-' + test.get('name'), - 'exe': 'test-' + test.get('name') + exe_ext, + 'name': exe_name, + 'exe': exe_name + exe_ext, }] endif endforeach |