practracker: Test practracker exit status

Part of 32705.
This commit is contained in:
teor 2020-01-14 17:23:41 +10:00
parent eb55d85e75
commit fa038e5617
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
4 changed files with 4 additions and 1 deletions

View File

@ -40,7 +40,7 @@ run_practracker() {
--max-h-include-count=0 \ --max-h-include-count=0 \
--max-include-count=0 \ --max-include-count=0 \
--terse \ --terse \
"${DATA}/" "$@" || true "${DATA}/" "$@" || echo "practracker exit status: $?"
} }
compare() { compare() {
# we can't use cmp because we need to use -b for windows # we can't use cmp because we need to use -b for windows

View File

@ -10,3 +10,4 @@ problem function-size b.c:bar() 5
problem file-size header.h 8 problem file-size header.h 8
problem include-count header.h 4 problem include-count header.h 4
problem dependency-violation header.h 3 problem dependency-violation header.h 3
practracker exit status: 11

View File

@ -2,3 +2,4 @@ Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem function-size a.c:i_am_a_function() 9 problem function-size a.c:i_am_a_function() 9
(warning) problem function-size a.c:another_function() 12 (warning) problem function-size a.c:another_function() 12
problem function-size b.c:foo() 4 problem function-size b.c:foo() 4
practracker exit status: 2

View File

@ -1,3 +1,4 @@
Unusual pattern permitted.h in scripts/maint/practracker/testdata Unusual pattern permitted.h in scripts/maint/practracker/testdata
problem file-size a.c 45 -> 41 problem file-size a.c 45 -> 41
problem file-size z.c 100 -> 0 problem file-size z.c 100 -> 0
practracker exit status: 3