2002-09-17 Nick Drochak <ndrochak@gol.com>
authorNick Drochak <nickd@mono-cvs.ximian.com>
Tue, 17 Sep 2002 13:51:33 +0000 (13:51 -0000)
committerNick Drochak <nickd@mono-cvs.ximian.com>
Tue, 17 Sep 2002 13:51:33 +0000 (13:51 -0000)
* TheTests.cs: Removed.  Not needed anymore since NUnit runs on linux.
* Syste_test.build: Build a linux version of the unit tests (just a
different linking of dll's)

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

mcs/class/System/Test/ChangeLog
mcs/class/System/Test/System_test.build
mcs/class/System/Test/TheTests.cs [deleted file]

index b0784f1ebaaf027d3bcb39eacaac1c926c7a72e6..57ef8eb3125aa628e4519065786bbb686da5a0a7 100644 (file)
@@ -1,3 +1,9 @@
+2002-09-17  Nick Drochak  <ndrochak@gol.com>
+
+       * TheTests.cs: Removed.  Not needed anymore since NUnit runs on linux.
+       * Syste_test.build: Build a linux version of the unit tests (just a 
+       different linking of dll's)
+
 2002/05/17  Lawrence Pit  <loz@cable.a2000.nl>
 
        * AllTests.cs: added call to System.Net.Sockets.AllTests.cs
index ba514d19d8281db7cbc76cc9867a49ffc9e95f32..b318b79aa20faa07eda14f2bd0401656a24a0732 100644 (file)
        </target>
 
        <target name="assemblies">
+               <csc target="library" output="System_linux_test.dll" debug="${debug}">
+                       <sources>
+                               <includes name="**/*.cs"/>
+                       </sources>
+                       <references basedir="..\..\..\nunit">
+                               <includes name="NUnitCore_mono.dll"/>
+                       </references>
+
+                       <arg value="/r:.\System.dll"/>
+                       <arg value="/r:..\..\lib\corlib.dll"/>
+                       <arg value="/nowarn:1595"/>
+                       <arg value="/nostdlib"/>        <!-- don't reference mscorlib -->
+                       <arg value="/noconfig"/>        <!-- don't reference ms assemblies -->
+               </csc>
+
                <csc target="library" output="System_test.dll" debug="${debug}">
                        <sources>
                                <includes name="**/*.cs"/>
-                               <excludes name="TheTests.cs"/>
                        </sources>
                        <references basedir="..\..\..\nunit">
                                <includes name="NUnitCore.dll"/>
@@ -28,8 +42,6 @@
                <csc target="exe" output="RunTests.System.exe" debug="${debug}">
                        <sources>
                                <includes name="**/*.cs"/>
-                               <excludes name="**/AllTests.cs"/>
-                               <excludes name="**/MartinTests.cs"/>
                        </sources>
                        <references basedir="..\..\..\nunit">
                                <includes name="NUnitBase.dll"/>
@@ -50,5 +62,6 @@
 
        <target name="clean">
                <delete file="System_test.dll" failonerror="false"/>
+               <delete file="System_linux_test.dll" failonerror="false"/>
        </target>
 </project>
diff --git a/mcs/class/System/Test/TheTests.cs b/mcs/class/System/Test/TheTests.cs
deleted file mode 100644 (file)
index 34f596b..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-using NUnit.Framework;
-using System;
-using System.Threading;
-using System.Globalization;
-
-namespace MonoTests.System
-{
-       public class RunDnsTest : Net.DnsTest
-       {
-               protected override void RunTest ()
-               {
-                       TestAsyncGetHostByName ();
-                       TestAsyncResolve ();
-                       TestGetHostName ();
-                       TestGetHostByName ();
-                       TestGetHostByAddressString ();
-                       TestGetHostByAddressIPAddress ();
-                       TestResolve ();
-               }
-       }
-}
-
-namespace MonoTests.System.Collections.Specialized.Collections.Specialized
-{
-       public class RunStringCollectionTest : StringCollectionTest
-       {
-               protected override void RunTest ()
-               {
-                       TestSimpleCount ();
-                       TestSimpleIsReadOnly ();
-                       TestSimpleIsSynchronized ();
-                       TestSimpleItemGet ();
-                       TestSimpleItemSet ();
-                       TestSimpleSyncRoot ();
-                       TestSimpleAdd ();
-                       TestSimpleAddRange ();
-                       TestSimpleClear ();
-                       TestSimpleContains ();
-                       TestSimpleCopyTo ();
-                       TestSimpleGetEnumerator ();
-                       TestSimpleIndexOf ();
-                       TestSimpleInsert ();
-                       TestSimpleRemove ();
-                       TestSimpleRemoveAt ();
-               }
-       }
-}
-
-namespace MonoTests
-{
-       public class RunAllTests
-       {
-               public static void AddAllTests (TestSuite suite)
-               {
-                       suite.AddTest (new MonoTests.System.RunDnsTest ());
-                       suite.AddTest (new MonoTests.System.Collections.Specialized.Collections.Specialized.RunStringCollectionTest ());
-               }
-       }
-}
-
-class MainApp
-{
-       public static void Main()
-       {
-               Thread.CurrentThread.CurrentCulture = new CultureInfo ("en-US");
-
-               TestResult result = new TestResult ();
-               TestSuite suite = new TestSuite ();
-               MonoTests.RunAllTests.AddAllTests (suite);
-               suite.Run (result);
-               MonoTests.MyTestRunner.Print (result);
-       }
-}
-