Add new test
[mono.git] / mono / tests / Makefile.am
index 790f6bf2af27591d5f3dd65c2587713a07586ab4..e39d576373b9737b7b842f2993ec727943671d83 100644 (file)
@@ -140,7 +140,6 @@ BASE_TEST_CS_SRC=           \
        iface4.cs               \
        iface-large.cs          \
        virtual-method.cs       \
-       virtual-sync.cs \
        intptrcast.cs           \
        indexer.cs              \
        stream.cs               \
@@ -194,6 +193,7 @@ BASE_TEST_CS_SRC=           \
        marshal7.cs             \
        marshal8.cs             \
        marshal9.cs             \
+       marshalbool.cs          \
        marshal-valuetypes.cs   \
        test-byval-in-struct.cs \
        thread.cs               \
@@ -297,7 +297,11 @@ BASE_TEST_CS_SRC=          \
        generic-system-arrays.2.cs      \
        generic-stack-traces.2.cs       \
        generic-stack-traces2.2.cs      \
+       bug-472600.2.cs \
        recursive-generics.2.cs \
+       bug-473482.2.cs \
+       bug-473999.2.cs \
+       bug-479763.2.cs \
        bug-80392.2.cs          \
        dynamic-method-access.2.cs      \
        bug-82194.2.cs  \
@@ -341,7 +345,15 @@ BASE_TEST_CS_SRC=          \
        generic-unloading.2.cs  \
        generic-unloading-sub.2.cs      \
        bug-467456.cs   \
-       appdomain-unload-callback.cs
+       appdomain-unload-callback.cs    \
+       bug-472692.2.cs         \
+       gchandles.cs    \
+       interlocked-3.cs        \
+       interlocked-4.2.cs      \
+       finalizer-wait.cs       \
+       critical-finalizers.cs  \
+       appdomain-thread-abort.cs \
+       w32message.cs
 
 if AMD64
 TEST_CS_SRC = $(BASE_TEST_CS_SRC) async-exc-compilation.cs
@@ -373,9 +385,12 @@ if POWERPC
 PLATFORM_DISABLED_TESTS=finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
 endif
 
+# The two finalizer tests only work under sgen
 DISABLED_TESTS=                        \
        delegate-async-exception.exe    \
        bug-348522.2.exe        \
+       finalizer-wait.exe      \
+       critical-finalizers.exe \
        $(PLATFORM_DISABLED_TESTS)
 
 # These only compile with MS CSC
@@ -437,7 +452,8 @@ TEST_IL_SRC=                        \
        bug457574.il    \
        bug445361.il    \
        bug-463303.il   \
-       bug469742.2.il
+       bug469742.2.il  \
+       bug-481403.il
 
 #      bug-318677.il
 
@@ -466,7 +482,7 @@ EXTRA_DIST=test-driver $(TEST_CS_SRC) $(TEST_IL_SRC) \
 
 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
 if POWERPC
-test_platform:
+test_platform: testbundle
 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...
@@ -477,13 +493,21 @@ test_platform:    testbundle test-iomap-regression
 endif
 endif
 
+#
+# 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: 
+       > test_messages.zero
+       $(JITTEST_PROG_RUN) w32message.exe >& w32message.allout && cmp test_messages.zero w32message.allout
+
 if INSTALL_2_1
 test_2_1 : test-coreclr-security
 else
 test_2_1 :
 endif
 
-test: assemblyresolve/test/asm.dll testjit test-type-load test-generic-sharing test_platform test_2_1
+test: assemblyresolve/test/asm.dll testjit test-type-load test-generic-sharing test_platform test_2_1 test_messages
 
 assemblyresolve/test/asm.dll:
        $(MAKE) -C assemblyresolve prereq
@@ -743,7 +767,9 @@ test-generic-sharing : generics-sharing.2.exe shared-generic-methods.2.exe  \
                generic-virtual-invoke.2.exe generic-typedef.2.exe              \
                generic-marshalbyref.2.exe bug-459285.2.exe bug-461198.2.exe    \
                generic-sealed-virtual.2.exe generic-system-arrays.2.exe        \
-               generic-stack-traces.2.exe generic-stack-traces2.2.exe
+               generic-stack-traces.2.exe generic-stack-traces2.2.exe          \
+               bug-472600.2.exe bug-473482.2.exe bug-473999.2.exe              \
+               bug-479763.2.exe
        @for fn in $+ ; do      \
                echo "Testing $$fn ...";        \
                MONO_GENERIC_SHARING=all $(RUNTIME) -O=gshared                $$fn > $$fn.stdout || exit 1;     \