summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorEmanuele Aina <em@nerd.ocracy.org>2007-06-24 22:57:53 +0000
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-05-15 16:28:28 +0100
commit62678cb1604cd3617072cfe5718256695e901ed6 (patch)
treedf0157f57ee32fda2b3de1f9850d089416aa14a0 /rules
parent6b058337d0aa472495a62e1f95ed40cf47952912 (diff)
Put the lcov output in coverage/ instead of lcov/
Diffstat (limited to 'rules')
-rw-r--r--rules/lcov.mak20
1 files changed, 11 insertions, 9 deletions
diff --git a/rules/lcov.mak b/rules/lcov.mak
index b428b82..3a87935 100644
--- a/rules/lcov.mak
+++ b/rules/lcov.mak
@@ -1,3 +1,5 @@
+COVERAGE_DIR=coverage
+
# run lcov from scratch, always
lcov-reset:
make lcov-run
@@ -9,17 +11,17 @@ lcov:
# reset run coverage tests
lcov-run:
- @-rm -rf lcov
+ @-rm -rf $(COVERAGE_DIR)
@-find . -name "*.gcda" -exec rm {} \;
-make check
# generate report based on current coverage data
lcov-report:
- mkdir lcov
- $(LCOV_PATH) --compat-libtool --directory . --capture --output-file lcov/lcov.info
- $(LCOV_PATH) --compat-libtool -l lcov/lcov.info | grep -v "`cd $(top_srcdir) && pwd`" | cut -d: -f1 > lcov/remove
- $(LCOV_PATH) --compat-libtool -l lcov/lcov.info | grep "tests/" | cut -d: -f1 >> lcov/remove
- $(LCOV_PATH) --compat-libtool -r lcov/lcov.info `cat lcov/remove` > lcov/lcov.cleaned.info
- rm lcov/remove
- mv lcov/lcov.cleaned.info lcov/lcov.info
- genhtml -t "$(PACKAGE_STRING)" -o lcov lcov/lcov.info
+ 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