summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorEmanuele Aina <em@nerd.ocracy.org>2007-07-03 19:30:08 +0000
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-05-15 16:28:29 +0100
commitd0baefd87779c8a426fd21595257e0e238bd79d6 (patch)
tree6ed688d14072e1d6405efd78c841434d4a855272 /rules
parent6c4bb604de9f165b98cf8812774d913e33311cb9 (diff)
Do not use the internal copy of lcov if we cannot use the system one
The history has been edited and the internal copy of lcov introduced in the "Add coverage and valgrind support for tests" patch has been deleted. Yay for using textual patches to store the history! 20070703193008-f974e-d2322b04e4566dd2b12e5b6d15a35197343ffb9c.gz
Diffstat (limited to 'rules')
-rw-r--r--rules/lcov.mak5
1 files changed, 5 insertions, 0 deletions
diff --git a/rules/lcov.mak b/rules/lcov.mak
index 7ceeaae..0e2e1d0 100644
--- a/rules/lcov.mak
+++ b/rules/lcov.mak
@@ -17,6 +17,11 @@ lcov-run:
# generate report based on current coverage data
lcov-report:
+ @if test -z "$(LCOV_PATH)"; then \
+ echo "WARNING: the 'lcov' executable was not found"; \
+ echo "Use the \$$LCOV_PATH variable to set its location"; \
+ exit 1; \
+ fi
@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