1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

Tests: Implement reference image testing for LibGL

Each LibGL test can now be tested against a reference QOI image.
Initially, these images can be generated by setting `SAVE_OUTPUT` to
`true`, which will save a bunch of QOI images to `/home/anon`.
This commit is contained in:
Jelle Raaijmakers 2022-04-15 01:08:15 +02:00 committed by Ali Mohammad Pur
parent 757f506fda
commit 8cfabbcd93
5 changed files with 75 additions and 31 deletions

View file

@ -590,9 +590,10 @@ if (BUILD_LAGOM)
endforeach()
# GL
file(COPY "${SERENITY_PROJECT_ROOT}/Tests/LibGL/reference-images" DESTINATION "./")
file(GLOB LIBGL_TESTS CONFIGURE_DEPENDS "../../Tests/LibGL/*.cpp")
foreach(source ${LIBGL_TESTS})
lagom_test(${source} LIBS LagomGL)
lagom_test(${source} WORKING_DIRECTORY LIBS LagomGL LagomGPU LagomSoftGPU)
endforeach()
# PDF