Skip to content

Commit

Permalink
temp: sanitizer in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomato committed Sep 9, 2023
1 parent 2571f79 commit e69c22b
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,42 @@ jobs:
- name: print-test-log
if: ${{ failure() }}
run: cat _build/meson-logs/testlog.txt

sanitizer:
runs-on: ubuntu-20.04
steps:
- name: install-deps
run: |
sudo apt-get update
sudo apt-get -y install \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-good \
gstreamer1.0-tools \
libgstreamer1.0-dev \
libgtk-3-dev \
meson
- uses: actions/checkout@v2

- name: configure
run: |
meson _build \
-Db_sanitize=address,undefined \
-Dintrospection=false \
-Dbocfel=false \
-Dfrotz=false \
-Dnitfol=false \
-Dplayer=false
- name: build
run: ASAN_OPTIONS=detect_leaks=0 ninja -C _build

- name: test
run: |
ASAN_OPTIONS=fast_unwind_on_malloc=0 \
LSAN_OPTIONS=suppressions=$(pwd)/tests/lsan.supp \
xvfb-run -a meson test -C _build
- name: print-test-log
if: ${{ failure() }}
run: cat _build/meson-logs/testlog.txt
2 changes: 2 additions & 0 deletions tests/lsan.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
leak:g_quark_init
leak:libfontconfig.so

0 comments on commit e69c22b

Please sign in to comment.