From: Sebastian Harl Date: Sun, 12 Jan 2014 17:44:40 +0000 (+0100) Subject: t/cibuild.sh, .travis.yml: Do an AddressSanitizer run as well. X-Git-Tag: sysdb-0.1.0~238 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f7bf1a1f05648e6292baded4828b46bea0f59075;p=sysdb.git t/cibuild.sh, .travis.yml: Do an AddressSanitizer run as well. Passing additional build flags as CICFLAGS and CILDFLAGS. --- diff --git a/.travis.yml b/.travis.yml index d3bfbe9..3d4f12e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: c env: - CIOPTIONS="--with-readline=libedit" - CIOPTIONS="--with-readline=libreadline" + - CICFLAGS="-fsanitize=address -fno-omit-frame-pointer" CILDFLAGS="-fsanitize=address" compiler: - clang - gcc diff --git a/t/cibuild.sh b/t/cibuild.sh index e0754db..120d427 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -7,6 +7,8 @@ set -ex ./autogen.sh -./configure --enable-gcov $CIOPTIONS CFLAGS="-O0 -Wno-sign-conversion" +./configure --enable-gcov $CIOPTIONS \ + CFLAGS="-O0 -Wno-sign-conversion $CICFLAGS" \ + LDFLAGS="$CILDFLAGS" make clean all make test