projects
/
psensor-pkg-debian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 0.8.0.4
[psensor-pkg-debian.git]
/
tests
/
test-cppcheck.sh
diff --git a/tests/test-cppcheck.sh
b/tests/test-cppcheck.sh
new file mode 100755
(executable)
index 0000000..
74f6eab
--- /dev/null
+++ b/
tests/test-cppcheck.sh
@@ -0,0
+1,7
@@
+#!/bin/sh
+
+EIDS=performance,portability
+ROOTDIR="$srcdir/.."
+INCLUDE_OPTS="-q -f -I$ROOTDIR/src/lib -I$ROOTDIR/src -I$ROOTDIR -I$ROOTDIR/.."
+
+cppcheck $ROOTDIR/src $INCLUDE_OPTS --enable=$EIDS --quiet --error-exitcode=1 || exit 1