mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 22:48:19 +00:00
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:
parent
b3c96d6ab3
commit
deeb367b1e
@ -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)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user