summaryrefslogtreecommitdiffstats
path: root/test/testcompile.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/testcompile.sh')
-rwxr-xr-xtest/testcompile.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/testcompile.sh b/test/testcompile.sh
index d7b2ed2..98ff269 100755
--- a/test/testcompile.sh
+++ b/test/testcompile.sh
@@ -24,6 +24,17 @@ MAXTEST=79; export MAXTEST
run_dnmalloc ()
{
+ uname -a | grep -i openbsd >/dev/null
+ if test x$? = x0; then
+ log_skip $num ${MAXTEST} 'test dnmalloc'
+ return 0
+ fi
+ uname -a | grep -i darwin >/dev/null
+ if test x$? = x0; then
+ log_skip $num ${MAXTEST} 'test dnmalloc'
+ return 0
+ fi
+
fail=0
if test x$1 = x0; then
[ -z "$verbose" ] || log_msg_ok "configure...";
@@ -93,9 +104,9 @@ run_cppcheck ()
fi
#
cd src/
- stat=`cppcheck --quiet --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c 2>&1 | wc -l`
+ stat=`cppcheck --quiet --library=posix.cfg --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c 2>&1 | wc -l`
if [ $stat -ne 0 ]; then
- cppcheck --quiet --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c >>../test_log 2>&1
+ cppcheck --quiet --library=posix.cfg --inline-suppr --force -j 4 --template="{file},{line},{severity},{id},{message}" -I. -I.. -I../include sh_*.c samhain.c slib.c dnmalloc.c zAVLTree.c trustfile.c rijndael-*.c bignum.c >>../test_log 2>&1
retval=1
[ -z "$quiet" ] && log_fail $2 ${MAXTEST} "check w/cppcheck";
else
@@ -167,6 +178,7 @@ testmake ()
else
sed --in-place 's/-Wno-empty-body/-Wno-empty-body -Wno-invalid-source-encoding/g' Makefile
sed --in-place 's/-fno-strength-reduce//g' Makefile
+ sed --in-place 's/-fstack-clash-protection//g' Makefile
$MAKE -e CC=$CLANG_CC -e BUILD_CC=$CLANG_CC cutest > /dev/null 2>> test_log
fi
if test x$? = x0; then