summaryrefslogtreecommitdiff
path: root/Meta/Lagom
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-04-15 01:08:15 +0200
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2022-04-17 09:58:29 +0430
commit8cfabbcd9330fad62cace2a6c0f3a15d9b39cfe3 (patch)
tree4faef42a9d05e9953664ef8f71021c0868500ebf /Meta/Lagom
parent757f506fda6e5f2fd528f75185b6a2cd7524a23d (diff)
downloadserenity-8cfabbcd9330fad62cace2a6c0f3a15d9b39cfe3.zip
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`.
Diffstat (limited to 'Meta/Lagom')
-rw-r--r--Meta/Lagom/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt
index 7219190b19..76b632a163 100644
--- a/Meta/Lagom/CMakeLists.txt
+++ b/Meta/Lagom/CMakeLists.txt
@@ -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