diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-11 23:51:43 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-11 23:51:43 +0300 |
| commit | e813252e685d761235ad45e170d97c9375f51958 (patch) | |
| tree | e57bae545c0eb22aac4119a890b8344ee7cd09d2 /tests/meson.build | |
| parent | 608b49052178ea74f593c925cdeedf352aa1c357 (diff) | |
| parent | 6eac0a5f2c552728efca420b1129fae7d4fea773 (diff) | |
Merge branch 'backend-selection' into main
- Implement runtime backend selection (Wayland, X11, Cocoa)
- Add native X11 backend with clipboard, keyboard, mouse, and placement
- Integrate multi-backend integration tests running under Weston and Xwayland
- Retain zero-hole struct packing, branchless ALU/LUT primitives, and paced event loop
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 0000000..950f5f5 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,45 @@ +test_exe = executable( + 'yasl-test', + 'test_lifecycle.c', + include_directories: inc, + link_with: yasl_lib.get_static_lib(), + dependencies: deps, +) + +add_test_setup('asan') +add_test_setup('tsan') +add_test_setup('msan') + +test('basic', test_exe) + +selection_test = executable( + 'yasl-selection-test', + 'common/test_selection.c', + dependencies: yasl_dep, +) +test('selection', selection_test) + +if get_option('integration_tests') + if has_cocoa + native_test = executable('yasl-native-test', 'cocoa/test_native.c', + dependencies: yasl_dep, + ) + test('native', native_test, timeout: 20) + else + if not has_wayland or not has_x11 + error('Linux integration tests require Wayland and X11.') + endif + backend_test = executable( + 'yasl-backend-test', + 'common/test_backends.c', + dependencies: yasl_dep, + ) + python = find_program('python3') + weston = find_program('weston') + xwayland = find_program('Xwayland') + test('backends', python, + args: [files('helpers/run_backends.py'), weston, xwayland, backend_test], + timeout: 60, + ) + endif +endif |
