summaryrefslogtreecommitdiff
path: root/tools/Makefile.am.test
diff options
context:
space:
mode:
authordeva <deva>2011-02-14 14:09:04 +0000
committerdeva <deva>2011-02-14 14:09:04 +0000
commit04f275fea9186a75836b589022a9fa410aea7b02 (patch)
tree70d5e61af8e2e8319326d3ca8a9f3ea805fe06e8 /tools/Makefile.am.test
parent95cfffa53760942c3ccf6abc18b81f48d03a3ff6 (diff)
Added gcov (coverage measurement) in unittests.
Diffstat (limited to 'tools/Makefile.am.test')
-rw-r--r--tools/Makefile.am.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/Makefile.am.test b/tools/Makefile.am.test
index 5c5e8c7..77ca17e 100644
--- a/tools/Makefile.am.test
+++ b/tools/Makefile.am.test
@@ -8,6 +8,12 @@ test: Makefile.am.test $(TESTFILES)
test_clean:
rm -f $(TESTFILES) $(TESTLOGS)
+test_report:
+ lcov --directory . --capture --output-file app.info
+ genhtml -o lcov app.info
+
+test_all: test_clean test test_report
+
TESTLOGS = `for F in ${TESTFILES}; do echo $$F.log; done`
CLEANFILES = $(TESTFILES) $(TESTLOGS) Makefile.am.test *~