2019-12-06 18:05:32 +00:00
|
|
|
wayland_test_client_installed_tests_libexecdir = join_paths(
|
|
|
|
mutter_installed_tests_libexecdir,
|
|
|
|
'wayland-test-clients',
|
|
|
|
)
|
|
|
|
|
|
|
|
test_driver_server_header = custom_target(
|
|
|
|
'test-driver server header',
|
|
|
|
input: 'test-driver.xml',
|
|
|
|
output: 'test-driver-server-protocol.h',
|
|
|
|
command: [
|
|
|
|
wayland_scanner,
|
|
|
|
'server-header',
|
|
|
|
'@INPUT@', '@OUTPUT@',
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
test_driver_client_header = custom_target(
|
|
|
|
'test-driver client header',
|
|
|
|
input: 'test-driver.xml',
|
|
|
|
output: 'test-driver-client-protocol.h',
|
|
|
|
command: [
|
|
|
|
wayland_scanner,
|
|
|
|
'client-header',
|
|
|
|
'@INPUT@', '@OUTPUT@',
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
test_driver_protocol_code = custom_target(
|
|
|
|
'test-driver source',
|
|
|
|
input: 'test-driver.xml',
|
|
|
|
output: 'test-driver-protocol.c',
|
|
|
|
command: [
|
|
|
|
wayland_scanner,
|
|
|
|
'private-code',
|
|
|
|
'@INPUT@', '@OUTPUT@',
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
common_sources = [
|
|
|
|
'wayland-test-client-utils.c',
|
|
|
|
'wayland-test-client-utils.h',
|
|
|
|
wayland_protocol_client_headers,
|
|
|
|
wayland_protocol_sources,
|
|
|
|
test_driver_client_header,
|
|
|
|
test_driver_protocol_code,
|
|
|
|
]
|
|
|
|
|
2020-11-10 21:08:36 +00:00
|
|
|
wayland_test_clients = [
|
2022-05-21 16:18:01 +00:00
|
|
|
{
|
|
|
|
'name': 'buffer-transform',
|
|
|
|
},
|
2022-07-29 11:22:38 +00:00
|
|
|
{
|
|
|
|
'name': 'single-pixel-buffer',
|
|
|
|
},
|
2022-05-13 20:09:35 +00:00
|
|
|
{
|
|
|
|
'name': 'subsurface-remap-toplevel',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'subsurface-reparenting',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'subsurface-parent-unmapped',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'invalid-subsurfaces',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'invalid-xdg-shell-actions',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'xdg-apply-limits',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'xdg-activation',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'xdg-toplevel-bounds',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
'name': 'dma-buf-scanout',
|
|
|
|
'extra_deps': [
|
|
|
|
libdrm_dep,
|
|
|
|
libgbm_dep,
|
|
|
|
],
|
|
|
|
},
|
2020-11-10 21:08:36 +00:00
|
|
|
]
|
2020-02-12 20:54:19 +00:00
|
|
|
|
2020-11-10 21:08:36 +00:00
|
|
|
foreach test : wayland_test_clients
|
2022-05-13 20:09:35 +00:00
|
|
|
test_name = test['name']
|
|
|
|
deps = [
|
|
|
|
glib_dep,
|
|
|
|
gobject_dep,
|
|
|
|
wayland_client_dep,
|
|
|
|
]
|
|
|
|
if test.has_key('extra_deps')
|
|
|
|
deps += test['extra_deps']
|
|
|
|
endif
|
|
|
|
|
|
|
|
executable(test_name,
|
2020-11-10 21:08:36 +00:00
|
|
|
sources: [
|
2022-05-13 20:09:35 +00:00
|
|
|
'@0@.c'.format(test_name),
|
2020-11-10 21:08:36 +00:00
|
|
|
common_sources,
|
|
|
|
],
|
2021-05-06 21:37:35 +00:00
|
|
|
include_directories: tests_includes,
|
2020-11-10 21:08:36 +00:00
|
|
|
c_args: tests_c_args,
|
2022-05-13 20:09:35 +00:00
|
|
|
dependencies: deps,
|
2020-11-10 21:08:36 +00:00
|
|
|
install: have_installed_tests,
|
|
|
|
install_dir: wayland_test_client_installed_tests_libexecdir,
|
|
|
|
)
|
|
|
|
endforeach
|