Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriain holmes <iain@xamarin.com>2015-03-10 21:17:45 +0300
committeriain holmes <iain@xamarin.com>2015-03-10 21:17:45 +0300
commitd869b8ed636d978badea9b480f9c5276dd9421f3 (patch)
treee7ed66628a937305ff144a66db3162ec34f76a72
parentf3e7de79a27814aeebc32e97b95f431b0243529f (diff)
[Coverage] Add a make coverage option to run coverage tests
-rw-r--r--Makefile3
-rw-r--r--main/Makefile.am3
-rw-r--r--main/tests/Makefile.am8
3 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e648cb3f01..c94755b6c0 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,9 @@ run-gdb:
test:
cd main && $(MAKE) test assembly=$(assembly)
+coverage:
+ cd main && $(MAKE) coverage
+
check-addins:
cd main && $(MAKE) check-addins
diff --git a/main/Makefile.am b/main/Makefile.am
index 2460149711..8b2ad9e2ae 100644
--- a/main/Makefile.am
+++ b/main/Makefile.am
@@ -152,6 +152,9 @@ check-addins:
test:
cd tests && $(MAKE) test assembly=$(assembly)
+coverage:
+ cd tests && $(MAKE) coverage
+
app-dir: all
cd build && make app-dir
#mkdir -p $(MAC_APP_DIR)/Contents/{MacOS,Resources}
diff --git a/main/tests/Makefile.am b/main/tests/Makefile.am
index 6db71ab0c9..f804d64f2e 100644
--- a/main/tests/Makefile.am
+++ b/main/tests/Makefile.am
@@ -69,6 +69,14 @@ test:
fi; \
fi
+coverage:
+ if ! test -n "$(assembly)"; then \
+ for asm in $(TEST_ASSEMBLIES); do \
+ echo Generating coverage for `basename $$asm`...; \
+ ($(MD_LAUNCH_SETUP) exec -a "mdtool" $(RUNTIME) --debug --profile=log:coverage,output=CoverageResult_`basename $$asm`.mlpd "$(MD_BIN_PATH)/mdtool.exe" run-md-tests $$asm); \
+ done; \
+ fi
+
include $(top_srcdir)/Makefile.include
EXTRA_DIST = \