+2003-07-20 Peter Williams <peter@newton.cx>
+
+ * config-default.make (TEST_RUNTIME): Use the platform runtime
+ to run tests, by default.
+
+ * profiles/default.make (TEST_RUNTIME): If our test runtime is
+ mono, use the --debug flag.
+
+ * executable.make (sourcefile): Add a basename so that we can
+ find the nunit sources and so we behave a bit more like
+ library.make
+
+ * config-default.make (TEST_HARNESS): Find nunit-console in its
+ new home.
+
2003-07-20 Peter Williams <peter@newton.cx>
* library.make ($(response)): Do a "Creating ..." line here.
# there.
RUNTIME_FLAGS =
-TEST_HARNESS = $(topdir)/nunit20/nunit-console/nunit-console.exe
+TEST_HARNESS = $(topdir)/class/lib/nunit-console.exe
MCS_FLAGS = $(PLATFORM_DEBUG_FLAGS) /nowarn:1595 /nowarn:0169 \
/nowarn:0109 /nowarn:0067 /nowarn:0649 /nowarn:0679
LIBRARY_FLAGS = /noconfig
CFLAGS = -g -O2
INSTALL = /usr/bin/install
RUNTIME = mono $(RUNTIME_FLAGS)
-TEST_RUNTIME=MONO_PATH="$(topdir)/class/lib:.:$$MONO_PATH" $(RUNTIME) --debug
+TEST_RUNTIME=$(PLATFORM_RUNTIME)
prefix = /usr/local
# In case you want to add MCS_FLAGS, this lets you not have to
# but since on Win32 we need to munge the paths
# anyway, we might as well.
-sourcefile = $(PROGRAM).sources
+base_prog = $(shell basename $(PROGRAM))
+sourcefile = $(base_prog).sources
ifdef PLATFORM_CHANGE_SEPARATOR_CMD
-response = $(depsdir)/$(PROGRAM).response
+response = $(depsdir)/$(base_prog).response
else
response = $(sourcefile)
endif
-stampfile = $(depsdir)/$(PROGRAM).stamp
-makefrag = $(depsdir)/$(PROGRAM).makefrag
+stampfile = $(depsdir)/$(base_prog).stamp
+makefrag = $(depsdir)/$(base_prog).makefrag
pdb = $(patsubst %.exe,%.pdb,$(PROGRAM))
all-local: $(PROGRAM)
ifdef PLATFORM_MONO_NATIVE
MCS = MONO_PATH="$(topdir)/class/lib:$$MONO_PATH" $(INTERNAL_MCS)
+TEST_RUNTIME = MONO_PATH=".:$$MONO_PATH" $(RUNTIME) --debug
else
MCS = $(PLATFORM_RUNTIME) $(BOOTSTRAP_MCS) /lib:$(topdir)/class/lib
endif
SUBDIRS =
include ../../build/rules.make
-PROGRAM = nunit-console.exe
+PROGRAM = $(topdir)/class/lib/nunit-console.exe
LOCAL_MCS_FLAGS = /r:NUnit.Framework.dll /r:NUnit.Util.dll
DISTFILES = app.config App.ico nunit-console.csproj