[Spice-commits] .gitlab-ci.yml

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Mar 13 09:02:40 UTC 2017


 .gitlab-ci.yml |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit deeb367b1e3755ba4d54b497fa620f0c08ce8f6b
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Mar 10 17:13:25 2017 +0000

    tests: Enable address sanitizer on GitLab CI
    
    Add required library and options so tests will use the
    sanitizer.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 77e2a08..1c5e37c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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)
 


More information about the Spice-commits mailing list