tests/wayland: Declare test clients using a list
It'll be easier to add new tests this way. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1557>
This commit is contained in:
parent
c55a3d1edc
commit
4d15438d66
1 changed files with 20 additions and 28 deletions
|
@ -45,24 +45,15 @@ common_sources = [
|
|||
test_driver_protocol_code,
|
||||
]
|
||||
|
||||
executable('subsurface-remap-toplevel',
|
||||
sources: [
|
||||
'subsurface-remap-toplevel.c',
|
||||
common_sources,
|
||||
],
|
||||
include_directories: tests_includepath,
|
||||
c_args: tests_c_args,
|
||||
dependencies: [
|
||||
glib_dep,
|
||||
wayland_client_dep,
|
||||
],
|
||||
install: have_installed_tests,
|
||||
install_dir: wayland_test_client_installed_tests_libexecdir,
|
||||
)
|
||||
wayland_test_clients = [
|
||||
'subsurface-remap-toplevel',
|
||||
'invalid-subsurfaces',
|
||||
]
|
||||
|
||||
executable('invalid-subsurfaces',
|
||||
foreach test : wayland_test_clients
|
||||
executable(test,
|
||||
sources: [
|
||||
'invalid-subsurfaces.c',
|
||||
'@0@.c'.format(test),
|
||||
common_sources,
|
||||
],
|
||||
include_directories: tests_includepath,
|
||||
|
@ -74,3 +65,4 @@ executable('invalid-subsurfaces',
|
|||
install: have_installed_tests,
|
||||
install_dir: wayland_test_client_installed_tests_libexecdir,
|
||||
)
|
||||
endforeach
|
||||
|
|
Loading…
Reference in a new issue