summaryrefslogtreecommitdiff
path: root/common/tests/Makefile
diff options
context:
space:
mode:
authorschodet2007-09-04 09:16:33 +0000
committerschodet2007-09-04 09:16:33 +0000
commit86e9ad4b508a3f86eeff8dede7b19568c04f6dfa (patch)
tree37421fb2a9ea12d8c4281e3f86952e460df53b4d /common/tests/Makefile
parent4526a5972eb782aa877da502b4793f6869b28d61 (diff)
Added coverage tools support.
git-svn-id: svn+ssh://pessac/svn/cesar/trunk@651 017c9cb6-072f-447c-8318-d5b54f68fe89
Diffstat (limited to 'common/tests/Makefile')
-rw-r--r--common/tests/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/tests/Makefile b/common/tests/Makefile
index 3aaaa55beb..848f7a18ad 100644
--- a/common/tests/Makefile
+++ b/common/tests/Makefile
@@ -1,5 +1,7 @@
BASE = ../..
RUN_TEST = run-test.pl
+GET_COV = get-cov.pl
+COVERAGE_OUTPUT = coverage
all: tests.all.brief tests.all.result
@@ -21,3 +23,8 @@ tests.clean: tests $(RUN_TEST)
%.result: %.brief
grep '^===' < $<
+
+.PHONY: cov
+
+cov: tests $(GET_COV)
+ genhtml -q -o $(COVERAGE_OUTPUT) -s $$(perl $(GET_COV) $(BASE) < $<)