Skip to content

Commit

Permalink
enable libasan for tests
Browse files Browse the repository at this point in the history
Change-Id: If094f52a55e60be355a36314fcaf763c0f0e5d45
  • Loading branch information
rdementi committed Nov 22, 2024
1 parent 3b9647f commit a24c637
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@ jobs:
run: |
cmake --version
rm -rf ${{ github.workspace }}/build
cmake -B ${{ github.workspace }}/build
cmake -B ${{ github.workspace }}/build -DPCM_NO_ASAN=OFF
- name: Build
run: |
g++ --version
cd ${{ github.workspace }}/build
make -j$(nproc)
ldd bin/pcm
- name: Test
run: |
set -o pipefail
Expand Down
3 changes: 2 additions & 1 deletion tests/fuzz.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ export LSAN_OPTIONS=suppressions="pcm_asan_suppression_file"

echo "Running fuzz tests with running time multiplier $factor"

CC=`which clang` CXX=`which clang++` cmake .. -DCMAKE_BUILD_TYPE=Debug -DFUZZ=1 && mkdir -p corpus &&
CC=`which clang` CXX=`which clang++` cmake .. -DCMAKE_BUILD_TYPE=Debug -DFUZZ=1 -DPCM_NO_ASAN=OFF && mkdir -p corpus &&
make urltest-fuzz \
pcm-fuzz \
pcm-memory-fuzz \
pcm-sensor-server-fuzz \
pcm-sensor-server-ssl-fuzz \
-j &&
ldd bin/tests/pcm-fuzz &&
rm -rf corpus/* &&
printf '%b' "GET / HTTP/1.1\r\nHost: localhost\r\nAccept: */*\r\n\r\n" > corpus/1 &&
printf '%b' "GET /metrics HTTP/1.1\r\nHost: localhost\r\nAccept: */*\r\n\r\n" > corpus/2 &&
Expand Down

0 comments on commit a24c637

Please sign in to comment.