Tests/LibGfx: Enable non file input tests in Windows CI

All the file-based tests left out build, but they all fail at run time
with the error "No such file or directory" or a Core::File-based
assertion failure for the Benchmark test
This commit is contained in:
ayeteadoe 2025-06-24 00:05:29 -07:00 committed by Andrew Kaster
commit e28c956629
Notes: github-actions[bot] 2025-06-27 01:37:41 +00:00
2 changed files with 14 additions and 5 deletions

View file

@ -12,6 +12,10 @@ add_subdirectory(LibTLS)
add_subdirectory(LibUnicode)
add_subdirectory(LibURL)
if (ENABLE_GUI_TARGETS)
add_subdirectory(LibGfx)
endif()
# FIXME: Increase support for building targets on Windows
if (WIN32 AND ENABLE_WINDOWS_CI)
return()
@ -23,7 +27,6 @@ add_subdirectory(LibWasm)
add_subdirectory(LibXML)
if (ENABLE_GUI_TARGETS)
add_subdirectory(LibGfx)
add_subdirectory(LibMedia)
add_subdirectory(LibWeb)
add_subdirectory(LibWebView)

View file

@ -1,14 +1,20 @@
set(TEST_SOURCES
BenchmarkJPEGLoader.cpp
TestColor.cpp
TestImageDecoder.cpp
TestImageWriter.cpp
TestQuad.cpp
TestRect.cpp
TestWOFF.cpp
TestWOFF2.cpp
)
# FIXME: Address runtime errors for file-based tests on Windows
if (NOT WIN32)
list(APPEND TEST_SOURCES
BenchmarkJPEGLoader.cpp
TestImageDecoder.cpp
TestWOFF.cpp
TestWOFF2.cpp
)
endif()
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibGfx LIBS LibGfx)
endforeach()