RUNTIME_ARGS=--config tests-config --optimize=all --debug
-with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_2_0
+with_mono_path = MONO_PATH=$(mcs_topdir)/class/lib/net_4_0
with_mono_path_moonlight = MONO_PATH=$(mcs_topdir)/class/lib/moonlight_raw
RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
MKBUNDLE = \
PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
- $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/mkbundle.exe
+ $(RUNTIME) $(mcs_topdir)/class/lib/net_4_0/mkbundle.exe
-MCS = $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/gmcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 -debug
-SMCS = $(RUNTIME_MOONLIGHT) --runtime=moonlight --security=temporary-smcs-hack $(mcs_topdir)/class/lib/moonlight_raw/smcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219
-ILASM = $(RUNTIME) $(mcs_topdir)/class/lib/net_2_0/ilasm.exe
+MCS = $(RUNTIME) $(mcs_topdir)/class/lib/build/mcs.exe -unsafe -nowarn:0162 -nowarn:0168 -nowarn:0219 -debug
+ILASM = $(RUNTIME) $(mcs_topdir)/class/lib/net_4_0/ilasm.exe
BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
process-stress.cs \
assembly-load-stress.cs
+# Disabled until ?mcs is fixed
+# bug-331958.cs
BASE_TEST_CS_SRC= \
array-init.cs \
arraylist.cs \
bug-78656.cs \
bug-77127.cs \
bug-323114.cs \
- bug-331958.cs \
interlocked.cs \
cross-domain.cs \
appdomain-exit.cs \
bug-562150.cs \
bug-575941.cs \
bug-599469.cs \
- bug-389886-3.cs
+ bug-389886-3.cs \
+ monitor.cs \
+ dynamic-method-resurrection.cs \
+ bug-666008.cs
TEST_CS_SRC_DIST= \
$(BASE_TEST_CS_SRC) \
async-exc-compilation.cs \
- filter-stack.cs
+ filter-stack.cs \
+ finally_guard.cs
+
+TEST_CS_SRC_GEN = \
+ runtime-invoke.gen.cs \
+ imt_big_iface_test.cs
if AMD64
-TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
+TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs
+# #651684
+PLATFORM_DISABLED_TESTS = finally_guard.exe
else
if X86
-TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
+TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN) async-exc-compilation.cs finally_guard.cs
else
-TEST_CS_SRC = $(BASE_TEST_CS_SRC)
+TEST_CS_SRC = $(BASE_TEST_CS_SRC) $(TEST_CS_SRC_GEN)
endif
endif
if X86
if HOST_WIN32
-PLATFORM_DISABLED_TESTS=async-exc-compilation.exe
+PLATFORM_DISABLED_TESTS=async-exc-compilation.exe finally_guard.exe
endif
endif
PLATFORM_DISABLED_TESTS=filter-stack.exe
endif
+if S390x
+PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe
+#PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
+endif
+
# The two finalizer tests only work under sgen
# gc-altstack.exe fails under boehm because it has no support for altstack
# bug-459094.exe creates an extremely deep directory tree
bug-481403.il \
interface-with-static-method.il \
bug-515884.il \
- bug-633291.il
-
-# bug-318677.il
+ bug-633291.il \
+ delegate-with-null-target.il \
+ bug-318677.il
# pre-requisite test sources: files that are not test themselves
# but that need to be compiled
# mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
if POWERPC
-test_platform: testbundle
+test_platform:
else
# Can't use mkbundle on win32 since there is no static build there
# Can't run test-unhandled-exception on Windows because of all the debug popups...
endif
endif
+if X86
+if HOST_WIN32
+else
+test_platform: test-eglib-remap
+endif
+endif
+
+#
+# Test that no symbols are missed in eglib-remap.h
+#
+OK_G_SYMBOLS='g_list\|g_slist\|g_concat_dir_and_file'
+test-eglib-remap:
+ @echo "Testing eglib remap..."
+ @if which nm > /dev/null; then if nm $(top_builddir)/mono/mini/mono | grep -v $(OK_G_SYMBOLS) | grep 't g_'; then exit 1; else exit 0; fi; fi
+
#
# Tests that the internals in mono/io-layer/messages.c are ok by triggering the
# code that checks that the table is properly sorted
# test_messages fails on the buildbots
#test: assemblyresolve/test/asm.dll testjit test-type-load test-generic-sharing test_platform test_2_1 test_messages
-test: assemblyresolve/test/asm.dll testjit test-type-load test-generic-sharing test_platform test-runtime-invoke test-imt-big-iface test_2_1 test-process-exit
+test: assemblyresolve/test/asm.dll testjit test-generic-sharing test-type-load test_platform test_2_1 test-process-exit
assemblyresolve/test/asm.dll:
$(MAKE) -C assemblyresolve prereq
# Generated tests for runtime invoke
EXTRA_DIST += gen-runtime-invoke.cs
-test-runtime-invoke: TestDriver.dll gen-runtime-invoke.exe
- @$(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
- @$(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
- @echo "Testing runtime-invoke.gen.exe..."
- @$(RUNTIME) runtime-invoke.gen.exe > runtime-invoke.gen.exe.stdout 2> runtime-invoke.gen.exe.stderr
+runtime-invoke.gen.exe: TestDriver.dll gen-runtime-invoke.exe
+ $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
+ $(MCS) -out:runtime-invoke.gen.exe -r:TestDriver.dll runtime-invoke.gen.cs
EXTRA_DIST += make-imt-test.cs
-test-imt-big-iface: TestDriver.dll make-imt-test.exe
- @$(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
- @$(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
- @echo "Testing imt_big_iface_test.exe..."
- @$(RUNTIME) imt_big_iface_test.exe > imt_big_iface_test.exe.stdout 2> imt_big_iface_test.exe.stderr
+imt_big_iface_test.exe: TestDriver.dll make-imt-test.exe
+ $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
+ $(MCS) -out:imt_big_iface_test.exe -r:TestDriver.dll imt_big_iface_test.cs
EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
test-inline-call-stack-library.dll: TestDriver.dll $(srcdir)/test-inline-call-stack-library.cs
@$(RUNTIME) bug-438454.exe > bug-438454.exe.stdout
@diff bug-438454.exe.stdout $(srcdir)/bug-438454.exe.stdout.expected
+OOM_TESTS = \
+ gc-oom-handling.exe \
+ gc-oom-handling2.exe
+
+
+test-oom: $(OOM_TESTS)
+ @for fn in $+ ; do \
+ echo "Testing $$fn ..."; \
+ MONO_GC_PARAMS=max-heap-size=16m,major=marksweep-par MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
+ MONO_GC_PARAMS=max-heap-size=16m MONO_ENV_OPTIONS="--gc=sgen" $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
+ MONO_GC_PARAMS=max-heap-size=16m $(RUNTIME) $$fn > $$fn.stdout || exit 1; \
+ done
+
+
noinst_LTLIBRARIES = libtest.la
INCLUDES = $(GLIB_CFLAGS) $(GMODULE_CFLAGS)