From 476bf230416aed7de05b8194451483ba12ace0be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 14 Jul 2023 00:40:09 +0200 Subject: [PATCH] tests: Use different suites This makes it easier to only run unit- or automation tests. Part-of: --- tests/meson.build | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/meson.build b/tests/meson.build index d54bdbbbf..df35080fe 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -18,7 +18,7 @@ dbus_runner = configure_file( configuration: dbusrunnerconf, ) -tests = [ +unit_tests = [ 'highlighter', 'insertSorted', 'jsParse', @@ -29,9 +29,10 @@ tests = [ 'versionCompare', ] -foreach test : tests +foreach test : unit_tests test(test, run_test, args: 'unit/@0@.js'.format(test), + suite: 'unit', workdir: meson.current_source_dir()) endforeach @@ -67,7 +68,8 @@ foreach shell_test : shell_tests test_name = shell_test['name'] options = shell_test.get('options', []) - test('shell-' + test_name, dbus_runner, + test(test_name, dbus_runner, + suite: 'shell', args: [ test_tool, '--headless',