From: Sebastian Harl Date: Sun, 1 Mar 2015 14:38:56 +0000 (+0100) Subject: t/coverage.sh: Exclude auto-generated c files. X-Git-Tag: sysdb-0.8.0~153 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f64a77618cbb210cbc1728da94c51ea1cf815221;p=sysdb.git t/coverage.sh: Exclude auto-generated c files. --- diff --git a/t/coverage.sh b/t/coverage.sh index a689b57..3a8a416 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -49,14 +49,17 @@ touch configure.ac && make configure make lcov --base-directory src --directory src --zerocount -make test || (status=$?; cat t/test-suite.log 2> /dev/null; exit $status) +make -j25 test || (status=$?; cat t/test-suite.log 2> /dev/null; exit $status) # old versions of lcov don't support --no-external lcov --base-directory src --directory src --no-external \ --capture -o sysdb_coverage.info \ || lcov --base-directory src --directory src \ --capture -o sysdb_coverage.info -for pattern in '*.y' '*.l'; do +for pattern in '*.y' '*.l' \ + 'sysdb/scanner.c' 'frontend/scanner.c' 'liboconfig/scanner.c' \ + 'frontend/grammar.c' 'liboconfig/parser.c' +do lcov --remove sysdb_coverage.info "$pattern" -o sysdb_coverage.info done