tests: Enable address sanitizer on GitLab CI

Add required library and options so tests will use the
sanitizer.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-03-10 17:13:25 +00:00
parent b3c96d6ab3
commit deeb367b1e

View File

@ -1,13 +1,16 @@
image: fedora:latest
before_script:
- dnf install 'dnf-command(copr)' git libtool make -y
- dnf install 'dnf-command(copr)' git libtool make libasan -y
- dnf copr enable @spice/nightly -y
- dnf builddep spice -y
makecheck:
script:
- ./autogen.sh
- >
CFLAGS='-O2 -pipe -g -fsanitize=address -fno-omit-frame-pointer'
LDFLAGS='-fsanitize=address -lasan'
./autogen.sh
- make
- make -C server check || (cat server/tests/test-suite.log && exit 1)