mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 08:00:45 +00:00
Some checks are pending
CI / macOS, arm64, Sanitizer, Clang (push) Waiting to run
CI / Linux, x86_64, Fuzzers, Clang (push) Waiting to run
CI / Linux, x86_64, Sanitizer, GNU (push) Waiting to run
CI / Linux, x86_64, Sanitizer, Clang (push) Waiting to run
Package the js repl as a binary artifact / Linux, arm64 (push) Waiting to run
Package the js repl as a binary artifact / macOS, arm64 (push) Waiting to run
Package the js repl as a binary artifact / Linux, x86_64 (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
We occasionally (frequently) time out in CI. If ctest triggers this timeout, it sends a SIGSTOP followed by a SIGKILL. Since we want to gracefully exit the test runner, ask ctest to send a SIGTERM instead. This should cause active test status reports to show up in CI.
28 lines
908 B
CMake
28 lines
908 B
CMake
set(SOURCES
|
|
Application.cpp
|
|
Fixture.cpp
|
|
Fuzzy.cpp
|
|
TestWebView.cpp
|
|
main.cpp
|
|
)
|
|
|
|
add_executable(test-web ${SOURCES})
|
|
add_dependencies(test-web ladybird_build_resource_files ImageDecoder RequestServer WebContent WebWorker)
|
|
target_link_libraries(test-web PRIVATE AK LibCore LibDiff LibFileSystem LibGfx LibImageDecoderClient LibIPC LibJS LibMain LibRequests LibURL LibWeb LibWebView)
|
|
|
|
if (APPLE)
|
|
target_compile_definitions(test-web PRIVATE LADYBIRD_BINARY_PATH="$<TARGET_FILE_DIR:ladybird>")
|
|
endif()
|
|
|
|
if (BUILD_TESTING)
|
|
find_package(Python3 REQUIRED)
|
|
|
|
add_test(
|
|
NAME LibWeb
|
|
COMMAND $<TARGET_FILE:test-web> --python-executable ${Python3_EXECUTABLE} --dump-failed-ref-tests --per-test-timeout 120 --verbose
|
|
)
|
|
|
|
set_tests_properties(LibWeb PROPERTIES
|
|
ENVIRONMENT LADYBIRD_SOURCE_DIR=${LADYBIRD_PROJECT_ROOT}
|
|
TIMEOUT_SIGNAL_NAME SIGTERM)
|
|
endif()
|