[client] wayland: test presentation feedback lifecycle

This commit is contained in:
Geoffrey McRae
2026-08-12 04:15:49 +10:00
parent 6c0f8d8a28
commit a12abedd60
2 changed files with 530 additions and 0 deletions

View File

@@ -102,6 +102,39 @@ set_tests_properties(wayland-motion-tests PROPERTIES
TIMEOUT 10
)
if(ENABLE_WAYLAND)
add_executable(wayland-presentation-tests
wayland_presentation_test.c
../displayservers/Wayland/presentation.c
)
add_dependencies(wayland-presentation-tests wayland_protocol)
target_include_directories(wayland-presentation-tests PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/../displayservers/Wayland"
"${CMAKE_BINARY_DIR}/wayland"
)
target_link_libraries(wayland-presentation-tests
${EXE_FLAGS}
lg_common
)
set(WAYLAND_PRESENTATION_CASES
feedback-first
swap-first
discard
swap-fail
token-zero
invalid-time
free-pending
)
foreach(name IN LISTS WAYLAND_PRESENTATION_CASES)
add_test(NAME wayland-presentation-${name}
COMMAND wayland-presentation-tests ${name}
)
set_tests_properties(wayland-presentation-${name} PROPERTIES
TIMEOUT 10
)
endforeach()
endif()
add_executable(displayserver-input-tests
displayserver_input_test.c
../displayservers/Wayland/input_event.c