mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
CI: Compile and run Lagom tests with ASAN and UBSAN
Make sure halt_on_error=1 is enabled so that UBSAN failures will crash the test program and cause a failure.
This commit is contained in:
parent
73adbb319c
commit
ac1d87b990
Notes:
sideshowbarker
2024-07-18 17:59:44 +09:00
Author: https://github.com/ADKaster
Commit: ac1d87b990
Pull-request: https://github.com/SerenityOS/serenity/pull/7157
Issue: https://github.com/SerenityOS/serenity/issues/7073
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/metmo
1 changed files with 5 additions and 2 deletions
7
.github/workflows/cmake.yml
vendored
7
.github/workflows/cmake.yml
vendored
|
@ -216,7 +216,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir -p Build
|
mkdir -p Build
|
||||||
cd Build
|
cd Build
|
||||||
cmake -GNinja -DBUILD_LAGOM=ON -DENABLE_PCI_IDS_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..
|
cmake -GNinja -DBUILD_LAGOM=ON -DENABLE_UNDEFINED_SANITIZER=ON -DENABLE_ADDRESS_SANITIZER=ON -DENABLE_PCI_IDS_DOWNLOAD=OFF -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_CXX_COMPILER=g++-10 ..
|
||||||
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
|
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
|
||||||
|
|
||||||
# === ACTUALLY BUILD AND TEST ===
|
# === ACTUALLY BUILD AND TEST ===
|
||||||
|
@ -227,8 +227,11 @@ jobs:
|
||||||
|
|
||||||
- name: Run CMake tests
|
- name: Run CMake tests
|
||||||
working-directory: ${{ github.workspace }}/Meta/Lagom/Build
|
working-directory: ${{ github.workspace }}/Meta/Lagom/Build
|
||||||
run: CTEST_OUTPUT_ON_FAILURE=1 ninja test || ${{ matrix.allow-test-failure }}
|
run: ninja test || ${{ matrix.allow-test-failure }}
|
||||||
timeout-minutes: 4
|
timeout-minutes: 4
|
||||||
|
env:
|
||||||
|
CTEST_OUTPUT_ON_FAILURE: 1
|
||||||
|
UBSAN_OPTIONS: "halt_on_error=1"
|
||||||
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
|
if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }}
|
||||||
|
|
||||||
lint_commits:
|
lint_commits:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue