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:
authorRaja R Harinath <harinath@hurrynot.org>2004-12-03 18:14:37 +0300
committerRaja R Harinath <harinath@hurrynot.org>2004-12-03 18:14:37 +0300
commit10065f4006070ac9571e1bc06c863e42a73d192c (patch)
treea1ee1954606dffd842df27a0b899ebe53949f219 /runtime
parentebd4a7df44504aff5e034edb6765eb4042a7480d (diff)
* configure.in (ENABLE_NUNIT_TESTS): New.
* runtime/Makefile.am (check-local): Use it to disable nunit tests. Ensure that the test dlls are always built, however. svn path=/trunk/mono/; revision=37026
Diffstat (limited to 'runtime')
-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