Permalink
Browse files

2008-06-13 Zoltan Varga <vargaz@gmail.com>

	* modules.cs modules-m1.cs: New files. Tests for .netmodules.

svn path=/trunk/mono/; revision=105798
  • Loading branch information...
1 parent f8c8d96 commit c25ed79e013996b8294964b350adac5c5a6d94ca @vargaz vargaz committed Jun 13, 2008
Showing with 39 additions and 1 deletion.
  1. +4 −0 mono/tests/ChangeLog
  2. +9 −1 mono/tests/Makefile.am
  3. +5 −0 mono/tests/modules-m1.cs
  4. +21 −0 mono/tests/modules.cs
View
@@ -1,3 +1,7 @@
+2008-06-13 Zoltan Varga <vargaz@gmail.com>
+
+ * modules.cs modules-m1.cs: New files. Tests for .netmodules.
+
2008-06-13 Mark Probst <mark.probst@gmail.com>
* generic-static-methods.2.cs: Test case for static generic
View
@@ -414,7 +414,7 @@ else
if PLATFORM_WIN32
test: assemblyresolve/test/asm.dll testjit test-type-load test-inline-call-stack test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 test-generic-sharing test-bug-382986
else
-test: assemblyresolve/test/asm.dll testjit testbundle test-type-load test-inline-call-stack test-iomap-regression test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 custom-modifiers test-generic-sharing test-bug-382986
+test: assemblyresolve/test/asm.dll testjit testbundle test-type-load test-inline-call-stack test-iomap-regression test-bug-80307 test-bug-81673 test-bug-81691 test-bug-81466 test-bug-324535 custom-modifiers test-generic-sharing test-bug-382986 test-modules
endif
endif
@@ -719,6 +719,14 @@ test-async-exceptions : async-exceptions.exe
for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:foo $$i async-exceptions.exe || exit 1; done
for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:bar $$i async-exceptions.exe || exit 1; done
+EXTRA_DIST += modules.cs modules-m1.cs
+modules-m1.netmodule: modules-m1.cs
+ $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
+modules.exe: modules.cs modules-m1.netmodule
+ $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
+test-modules: modules.exe
+ $(RUNTIME) modules.exe
+
# Useful if mono is compiled with --enable-shared=no
patch-libtool:
cp "../../libtool" .
View
@@ -0,0 +1,5 @@
+class Foo
+{
+ public class Bar {
+ }
+}
View
@@ -0,0 +1,21 @@
+//
+// modules.cs:
+//
+// Tests for netmodules
+//
+
+using System;
+
+public class Tests
+{
+ public static int Main (string[] args) {
+ return TestDriver.RunTests (typeof (Tests), args);
+ }
+
+ public static int test_0_gettype_nonpublic () {
+ if (typeof (Tests).Assembly.GetType ("Foo+Bar") != null)
+ return 0;
+ else
+ return 1;
+ }
+}

0 comments on commit c25ed79

Please sign in to comment.