mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 06:50:05 +01:00
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: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1065>
This commit is contained in:
parent
3390f2e647
commit
8cbf535ee5
1 changed files with 25 additions and 5 deletions
30
meson.build
30
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'],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue