Code

coverage.sh: Ignore *.y / *.l files.
authorSebastian Harl <sh@tokkee.org>
Tue, 8 Jul 2014 18:41:03 +0000 (20:41 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 8 Jul 2014 18:41:03 +0000 (20:41 +0200)
lcov cannot handle them correctly.

t/coverage.sh

index 1de97641e0138ed8a663d0c9620b5257ab1421d7..bb766427234e5c53513b5fd0d434cebfcd3b1b4a 100755 (executable)
@@ -55,6 +55,9 @@ 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
+       lcov --remove sysdb_coverage.info "$pattern" -o sysdb_coverage.info
+done
 
 V=$( ./version-gen.sh )
 genhtml -o "$srcdir"/t/coverage \