From: Sebastian Harl Date: Tue, 8 Jul 2014 18:41:03 +0000 (+0200) Subject: coverage.sh: Ignore *.y / *.l files. X-Git-Tag: sysdb-0.3.0~74 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a3dc4c585b3251eadaab7385c132fa2d386fb1e6;p=sysdb.git coverage.sh: Ignore *.y / *.l files. lcov cannot handle them correctly. --- 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 \