1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 22:37:35 +00:00

LibWeb: Run tests in lagom if ENABLE_LAGOM_LIBWEB is set

This commit is contained in:
Ben Wiederhake 2023-01-09 22:29:39 +01:00 committed by Andrew Kaster
parent 79b9dd6248
commit 0687a75eaa
2 changed files with 18 additions and 1 deletions

View file

@ -662,6 +662,16 @@ if (BUILD_LAGOM)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/LibVideo)
endforeach()
# Web
if (ENABLE_LAGOM_LIBWEB)
file(COPY "${SERENITY_PROJECT_ROOT}/Tests/LibWeb/tokenizer-test.html" DESTINATION "./")
file(GLOB LIBWEB_TEST_SOURCES CONFIGURE_DEPENDS "../../Tests/LibWeb/*.cpp")
foreach(source ${LIBWEB_TEST_SOURCES})
lagom_test(${source} LIBS LibWeb
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../../Tests/LibWeb)
endforeach()
endif()
# JavaScriptTestRunner + LibTest tests
# test-js
add_executable(test-js