[pulseaudio-discuss] [PATCH] build: add a target to ease the creation of coverage files

Deng Zhengrong dzrongg at gmail.com
Thu Jul 19 23:32:35 PDT 2012


---
 src/Makefile.am |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 63ad837..1178b57 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -2071,4 +2071,9 @@ $(installmodlibexecLTLIBRARIES): install-pkglibLTLIBRARIES
 installpadsplibLTLIBRARIES = install-padsplibLTLIBRARIES
 $(installpadsplibLTLIBRARIES): install-libLTLIBRARIES
 
-.PHONY: massif update-all update-ffmpeg update-sbc update-map-file
+show-coverage:
+	lcov --capture --directory . --output-file all.info
+	rm -rf coverage
+	genhtml --output-directory coverage all.info
+
+.PHONY: massif update-all update-ffmpeg update-sbc update-map-file show-coverage
-- 
1.7.7.6



More information about the pulseaudio-discuss mailing list