[FFmpeg-cvslog] build: normalize coverage.info

Reinhard Tartler git at videolan.org
Sun May 5 10:41:06 CEST 2013


ffmpeg | branch: master | Reinhard Tartler <siretart at tauware.de> | Sun Apr 21 19:10:26 2013 +0200| [95e8ac60f8b7317ce23c648250fdc8fb68d65a07] | committer: Reinhard Tartler

build: normalize coverage.info

Without this, lcov sometimes misses to normalize paths that contain "/./".
Also, ignore uninteresting hits in system headers.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=95e8ac60f8b7317ce23c648250fdc8fb68d65a07
---

 tests/Makefile |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/Makefile b/tests/Makefile
index 86b7503..939490b 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



More information about the ffmpeg-cvslog mailing list