* 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
+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
</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"/>
<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"/>
<target name="clean">
<delete file="System_test.dll" failonerror="false"/>
+ <delete file="System_linux_test.dll" failonerror="false"/>
</target>
</project>
+++ /dev/null
-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);
- }
-}
-