From: Jean-Philippe Orsini Date: Fri, 14 Sep 2012 08:34:41 +0000 (+0000) Subject: fixed cppcheck test not find config.h X-Git-Tag: v0.8.0.5~216 X-Git-Url: http://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=37010485f93021ae142fcf438810e4c16bd7ff4a fixed cppcheck test not find config.h --- 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