From 95e8ac60f8b7317ce23c648250fdc8fb68d65a07 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sun, 21 Apr 2013 19:10:26 +0200 Subject: build: normalize coverage.info Without this, lcov sometimes misses to normalize paths that contain "/./". Also, ignore uninteresting hits in system headers. --- tests/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/Makefile') diff --git a/tests/Makefile b/tests/Makefile index 86b7503c93..939490b349 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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 -- cgit v1.2.3