mirror of
https://github.com/iustin/mt-st.git
synced 2026-08-27 19:36:52 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user