diff options
author | Andrew Kaster <andrewdkaster@gmail.com> | 2021-05-15 15:50:24 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-16 21:58:14 +0100 |
commit | ac1d87b9905ba9e321642c9915e78c2a7bbee557 (patch) | |
tree | 2d1214097d5f68ca8d99ee8e7da0a09bfe53daa7 /.github/workflows/cmake.yml | |
parent | 73adbb319cacea04ac52e2f51be72260dd4c0f87 (diff) | |
download | serenity-ac1d87b9905ba9e321642c9915e78c2a7bbee557.zip |
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.
Diffstat (limited to '.github/workflows/cmake.yml')
-rw-r--r-- | .github/workflows/cmake.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 9335dd6bb9..dfef0bdbb0 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -216,7 +216,7 @@ jobs: run: | mkdir -p 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' }} # === ACTUALLY BUILD AND TEST === @@ -227,8 +227,11 @@ jobs: - name: Run CMake tests 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 + env: + CTEST_OUTPUT_ON_FAILURE: 1 + UBSAN_OPTIONS: "halt_on_error=1" if: ${{ matrix.with-fuzzers == 'NO_FUZZ' }} lint_commits: |