Procházet zdrojové kódy

* Removed AllTests.cs, System.Configuration.Install/AllTests.cs
System.Configuration.Install/ChangeLog
* NUnit2ified makefile.gnu, system_configuration_install_linux_test.args,
* Added System.Configuration.Install/FakeTest.cs

svn path=/trunk/mcs/; revision=12470

Martin Willemoes Hansen před 23 roky
rodič
revize
07eebc458a

+ 0 - 29
mcs/class/System.Configuration.Install/Test/AllTests.cs

@@ -1,29 +0,0 @@
-//
-// MonoTests.AllTests.cs
-//
-// Author:
-//      Gonzalo Paniagua Javier ([email protected])
-//
-// (C) 2002 Ximian, Inc. (http://www.ximian.com)
-//
-
-using System;
-using NUnit.Framework;
-
-namespace MonoTests
-{
-        public class AllTests : TestCase
-	{
-                public AllTests (string name) : base (name) {}
-                
-                public static ITest Suite 
-                { 
-                        get {
-                                TestSuite suite =  new TestSuite();
-				suite.AddTest (System.Configuration.Install.AllTests.Suite);
-				return suite;
-                        }
-                }
-        }
-}
-

+ 6 - 1
mcs/class/System.Configuration.Install/Test/ChangeLog

@@ -1,5 +1,10 @@
+2003-03-12  Martin Willemoes Hansen <[email protected]>
+	* Removed AllTests.cs, System.Configuration.Install/AllTests.cs
+	  System.Configuration.Install/ChangeLog
+	* NUnit2ified makefile.gnu, system_configuration_install_linux_test.args,
+	* Added System.Configuration.Install/FakeTest.cs
+	
 2002-07-15  Gonzalo Paniagua Javier <[email protected]>
-
 	* AllTests.cs: New file.
 	* System.Configuration.Install_test.build: modified randomly until it
 	works.

+ 0 - 27
mcs/class/System.Configuration.Install/Test/System.Configuration.Install/AllTests.cs

@@ -1,27 +0,0 @@
-//
-// MonoTests.System.Configuration.Install.AllTests
-//
-// Authors:
-// 	Gonzalo Paniagua Javier ([email protected])
-//
-// (C) 2002 Ximian, Inc.  (http://www.ximian.com)
-// 
-
-using System;
-using NUnit.Framework;
-
-namespace MonoTests.System.Configuration.Install {
-        public class AllTests : TestCase {
-
-                public AllTests (string name) : base (name) {}
-                
-                public static ITest Suite { 
-                        get 
-                        {
-                                TestSuite suite = new TestSuite();
-				return suite;
-                        }
-                }
-        }
-}
-

+ 30 - 0
mcs/class/System.Configuration.Install/Test/System.Configuration.Install/FakeTest.cs

@@ -0,0 +1,30 @@
+//
+// MonoTests.System.Configuration.Install.FakeTest
+//
+// Authors:
+// 	Martin Willemoes Hansen <[email protected]>
+//
+// (C) 2003 Martin Willemoes Hansen
+// 
+// This test should be sent to /dev/null when real
+// tests arrive.
+
+using System;
+using NUnit.Framework;
+
+namespace MonoTests.System.Configuration.Install {
+
+	[TestFixture]
+        public class FakeTest {
+
+		[SetUp]
+		public void GetReady () {}
+
+		[TearDown]
+		public void Clear () {}
+
+		[Test]
+		public void Fake () {}
+        }
+}
+

+ 12 - 14
mcs/class/System.Configuration.Install/Test/makefile.gnu

@@ -3,27 +3,25 @@ topdir = ../../..
 LIBRARY = system_configuration_install_linux_test.dll
 
 LIB_LIST = system_configuration_install_linux_test.args
-LIB_FLAGS =	\
-		-r $(topdir)/class/lib/corlib.dll \
-		-r $(topdir)/class/lib/System.dll \
-	    -r $(topdir)/class/lib/NUnitCore_mono.dll
-
-SOURCES_INCLUDE=*.cs
+LIB_FLAGS =     \
+                -r $(topdir)/class/lib/corlib.dll \
+                -r $(topdir)/class/lib/System.dll \
+                -r $(topdir)/nunit20/NUnit.Framework.dll
+
+ifdef SUBDIR
+USE_SOURCE_RULES=1
+SOURCES_INCLUDE=./$(SUBDIR)/*.cs
 SOURCES_EXCLUDE=_DUMMY_
+endif
 
 include $(topdir)/class/library.make
 
-MCS_FLAGS = --target library --noconfig
-
-TEST_SUITE_PREFIX = MonoTests.
-TEST_SUITE = AllTests
-NUNITCONSOLE=$(topdir)/class/lib/NUnitConsole_mono.exe 
-MONO_PATH = $(topdir)/class/lib:.
-
+NUNITCONSOLE=$(topdir)/nunit20/nunit-console.exe
+MONO_PATH = $(topdir)/nunit20:.
 
 test: $(LIBRARY) run_test
 
 .PHONY: run_test
 
 run_test:
-	-MONO_PATH=$(MONO_PATH) mono $(NUNITCONSOLE) $(TEST_SUITE_PREFIX)$(TEST_SUITE),system_configuration_install_linux_test.dll
+        -MONO_PATH=$(MONO_PATH) mono --debug $(NUNITCONSOLE) $(LIBRARY)

+ 1 - 2
mcs/class/System.Configuration.Install/Test/system_configuration_install_linux_test.args

@@ -1,2 +1 @@
-./AllTests.cs
-./System.Configuration.Install/AllTests.cs
+System.Configuration.Install/FakeTest.cs