From: Peter Hutterer Date: Thu, 17 Oct 2024 09:34:11 +0000 (+1000) Subject: meson: break out the test suites into manual list X-Git-Tag: 1.27.0~70 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cbf535ee528e8bb16a37e43f1c9f006b52be39c;p=platform%2Fupstream%2Flibinput.git meson: break out the test suites into manual list If we start having multiple TEST_COLLECTION() in the same file we can no longer use the file name - so a manually maintained list it is. Part-of: --- diff --git a/meson.build b/meson.build index 23947b4e..fae140eb 100644 --- a/meson.build +++ b/meson.build @@ -903,7 +903,6 @@ if get_option('tests') test_utils, suite : ['all']) - # When adding new files to this list, update the CI tests_sources = [ 'test/test-udev.c', 'test/test-path.c', @@ -935,10 +934,31 @@ if get_option('tests') src_man += 'test/libinput-test-suite.man' - foreach testfile : tests_sources - tfile = testfile.split('test/test-')[1] - group = tfile.split('.c')[0] - group = group.replace('-', '_') + # When adding new TEST_COLLECTION() macros, add to this list and the CI + # $ git grep TEST_COLLECTION test/test-* | sed -e "s|.*TEST_COLLECTION(\(.*\))|\t\t'\1',|" | sort + collections = [ + 'device', + 'gestures', + 'keyboard', + 'log', + 'misc', + 'pad', + 'path', + 'pointer', + 'quirks', + 'switch', + 'tablet', + 'totem', + 'touch', + 'touchpad', + 'touchpad_buttons', + 'touchpad_tap', + 'trackball', + 'trackpoint', + 'udev', + ] + + foreach group : collections test('libinput-test-suite-@0@'.format(group), libinput_test_runner, suite : ['all', 'valgrind', 'root', 'hardware'],