Imported Upstream version 5.20.0.180

Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-02-04 20:11:37 +00:00
parent 0e2d47d1c8
commit 0510252385
3360 changed files with 83827 additions and 39243 deletions

View File

@@ -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

View File

@@ -1,4 +1,4 @@
// Compiler options: -nostdlib -noconfig -r:mscorlib.dll -r:System.Core.dll -lib:../class/lib/net_4_x
// Compiler options: -nostdlib -noconfig -r:mscorlib.dll -r:System.Core.dll -lib:$REF_DIR
public static class T
{

View File

@@ -1,4 +1,4 @@
// Compiler options: -r:../class/lib/net_4_x/Mono.Cecil.dll
// Compiler options: -r:$REF_DIR/Mono.Cecil.dll
using System;
using System.IO;

View File

@@ -1,4 +1,4 @@
// Compiler options: -r:../class/lib/net_4_x/Mono.Cecil.dll
// Compiler options: -r:$REF_DIR/Mono.Cecil.dll
using System;
using Mono.Cecil;

View File

@@ -1,4 +1,4 @@
// Compiler options: /noconfig /nostdlib -r:../class/lib/net_4_x/Facades/System.Runtime.dll -r:../class/lib/net_4_x/mscorlib.dll
// Compiler options: /noconfig /nostdlib -r:$REF_DIR/Facades/System.Runtime.dll -r:$REF_DIR/mscorlib.dll
using System;

View File

@@ -1,3 +1,4 @@
// Compiler options: -langversion:latest
// Cloning tests
using System;
@@ -103,7 +104,11 @@ public class C : B
default:
break;
}
});
});
Test (() => {
char ch = default;
});
var c = new C ();
c.InstanceTests ();

View File

@@ -1,4 +1,4 @@
// Compiler options: -r:../class/lib/net_4_x/Mono.Cecil.dll
// Compiler options: -r:$REF_DIR/Mono.Cecil.dll
using System;
using System.Threading.Tasks;

View File

@@ -1 +1 @@
40c2d585df3aa012f8646c4cc723ef60fa4ca87f
9e9a70426862d1af22c9c9160cc29d1039dc8a8b