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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/Makefile.am')
-rw-r--r--runtime/Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am
index 1944612be07..df54e44b83e 100644
--- a/runtime/Makefile.am
+++ b/runtime/Makefile.am
@@ -54,13 +54,25 @@ else
TEST_SUPPORT_FILES = $(tmpinst)/bin/mcs $(tmpinst)/bin/mbas $(tmpinst)/bin/ilasm
endif
-check-local:
+if ENABLE_NUNIT_TESTS
+test_select =
+else
+test_select = TEST_SUBDIRS='tests errors'
+endif
+
+mcs-do-test-profiles:
+ d=`pwd`; cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' test-profiles
+
+mcs-do-run-test-profiles:
$(mkinstalldirs) $(tmpinst)/bin
$(MAKE) $(TEST_SUPPORT_FILES)
d=`pwd`; PATH=$$d/$(tmpinst)/bin:$$PATH ; export PATH ; \
( cd $(mcs_topdir) && $(MAKE) RUNTIME=$$d/mono-wrapper PROFILES='$(build_profiles)' run-test-profiles ) || ret=false ; \
rm -fr $(tmpinst) ; $$ret
+check-local: mcs-do-test-profiles
+ $(MAKE) $(test_select) mcs-do-run-test-profiles
+
$(tmpinst)/bin/mcs:
$(MAKE) test-support-file target=$@ file=class/lib/default/mcs.exe