|
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
|
#
|
|
|
|
|
# use make run-test PROFILE=net_2_0
|
|
|
|
|
# use make run-test
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
thisdir = tests
|
|
|
|
|
@@ -57,7 +57,14 @@ LOCAL_RUNTIME_FLAGS = --verify-all
|
|
|
|
|
COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
|
|
|
|
|
TESTER = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(TEST_RUNTIME_FLAGS) $(LOCAL_RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe
|
|
|
|
|
|
|
|
|
|
TEST_ILS := $(wildcard *-lib.il)
|
|
|
|
|
TEST_IL := $(wildcard *-lib.il) dlls/test-883.il
|
|
|
|
|
TEST_CS := \
|
|
|
|
|
dlls/test-679-2/test-679-lib-2.cs \
|
|
|
|
|
dlls/test-679-1/test-679-lib.cs \
|
|
|
|
|
dlls/test-939-common.cs \
|
|
|
|
|
dlls/test-939-1/test-939-lib.cs \
|
|
|
|
|
dlls/test-939-1/test-939-ref.cs \
|
|
|
|
|
dlls/test-939-2/test-939-lib.cs
|
|
|
|
|
|
|
|
|
|
build-compiler-lib:
|
|
|
|
|
cd ../class/Mono.CSharp && $(MAKE) NO_DIR_CHECK=yes
|
|
|
|
|
@@ -71,20 +78,15 @@ KNOWN_ISSUES = known-issues-$(PROFILE)
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
qcheck2:
|
|
|
|
|
$(TESTER) -mode:pos -files:$(TEST_PATTERN) -compiler:$(COMPILER) -issues:$(KNOWN_ISSUES) -log:$(PROFILE).log -il:ver-il-$(PROFILE).xml $(DEFINES) $(TOPTIONS)
|
|
|
|
|
$(TESTER) -mode:pos -files:$(TEST_PATTERN) -compiler:$(COMPILER) -reference-dir:$(topdir)/class/lib/$(PROFILE) -issues:$(KNOWN_ISSUES) -log:$(PROFILE).log -il:ver-il-$(PROFILE).xml $(DEFINES) $(TOPTIONS)
|
|
|
|
|
|
|
|
|
|
gen-mt-tests:
|
|
|
|
|
$(TESTER) -mode:nunit -files:'v2' -compiler:$(COMPILER) -issues:known-issues-mt -compiler-options:"-lib:$(topdir)/class/lib/monotouch projects/MonoTouch/ivt.cs"
|
|
|
|
|
$(TESTER) -mode:nunit -files:'v2' -compiler:$(COMPILER) -reference-dir:$(topdir)/class/lib/$(PROFILE) -issues:known-issues-mt -compiler-options:"-lib:$(topdir)/class/lib/monotouch projects/MonoTouch/ivt.cs"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TESTERVERBOSE=$(if $(V),-verbose,)
|
|
|
|
|
test-local: $(TEST_IL:.il=.dll) $(TEST_CS:.cs=.dll)
|
|
|
|
|
|
|
|
|
|
test-local:
|
|
|
|
|
@:
|
|
|
|
|
|
|
|
|
|
compile-all: $(TEST_ILS:.il=.dll)
|
|
|
|
|
|
|
|
|
|
run-test-local: compile-all setup qcheck
|
|
|
|
|
run-test-local: test-local qcheck
|
|
|
|
|
|
|
|
|
|
check: run-test-local
|
|
|
|
|
|
|
|
|
|
@@ -108,11 +110,23 @@ csproj-local:
|
|
|
|
|
|
|
|
|
|
CSCOMPILE_UTIL = $(CSCOMPILE) -noconfig -nologo -r:$(topdir)/class/lib/$(PROFILE)/mscorlib.dll
|
|
|
|
|
|
|
|
|
|
setup:
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-679-2/test-679-lib-2.cs -out:dlls/test-679-2/test-679-lib-2.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-679-1/test-679-lib.cs -r:dlls/test-679-2/test-679-lib-2.dll -out:dlls/test-679-1/test-679-lib.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-939-common.cs -keyfile:key.snk -publicsign -out:dlls/test-939-common.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-939-1/test-939-lib.cs -keyfile:key.snk -publicsign -out:dlls/test-939-1/test-939-lib.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-939-1/test-939-ref.cs -r:dlls/test-939-1/test-939-lib.dll -keyfile:key.snk -publicsign -out:dlls/test-939-1/test-939-ref.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library dlls/test-939-2/test-939-lib.cs -r:dlls/test-939-common.dll -keyfile:key.snk -publicsign -out:dlls/test-939-2/test-939-lib.dll
|
|
|
|
|
dlls/test-679-2/test-679-lib-2.dll: dlls/test-679-2/test-679-lib-2.cs
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ dlls/test-679-2/test-679-lib-2.cs
|
|
|
|
|
|
|
|
|
|
dlls/test-679-1/test-679-lib.dll: dlls/test-679-1/test-679-lib.cs dlls/test-679-2/test-679-lib-2.dll
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ -r:dlls/test-679-2/test-679-lib-2.dll dlls/test-679-1/test-679-lib.cs
|
|
|
|
|
|
|
|
|
|
dlls/test-939-common.dll: dlls/test-939-common.cs key.snk
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ dlls/test-939-common.cs -keyfile:key.snk -publicsign
|
|
|
|
|
|
|
|
|
|
dlls/test-939-1/test-939-lib.dll: dlls/test-939-1/test-939-lib.cs key.snk
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ dlls/test-939-1/test-939-lib.cs -keyfile:key.snk -publicsign
|
|
|
|
|
|
|
|
|
|
dlls/test-939-1/test-939-ref.dll: dlls/test-939-1/test-939-ref.cs dlls/test-939-1/test-939-lib.dll key.snk
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ dlls/test-939-1/test-939-ref.cs -r:dlls/test-939-1/test-939-lib.dll -keyfile:key.snk -publicsign
|
|
|
|
|
|
|
|
|
|
dlls/test-939-2/test-939-lib.dll: dlls/test-939-2/test-939-lib.cs dlls/test-939-common.dll key.snk
|
|
|
|
|
$(CSCOMPILE_UTIL) -t:library -out:$@ dlls/test-939-2/test-939-lib.cs -r:dlls/test-939-common.dll -keyfile:key.snk -publicsign
|
|
|
|
|
|
|
|
|
|
dlls/test-883.dll: dlls/test-883.il
|
|
|
|
|
$(ILASM) -dll dlls/test-883.il
|
|
|
|
|
|