build: normalize coverage.info
Without this, lcov sometimes misses to normalize paths that contain "/./". Also, ignore uninteresting hits in system headers.
This commit is contained in:
parent
768e44d044
commit
95e8ac60f8
@ -129,7 +129,9 @@ fate-list:
|
||||
|
||||
coverage.info: TAG = LCOV
|
||||
coverage.info:
|
||||
$(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture -o $@
|
||||
$(M)lcov -q -d $(CURDIR) -b $(SRC_PATH) --capture | \
|
||||
sed "s,$(CURDIR)/\./,$(CURDIR)/," > $@
|
||||
$(M)lcov -q --remove $@ "/usr/include*" -o $@
|
||||
|
||||
lcov: TAG = GENHTML
|
||||
lcov: coverage.info
|
||||
|
Loading…
Reference in New Issue
Block a user