test(render): add P2 GPU visibility acceptance and benchmark harness

This commit is contained in:
Emil
2026-09-23 22:31:27 +03:00
parent 2454462432
commit acbe5156c0
3 changed files with 498 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# P2's image-equivalence tests use the real offscreen Vulkan renderer. Keep the benchmark
# executable available without making performance thresholds part of CTest.
if(BUILD_TESTING AND TARGET faset_render)
add_executable(faset_render_gpu_acceptance_tests
"${PROJECT_SOURCE_DIR}/tests/render_gpu_acceptance_tests.cpp")
target_link_libraries(faset_render_gpu_acceptance_tests PRIVATE faset_render)
foreach(FASET_VISIBILITY_CASE empty capacity dense door shadow cut resize lod)
add_test(NAME "render_gpu_${FASET_VISIBILITY_CASE}"
COMMAND faset_render_gpu_acceptance_tests --case "${FASET_VISIBILITY_CASE}")
set_tests_properties("render_gpu_${FASET_VISIBILITY_CASE}"
PROPERTIES LABELS "gpu;p2" TIMEOUT 120)
endforeach()
endif()