File: test-cppcheck.sh

package info (click to toggle)
ptask 1.0.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 1,400 kB
  • sloc: sh: 4,762; perl: 2,623; ansic: 2,086; makefile: 72; xml: 57; sed: 16
file content (8 lines) | stat: -rwxr-xr-x 350 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh

EIDS=performance,portability,information,unusedFunction,missingInclude
ROOTDIR="$srcdir/.."
INCLUDE_OPTS="-I$ROOTDIR/src -I$ROOTDIR -I$ROOTDIR/.."

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