[longomatch] Add more makefile rules for coverage



commit 44a0d57af7cba8cee7f022da82f6d7517a69e27d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Mar 10 10:46:43 2015 +0100

    Add more makefile rules for coverage

 Tests/Makefile.am |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/Tests/Makefile.am b/Tests/Makefile.am
index 0469367..109c6b7 100644
--- a/Tests/Makefile.am
+++ b/Tests/Makefile.am
@@ -47,13 +47,23 @@ check:
        cp $(NUNIT_FRAMEWORK_DLL) `dirname $(ASSEMBLY_FILE)`
        $(MONO) $(NUNIT_CONSOLE_EXE) $(ASSEMBLY_FILE)
 if HAVE_COVEM
-coverage:
-       @rm -rf Tests.dll.covcfg.*
+do-coverage:
+       @rm -rf $(ASSEMBLY).dll.covcfg.*
        cp $(NUNIT_FRAMEWORK_DLL) `dirname $(ASSEMBLY_FILE)`
-       @BABOON_CFG=Tests.dll.covcfg $(COVEM) $(NUNIT_CONSOLE_EXE) $(ASSEMBLY_FILE) || true
-       @python print_coverage.py Tests.dll.covcfg.covreport
+       @BABOON_CFG=$(ASSEMBLY).dll.covcfg $(COVEM) $(NUNIT_CONSOLE_EXE) $(ASSEMBLY_FILE) || true
+       @python print_coverage.py $(ASSEMBLY).dll.covcfg.covreport
+
+print-coverage:
+       @python print_coverage.py $(ASSEMBLY).dll.covcfg.covreport
+
+render-coverage:
+       @cov-html $(ASSEMBLY).dll.covcfg.covdb longomatch
+
 show-coverage:
        $(COV_GTK) $(ASSEMBLY).dll.covcfg.covdb
+
+coverage:do-coverage print-coverage
+
 endif
 endif
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]