Code

t/coverage.sh: Exclude auto-generated c files.
authorSebastian Harl <sh@tokkee.org>
Sun, 1 Mar 2015 14:38:56 +0000 (15:38 +0100)
committerSebastian Harl <sh@tokkee.org>
Sun, 1 Mar 2015 14:38:56 +0000 (15:38 +0100)
t/coverage.sh

index a689b571156166dc7a90bb972d7817153d23a4d9..3a8a4167cca689839ed6dc8faaeb07ac4ec101f0 100755 (executable)
@@ -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