tests: Initial wlr_surface unit test

A small unit test of wlr_surface, currently testing surface and buffer
damage with scaling, transform and viewport, including interaction with
surface state locking.
This commit is contained in:
Kenny Levinsen 2026-03-29 11:48:28 +02:00
parent f053f77dca
commit fc22a423ed
2 changed files with 307 additions and 0 deletions

View file

@ -1,8 +1,22 @@
wayland_client = dependency('wayland-client', kwargs: wayland_kwargs)
test(
'box',
executable('test-box', 'test_box.c', dependencies: wlroots),
)
test(
'surface',
executable('test-surface',
[
'test_surface.c',
'../util/shm.c',
protocols_code['viewporter'],
protocols_client_header['viewporter'],
],
dependencies: [wlroots, wayland_client]),
)
benchmark(
'scene',
executable('bench-scene', 'bench_scene.c', dependencies: wlroots),