From a3dc4c585b3251eadaab7385c132fa2d386fb1e6 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 8 Jul 2014 20:41:03 +0200 Subject: [PATCH] coverage.sh: Ignore *.y / *.l files. lcov cannot handle them correctly. --- t/coverage.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/coverage.sh b/t/coverage.sh index 1de9764..bb76642 100755 --- a/t/coverage.sh +++ b/t/coverage.sh @@ -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 \ -- 2.30.2