New tests.
[mono.git] / mcs / tests / Makefile
index ed169d67b04db8d6a726eba597508066fa69f6fe..956b930e7b379081f52a131319a4aff7329416a9 100644 (file)
@@ -14,16 +14,12 @@ with_mono_path = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARA
 ilasm = $(topdir)/class/lib/$(PROFILE)/ilasm.exe
 ILASM = MONO_PATH="$(topdir)/class/lib/$(PROFILE)$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(ilasm)
 
-ifeq (net_2_0, $(PROFILE))
-BOOTSTRAP_MCS = MONO_PATH="$(topdir)/class/lib/net_2_0_bootstrap$(PLATFORM_PATH_SEPARATOR)$$MONO_PATH" $(RUNTIME) $(RUNTIME_FLAGS) $(topdir)/class/lib/net_2_0_bootstrap/mcs.exe
-endif
-
 USE_MCS_FLAGS :=
 
 # mention all targets
 all-local $(STD_TARGETS:=-local):
 
-VALID_PROFILE := $(filter net_2_0 net_2_1 net_4_0, $(PROFILE))
+VALID_PROFILE := $(filter net_2_0 moonlight net_4_0, $(PROFILE))
 ifdef VALID_PROFILE
 # casts
 bootstrap-cast.exe: gen-cast-test.cs
@@ -56,7 +52,7 @@ TEST_PATTERN = 'v4'
 LOCAL_RUNTIME_FLAGS = --verify-all
 #TOPTIONS += '-il:ver-il-dmcs.xml'
 endif
-ifeq (net_2_1, $(PROFILE))
+ifeq (moonlight, $(PROFILE))
 COMPILER_NAME = smcs
 TEST_PATTERN = 'v2'
 LOCAL_RUNTIME_FLAGS = --security=temporary-smcs-hack
@@ -74,10 +70,13 @@ TESTER = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(LOCAL_RUNT
 TEST_ILS := $(wildcard *-lib.il)
 
 eval-test: 
-       $(CSCOMPILE) eval-test.cs -r:$(COMPILER)
+       $(CSCOMPILE) eval-test.cs -r:Mono.CSharp.dll
        $(with_mono_path) $(RUNTIME) $(RUNTIME_FLAGS) eval-test.exe
+       
+build-compiler-lib:
+       cd ../class/Mono.CSharp && $(MAKE) NO_DIR_CHECK=yes
 
-check: eval-test
+check: build-compiler-lib eval-test
        $(TESTER) -mode:pos -files:$(TEST_PATTERN) -compiler:$(COMPILER) -issues:known-issues-$(COMPILER_NAME) -log:$(COMPILER_NAME).log $(TOPTIONS)
 
 test-local:
@@ -105,6 +104,8 @@ clean-local:
 dist-local: dist-default
        rm -f $(distdir)/casts.cs
 
+csproj-local:
+
 %-il.dll: %-il.il
        $(ILASM) /dll $<