From 37010485f93021ae142fcf438810e4c16bd7ff4a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Fri, 14 Sep 2012 08:34:41 +0000 Subject: [PATCH] fixed cppcheck test not find config.h --- tests/test-cppcheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test-cppcheck.sh b/tests/test-cppcheck.sh index 561b871..60c1f39 100755 --- a/tests/test-cppcheck.sh +++ b/tests/test-cppcheck.sh @@ -1,6 +1,8 @@ #!/bin/sh EIDS=performance,portability,information,unusedFunction,missingInclude -ROOTDIR=$srcdir/.. +ROOTDIR="$srcdir/.." +INCLUDE_OPTS="-I$ROOTDIR/src/lib -I$ROOTDIR/src -I$ROOTDIR -I$ROOTDIR/.." -cppcheck $ROOTDIR/src -I$ROOTDIR/src/lib -I$ROOTDIR/src -I$ROOTDIR --enable=$EIDS --quiet --error-exitcode=1 || exit 1 +cppcheck $ROOTDIR/src $INCLUDE_OPTS --enable=$EIDS --quiet --check-config --error-exitcode=1 || exit 1 +cppcheck $ROOTDIR/src $INCLUDE_OPTS --enable=$EIDS --quiet --error-exitcode=1 || exit 1 -- 2.7.4