From e28c956629810c76ee5068069a7d66d3a96d083b Mon Sep 17 00:00:00 2001 From: ayeteadoe Date: Tue, 24 Jun 2025 00:05:29 -0700 Subject: [PATCH] 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 --- Tests/CMakeLists.txt | 5 ++++- Tests/LibGfx/CMakeLists.txt | 14 ++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index b80efe4c273..7abb495abd3 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -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) diff --git a/Tests/LibGfx/CMakeLists.txt b/Tests/LibGfx/CMakeLists.txt index a096845e49c..fd9adf283a1 100644 --- a/Tests/LibGfx/CMakeLists.txt +++ b/Tests/LibGfx/CMakeLists.txt @@ -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()