diff options
author | iain holmes <iain@xamarin.com> | 2015-03-10 21:17:45 +0300 |
---|---|---|
committer | iain holmes <iain@xamarin.com> | 2015-03-10 21:17:45 +0300 |
commit | d869b8ed636d978badea9b480f9c5276dd9421f3 (patch) | |
tree | e7ed66628a937305ff144a66db3162ec34f76a72 /main | |
parent | f3e7de79a27814aeebc32e97b95f431b0243529f (diff) |
[Coverage] Add a make coverage option to run coverage tests
Diffstat (limited to 'main')
-rw-r--r-- | main/Makefile.am | 3 | ||||
-rw-r--r-- | main/tests/Makefile.am | 8 |
2 files changed, 11 insertions, 0 deletions
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 = \ |