summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorEmanuele Aina <em@nerd.ocracy.org>2007-06-25 17:35:12 +0000
committerEmanuele Aina <em@nerd.ocracy.org>2007-06-25 17:35:12 +0000
commitee29278e4d92f0057277199c3947a666ec3c4aa1 (patch)
treebd95ff82719f092f9c1e7eb8f4bfcbc4a261e966 /rules
parent1fc154436700293ff1c591ce699870ee065df4e3 (diff)
downloadtelepathy-salut-ee29278e4d92f0057277199c3947a666ec3c4aa1.tar.gz
Streamline the coverage output printed to screen to make it more useful
20070625173512-f974e-f1613c3b485bb04b984114493735cf40331a7382.gz
Diffstat (limited to 'rules')
-rw-r--r--rules/lcov.mak18
1 files changed, 10 insertions, 8 deletions
diff --git a/rules/lcov.mak b/rules/lcov.mak
index 1c04d45b..7ceeaaeb 100644
--- a/rules/lcov.mak
+++ b/rules/lcov.mak
@@ -17,11 +17,13 @@ lcov-run:
# generate report based on current coverage data
lcov-report:
- mkdir $(COVERAGE_DIR)
- $(LCOV_PATH) --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info
- $(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove
- $(LCOV_PATH) --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep "tests/" | cut -d: -f1 >> $(COVERAGE_DIR)/remove
- $(LCOV_PATH) --compat-libtool -r $(COVERAGE_DIR)/lcov.info `cat $(COVERAGE_DIR)/remove` > $(COVERAGE_DIR)/lcov.cleaned.info
- rm $(COVERAGE_DIR)/remove
- mv $(COVERAGE_DIR)/lcov.cleaned.info $(COVERAGE_DIR)/lcov.info
- genhtml -t "$(PACKAGE_STRING)" -o $(COVERAGE_DIR) $(COVERAGE_DIR)/lcov.info
+ @mkdir -p $(COVERAGE_DIR)
+ @$(LCOV_PATH) --quiet --compat-libtool --directory . --capture --output-file $(COVERAGE_DIR)/lcov.info
+ @$(LCOV_PATH) --quiet --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > $(COVERAGE_DIR)/remove
+ @$(LCOV_PATH) --quiet --compat-libtool -l $(COVERAGE_DIR)/lcov.info | grep "tests/" | cut -d: -f1 >> $(COVERAGE_DIR)/remove
+ @$(LCOV_PATH) --quiet --compat-libtool -r $(COVERAGE_DIR)/lcov.info `cat $(COVERAGE_DIR)/remove` > $(COVERAGE_DIR)/lcov.cleaned.info
+ @rm $(COVERAGE_DIR)/remove
+ @mv $(COVERAGE_DIR)/lcov.cleaned.info $(COVERAGE_DIR)/lcov.info
+ @echo =================================================
+ @genhtml -t "$(PACKAGE_STRING)" -o $(COVERAGE_DIR) $(COVERAGE_DIR)/lcov.info |grep 'Overall'
+ @echo =================================================