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 errormaster
parent
1cfa2d1e20
commit
179a0560a6
|
@ -60,6 +60,30 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
meson test -v -C _build
|
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:
|
debian-autotools:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
|
|
|
@ -12,6 +12,21 @@ pipeline:
|
||||||
IMAGE: debian
|
IMAGE: debian
|
||||||
BUILD: meson
|
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:
|
debian-autotools:
|
||||||
image: debian:testing
|
image: debian:testing
|
||||||
commands:
|
commands:
|
||||||
|
|
Loading…
Reference in New Issue