1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 20:47:45 +00:00

Tests: Add a simple LibGL render-test

At the moment we just check if we *can* render a simple triangle, we do
not yet actually test if the image is indeed the triangle we wanted.

This test also outputs the rendered image when GL_DEBUG is enabled to a
file called "picture.bmp" for manual verification.

Co-authored-by: sunverwerth <s.unverwerth@serenityos.org>
This commit is contained in:
Hendiadyoin1 2021-11-29 18:18:34 +01:00 committed by Ali Mohammad Pur
parent 3a4dd5ff87
commit 7a27ecc135
4 changed files with 74 additions and 0 deletions

View file

@ -520,6 +520,12 @@ if (BUILD_LAGOM)
lagom_test(${source} LIBS LagomCompress)
endforeach()
# GL
file(GLOB LIBGL_TESTS CONFIGURE_DEPENDS "../../Tests/LibGL/*.cpp")
foreach(source ${LIBGL_TESTS})
lagom_test(${source} LIBS LagomGL)
endforeach()
# Regex
file(GLOB LIBREGEX_TESTS CONFIGURE_DEPENDS "../../Tests/LibRegex/*.cpp")
# RegexLibC test POSIX <regex.h> and contains many Serenity extensions