Prechádzať zdrojové kódy

[mcs/tests] add interp target

Bernhard Urban 8 rokov pred
rodič
commit
d12dda34e4

+ 7 - 1
mcs/tests/Makefile

@@ -56,6 +56,7 @@ endif
 LOCAL_RUNTIME_FLAGS = --verify-all
 COMPILER = $(topdir)/class/lib/$(PROFILE)/mcs.exe
 TESTER = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(RUNTIME_FLAGS) $(LOCAL_RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe
+TESTER_INTERP = MONO_RUNTIME='$(RUNTIME)' $(TEST_RUNTIME) $(RUNTIME_FLAGS) --interpreter $(LOCAL_RUNTIME_FLAGS) $(topdir)/class/lib/$(PROFILE)/compiler-tester.exe
 
 TEST_ILS := $(wildcard *-lib.il)
 
@@ -70,10 +71,15 @@ qcheck2:
 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"
 
+check-interp: compile-all setup build-compiler-lib
+	$(TESTER_INTERP) -mode:pos -files:$(TEST_PATTERN) -compiler:$(COMPILER) -issues:known-issues-interp-$(PROFILE) -log:$(PROFILE).log -il:ver-il-$(PROFILE).xml $(DEFINES) $(TOPTIONS)
+
 test-local:
 	@:
 
-run-test-local: $(TEST_ILS:.il=.dll) setup qcheck
+compile-all: $(TEST_ILS:.il=.dll)
+
+run-test-local: compile-all setup qcheck
 
 check: run-test-local
 

+ 22 - 0
mcs/tests/known-issues-interp-net_4_x

@@ -0,0 +1,22 @@
+# This file contains test files which cause any type of error.
+
+# This file supports extended syntax
+# csXXXX.cs		: test case causes error
+# csXXXX.cs IGNORE 	: adds test to ignore list
+
+gtest-230.cs
+test-pattern-02.cs
+test-pattern-04.cs
+test-pattern-05.cs
+test-pattern-07.cs
+
+gtest-etree-01.cs
+gtest-etree-09.cs
+test-269.cs
+test-270.cs
+test-399.cs
+test-404.cs
+test-704.cs
+test-795.cs
+test-811.cs
+test-async-17.cs

+ 1 - 0
scripts/ci/run-test-interpreter.sh

@@ -6,3 +6,4 @@ ${TESTCMD} --label=interpreter-regression --timeout=10m make -C mono/mini richec
 ${TESTCMD} --label=mixedmode-regression --timeout=10m make -C mono/mini mixedcheck
 ${TESTCMD} --label=compile-runtime-tests --timeout=40m make -w -C mono/tests -j4 tests
 ${TESTCMD} --label=runtime-interp --timeout=160m make -w -C mono/tests -k testinterp V=1
+${TESTCMD} --label=mcs-tests --timeout=160m make -w -C mcs/tests -k check-interp V=1