From 8a747ea71e3840cbd8e771ea5c6b17e2657fc7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 1 Oct 2019 03:43:18 +0200 Subject: tests: Use meson suites Make possible to easily (not) run a sub-set of tests by using suites in tracker. Fixes https://gitlab.gnome.org/GNOME/tracker/issues/153 --- tests/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'tests/meson.build') diff --git a/tests/meson.build b/tests/meson.build index 2e19b0623..c7467781a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -28,6 +28,7 @@ test_bus_conf_file = configure_file( foreach t: tests test_name = t.get('name') test_exe = t.get('exe') + test_suite = t.get('suite', []) test_timeout = t.get('timeout', 30) # This flag marks unit tests which can't run alongside other unit tests. It @@ -47,17 +48,19 @@ foreach t: tests test_env.set('LANG', 'en_US.UTF8') if test_requires_dbus - test (test_name, dbus_run_session, + test(test_name, dbus_run_session, env: test_env, args: ['--config-file=@0@'.format(join_paths(meson.current_build_dir(), 'test-bus.conf')), '--', test_exe], + suite: test_suite, timeout: test_timeout, is_parallel: test_is_parallel) else - test (test_name, test_exe, - env: test_env, - timeout: test_timeout, - is_parallel: test_is_parallel) + test(test_name, test_exe, + env: test_env, + timeout: test_timeout, + suite: test_suite, + is_parallel: test_is_parallel) endif endforeach -- cgit v1.2.1