forked from ariadne/pkgconf
ci: run meson test with the address sanitizer enabled
Set the ASAN_OPTION so that the exitcode is not 1, this avoids asan returning the exitcode that the tests already expect from a normal pkgconf error
parent
c7b0f86815
commit
0c72b7cd41
|
@ -60,6 +60,30 @@ jobs:
|
|||
run: |
|
||||
meson test -v -C _build
|
||||
|
||||
debian-meson-asan:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: debian:testing
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Update system and add dependencies
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y kyua atf-sh build-essential meson
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson _build -Db_sanitize=address
|
||||
meson compile -C _build
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
meson test -v -C _build
|
||||
env:
|
||||
ASAN_OPTIONS: "exitcode=7"
|
||||
|
||||
debian-autotools:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
|
|
|
@ -12,6 +12,21 @@ pipeline:
|
|||
IMAGE: debian
|
||||
BUILD: meson
|
||||
|
||||
debian-meson-asan:
|
||||
image: debian:testing
|
||||
environment:
|
||||
- ASAN_OPTIONS="exitcode=7"
|
||||
commands:
|
||||
- apt-get update
|
||||
- apt-get install -y kyua atf-sh build-essential meson
|
||||
- meson _build -Db_sanitize=address
|
||||
- meson compile -C _build
|
||||
- meson test -v -C _build
|
||||
when:
|
||||
matrix:
|
||||
IMAGE: debian
|
||||
BUILD: meson
|
||||
|
||||
debian-autotools:
|
||||
image: debian:testing
|
||||
commands:
|
||||
|
|
Loading…
Reference in New Issue