Run tests under various sanitizers

This is in preparation for the next commit which will fix a very long
standing bug…
This commit is contained in:
Iustin Pop
2023-04-20 23:01:20 +02:00
parent aec3bd67f6
commit f9c0570e34
+31
View File
@@ -65,3 +65,34 @@ jobs:
#fail_ci_if_error: true
verbose: true
gcov: true
sanitizers:
name: Test with clang sanitizers
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
compiler: ['clang']
# These are the various sanitizers from https://github.com/google/sanitizers:
cflags:
- '-fsanitize=address -O1 -fno-omit-frame-pointer -g'
- '-fsanitize=undefined -fsanitize=memory -fsanitize-memory-track-origins -fPIE -pie -fno-omit-frame-pointer -g -O2'
- '-fsanitize=undefined'
fail-fast: false
env:
CC: ${{ matrix.compiler }}
CFLAGs: ${{ matrix.cflags }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build the code
run: make
- name: Install dependencies
run: sudo apt-get install -yy shelltestrunner
- name: Run tests
run: make check