mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
Ladybird+CI: Move layout_test.sh test runner from CI yml into CMake
We should be able to run this locally, as long as ENABLE_LAGOM_LADYBIRD is true, or if building ladybird from the ladybird source directory. This removes a special case from the Lagom CI yml file.
This commit is contained in:
parent
af58f012be
commit
3d33217d60
2 changed files with 9 additions and 10 deletions
|
@ -137,3 +137,12 @@ add_dependencies(ladybird SQLServer WebContent WebDriver)
|
||||||
if(NOT CMAKE_SKIP_INSTALL_RULES)
|
if(NOT CMAKE_SKIP_INSTALL_RULES)
|
||||||
include(cmake/InstallRules.cmake)
|
include(cmake/InstallRules.cmake)
|
||||||
endif()
|
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()
|
||||||
|
|
|
@ -145,16 +145,6 @@ jobs:
|
||||||
ASAN_OPTIONS: 'strict_string_checks=1:check_initialization_order=1:strict_init_order=1'
|
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'
|
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) }}:
|
- ${{ if eq(parameters.lagom_lints, true) }}:
|
||||||
- script: |
|
- script: |
|
||||||
set -e
|
set -e
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue