aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-05-08 15:14:33 +0200
committerMartin Willi <martin@revosec.ch>2014-06-04 15:53:13 +0200
commit95e67e8d19011b92b1706b3194bea446ba3e5ced (patch)
treea382f5ca74b9d9cca2d95892ef30b4a40f4a5f01 /scripts
parent3b7b806d27024b71506ba3b803fd5b42dd40b745 (diff)
downloadstrongswan-95e67e8d19011b92b1706b3194bea446ba3e5ced.tar.bz2
strongswan-95e67e8d19011b92b1706b3194bea446ba3e5ced.tar.xz
travis: Perform build tests with -Werror
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/test.sh b/scripts/test.sh
index 2c8872ce4..b70e3c0f4 100755
--- a/scripts/test.sh
+++ b/scripts/test.sh
@@ -11,6 +11,8 @@ TARGET=check
DEPS="libgmp-dev"
+CFLAGS="-g -O2 -Wall -Wno-format -Wno-format-security -Wno-pointer-sign -Werror"
+
case "$TEST" in
default)
# should be the default, but lets make sure
@@ -69,4 +71,4 @@ CONFIG="$CONFIG
--enable-leak-detective=${LEAK_DETECTIVE-no}"
echo "$ ./configure $CONFIG && make $TARGET"
-./configure $CONFIG && make -j4 $TARGET
+CFLAGS="$CFLAGS" ./configure $CONFIG && make -j4 $TARGET