diff options
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 7e1940e..4a0f492 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -6,6 +6,14 @@ foreach kind : ['static', 'shared'] public_test = executable('yasl-' + kind + '-api-test', 'test_lifecycle.c', dependencies: dep) test(kind + '-api', public_test) endforeach +pre_init_test = executable('yasl-public-api-test', 'common/test_public_api.c', dependencies: yasl_dep) +test('public-api', pre_init_test) +foreach std : ['c11', 'c17'] + header_test = executable('yasl-header-' + std + '-test', 'test_header_c11.c', + include_directories: include_directories('../include'), + c_args: ['-pedantic-errors'], override_options: ['c_std=' + std]) + test('header-' + std, header_test) +endforeach if add_languages('cpp', native: false, required: false) cpp_api = executable('yasl-cpp-api-test', 'test_api.cpp', dependencies: shared_dep, cpp_args: ['-pedantic-errors', @@ -76,6 +84,11 @@ if has_x11 test('tablet-x11-native', python, args: [files('helpers/run_x11_tablet.py'), xorg, native_tablet], timeout: 30) endif endif +x11_input_args = [] +if has_x11 and get_option('integration_tests') + x11_input_args += [executable('yasl-input-x11-test', 'x11/test_input.c', + include_directories: inc, dependencies: yasl_dep)] +endif if get_option('integration_tests') display_test_sources = has_cocoa ? files('cocoa/display.m') : [] integration = executable('yasl-surface-integration', ['common/test_surface_integration.c'] + display_test_sources, @@ -93,7 +106,8 @@ if get_option('integration_tests') weston = find_program('weston') xwayland = find_program('Xwayland') test('surface-backends', python, args: [files('helpers/run_surfaces.py'), weston, xwayland, - integration, hello_example, tablet_example, gl_integration, vulkan_integration, notepad_example], timeout: 120) + integration, hello_example, tablet_example, gl_integration, vulkan_integration, notepad_example] + + x11_input_args, timeout: 120) if has_wayland and has_egl reconnect = executable('yasl-reconnect-test', 'wayland/test_reconnect.c', dependencies: yasl_dep, c_args: ['-DTEST_VULKAN=' + (has_vulkan ? '1' : '0')]) |
