lcov: ignore external files in coverage data
Rather than removing external coverage data at the end, just don't capture it at all. Change-Id: I23b74a4aa735e470b642af76040d1c3ed491276f Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
6a6ef0d7e0
commit
9c04f2f1f9
@ -33,7 +33,7 @@ if hash lcov; then
|
||||
--rc genhtml_legend=1
|
||||
--rc geninfo_all_blocks=1
|
||||
"
|
||||
export LCOV="lcov $LCOV_OPTS"
|
||||
export LCOV="lcov $LCOV_OPTS --no-external"
|
||||
export GENHTML="genhtml $LCOV_OPTS"
|
||||
# zero out coverage data
|
||||
$LCOV -q -c -i -t "Baseline" -d $src -o cov_base.info
|
||||
@ -126,7 +126,6 @@ if hash lcov; then
|
||||
# generate coverage data and combine with baseline
|
||||
$LCOV -q -c -d $src -t "$(hostname)" -o cov_test.info
|
||||
$LCOV -q -a cov_base.info -a cov_test.info -o cov_total.info
|
||||
$LCOV -q -r cov_total.info '/usr/*' -o cov_total.info
|
||||
$LCOV -q -r cov_total.info 'test/*' -o cov_total.info
|
||||
$GENHTML cov_total.info -t "$(hostname)" -o $out/coverage
|
||||
chmod -R a+rX $out/coverage
|
||||
|
Loading…
Reference in New Issue
Block a user