Skip to content

Commit

Permalink
New CI test with glibcxx assertions enabled
Browse files Browse the repository at this point in the history
no functional change
  • Loading branch information
xu-shawn committed Dec 16, 2024
1 parent cf10644 commit 9b8789c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,28 @@ jobs:
sanitizers:
- name: Run with thread sanitizer
make_option: sanitize=thread
make_flags: ""
instrumented_option: sanitizer-thread
- name: Run with UB sanitizer
make_option: sanitize=undefined
make_flags: ""
instrumented_option: sanitizer-undefined
- name: Run under valgrind
make_option: ""
make_flags: ""
instrumented_option: valgrind
- name: Run under valgrind-thread
make_option: ""
make_flags: ""
instrumented_option: valgrind-thread
- name: Run non-instrumented
make_option: ""
make_flags: ""
instrumented_option: none
- name: Run with glibcxx assertions
make_option: ""
make_flags: CXXFLAGS="-D_GLIBCXX_ASSERTIONS"
instrumented_option: non
defaults:
run:
working-directory: src
Expand Down Expand Up @@ -74,5 +83,5 @@ jobs:
run: |
export CXXFLAGS="-O1 -fno-inline"
make clean
make -j4 ARCH=x86-64-sse41-popcnt ${{ matrix.sanitizers.make_option }} debug=yes optimize=no build > /dev/null
${{ matrix.sanitizers.make_flags }} make -j4 ARCH=x86-64-sse41-popcnt ${{ matrix.sanitizers.make_option }} debug=yes optimize=no build > /dev/null
python3 ../tests/instrumented.py --${{ matrix.sanitizers.instrumented_option }} ./stockfish

0 comments on commit 9b8789c

Please sign in to comment.