From f64a77618cbb210cbc1728da94c51ea1cf815221 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sun, 1 Mar 2015 15:38:56 +0100 Subject: [PATCH] t/coverage.sh: Exclude auto-generated c files. --- t/coverage.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 -- 2.30.2