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 334019f839
commit 541e046d72
3 changed files with 320 additions and 15 deletions

View file

@ -1,8 +1,21 @@
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'],
],
dependencies: [wlroots, wayland_client]),
)
benchmark(
'scene',
executable('bench-scene', 'bench_scene.c', dependencies: wlroots),