projects
/
psensor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e2a99c4
)
fixed cppcheck test not find config.h
author
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 14 Sep 2012 08:34:41 +0000
(08:34 +0000)
committer
Jean-Philippe Orsini
<jeanfi@gmail.com>
Fri, 14 Sep 2012 08:34:41 +0000
(08:34 +0000)
tests/test-cppcheck.sh
patch
|
blob
|
history
diff --git
a/tests/test-cppcheck.sh
b/tests/test-cppcheck.sh
index
561b871
..
60c1f39
100755
(executable)
--- a/
tests/test-cppcheck.sh
+++ b/
tests/test-cppcheck.sh
@@
-1,6
+1,8
@@
#!/bin/sh
EIDS=performance,portability,information,unusedFunction,missingInclude
#!/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