From 97e025f19370a7b8d5170195683570390fdd6c3d Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Sun, 24 Jun 2007 22:57:53 +0000 Subject: Put the lcov output in coverage/ instead of lcov/ 20070624225753-f974e-5f129404f14e68f686a38231fddd432678232421.gz --- rules/lcov.mak | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'rules') diff --git a/rules/lcov.mak b/rules/lcov.mak index b428b82e..3a879351 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 -- cgit v1.2.1