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
@ -45,32 +45,24 @@ common_sources = [
|
|||||||
test_driver_protocol_code,
|
test_driver_protocol_code,
|
||||||
]
|
]
|
||||||
|
|
||||||
executable('subsurface-remap-toplevel',
|
wayland_test_clients = [
|
||||||
sources: [
|
'subsurface-remap-toplevel',
|
||||||
'subsurface-remap-toplevel.c',
|
'invalid-subsurfaces',
|
||||||
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,
|
|
||||||
)
|
|
||||||
|
|
||||||
executable('invalid-subsurfaces',
|
foreach test : wayland_test_clients
|
||||||
sources: [
|
executable(test,
|
||||||
'invalid-subsurfaces.c',
|
sources: [
|
||||||
common_sources,
|
'@0@.c'.format(test),
|
||||||
],
|
common_sources,
|
||||||
include_directories: tests_includepath,
|
],
|
||||||
c_args: tests_c_args,
|
include_directories: tests_includepath,
|
||||||
dependencies: [
|
c_args: tests_c_args,
|
||||||
glib_dep,
|
dependencies: [
|
||||||
wayland_client_dep,
|
glib_dep,
|
||||||
],
|
wayland_client_dep,
|
||||||
install: have_installed_tests,
|
],
|
||||||
install_dir: wayland_test_client_installed_tests_libexecdir,
|
install: have_installed_tests,
|
||||||
)
|
install_dir: wayland_test_client_installed_tests_libexecdir,
|
||||||
|
)
|
||||||
|
endforeach
|
||||||
|
Loading…
Reference in New Issue
Block a user