+2004-05-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
+
+ * library.make: build NUnit if we try to run 'make test' and the dll
+ is not found.
+
2004-04-29 Jackson Harper <jackson@ximian.com>
* library.make: Fix uninstall
test_response = $(depsdir)/$(PROFILE)_$(test_lib).response
test_makefrag = $(depsdir)/$(PROFILE)_$(test_lib).makefrag
test_stampfile = $(depsdir)/$(PROFILE)_$(test_lib).stamp
-test_flags = /r:$(the_lib) /r:$(topdir)/class/lib/$(PROFILE)/NUnit.Framework.dll $(TEST_MCS_FLAGS)
+test_nunitfw = $(topdir)/class/lib/$(PROFILE)/NUnit.Framework.dll
+test_flags = /r:$(the_lib) /r:$(test_nunitfw) $(TEST_MCS_FLAGS)
endif
gacutil = $(topdir)/tools/gacutil/gacutil.exe
endif
ifndef NO_TEST
-test-local: $(the_lib) $(test_lib)
+$(test_nunitfw):
+ (cd ${topdir}/nunit20 && make)
-run-test-local:
+test-local: $(test_nunitfw) $(the_lib) $(test_lib)
+
+run-test-local: test-local
$(TEST_RUNTIME) $(TEST_HARNESS) $(test_lib)
else