File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # set -x
4+
5+ SCRIPT_DIR=" $( dirname " $( realpath " $0 " ) " ) "
6+
7+ # TODO: exclude testinternal.cpp
8+ echo ' no --errorlist entry:'
9+ grep -h -o -P ' \[[a-zA-Z0-9_]+\]\\n\"' $SCRIPT_DIR /../test/* .cpp | tr -d ' []\"' | sed ' s/\\n$//' | sort -u | \
10+ while read -r id; do
11+ if [ ${# id} -lt 4 ]; then
12+ continue
13+ fi
14+ $SCRIPT_DIR /../cppcheck --errorlist | grep " id=\" $id \" " > /dev/null
15+ if [ $? -ne 0 ]; then
16+ echo $id
17+ fi
18+ done
19+
20+ echo ' '
21+
22+ echo ' no test coverage:'
23+ $SCRIPT_DIR /../cppcheck --errorlist | grep -h -o -P ' id=\"[a-zA-Z0-9_]*\"' | sed ' s/\id=//' | tr -d ' \"' | sort -u | \
24+ while read -r id; do
25+ grep -h -o -P " \[$id \]\\\\ n\" " $SCRIPT_DIR /../test/* .cpp > /dev/null
26+ if [ $? -ne 0 ]; then
27+ echo $id
28+ fi
29+ done
You can’t perform that action at this time.
0 commit comments