diff --git a/Ladybird/CMakeLists.txt b/Ladybird/CMakeLists.txt index bdff1b7a9d8..1b06ecf5b88 100644 --- a/Ladybird/CMakeLists.txt +++ b/Ladybird/CMakeLists.txt @@ -137,3 +137,12 @@ add_dependencies(ladybird SQLServer WebContent WebDriver) if(NOT CMAKE_SKIP_INSTALL_RULES) include(cmake/InstallRules.cmake) endif() + +include(CTest) +if (BUILD_TESTING) + add_test( + NAME Layout + COMMAND ${SERENITY_SOURCE_DIR}/Tests/LibWeb/Layout/layout_test.sh ${CMAKE_CURRENT_BINARY_DIR} + ) + set_tests_properties(Layout PROPERTIES ENVIRONMENT QT_QPA_PLATFORM=offscreen) +endif() diff --git a/Meta/Azure/Lagom.yml b/Meta/Azure/Lagom.yml index f903c7ebff1..677c618f8c6 100644 --- a/Meta/Azure/Lagom.yml +++ b/Meta/Azure/Lagom.yml @@ -145,16 +145,6 @@ jobs: ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1' UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' - - script: | - $(Build.SourcesDirectory)/Tests/LibWeb/Layout/layout_test.sh "$(Build.SourcesDirectory)/Meta/Lagom/Build/Ladybird" - displayName: 'LibWeb Layout Tests' - env: - SERENITY_SOURCE_DIR: '$(Build.SourcesDirectory)' - QT_QPA_PLATFORM: 'offscreen' - # FIXME: enable detect_stack_use_after_return=1 #7420 - ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1' - UBSAN_OPTIONS: 'print_stacktrace=1:print_summary=1:halt_on_error=1' - - ${{ if eq(parameters.lagom_lints, true) }}: - script: | set -e