+2004-12-03 Raja R Harinath <rharinath@novell.com>
+
+ * 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.
+
2004-12-03 Raja R Harinath <rharinath@novell.com>
* Makefile.am (dist-hook): Ensure we use the 'default' profile.
AC_SUBST(ICU_CFLAGS)
AC_SUBST(ICU_LIBS)
+AC_ARG_ENABLE(nunit-tests, [ --enable-nunit-tests Run the nunit tests of the class library on 'make check'])
+AM_CONDITIONAL(ENABLE_NUNIT_TESTS, [test x$enable_nunit_tests = xyes])
+
TARGET="unknown"
ACCESS_UNALIGNED="yes"
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