Browse Source

2003-02-19 Sebastien Pouliot <[email protected]>

	* AllTests.cs: Removed. No more required with NUnit2.
	* makefile.gnu, security_linux_test.args: untested makefile
	* System.Security_test.build: Updated for NUnit2.

svn path=/trunk/mcs/; revision=11755
Sebastien Pouliot 23 years ago
parent
commit
74a87fcfc7

+ 0 - 28
mcs/class/System.Security/Test/AllTests.cs

@@ -1,28 +0,0 @@
-//
-// MonoTests.System.Security.AllTests.cs
-//
-// Author:
-//	Sebastien Pouliot ([email protected])
-//
-// (C) 2002 Motus Technologies Inc. (http://www.motus.com)
-//
-
-using System;
-using NUnit.Framework;
-
-namespace MonoTests.System.Security {
-
-public class AllTests : TestCase {
-
-	public AllTests (string name) : base (name) {}
-        
-	public static ITest Suite { 
-		get {
-			TestSuite suite =  new TestSuite ();
-			suite.AddTest (System.Security.Cryptography.Xml.AllTests.Suite);
-			return suite;
-		}
-	}
-}
-
-}

+ 6 - 0
mcs/class/System.Security/Test/ChangeLog

@@ -1,3 +1,9 @@
+2003-02-19  Sebastien Pouliot  <[email protected]>
+
+	* AllTests.cs: Removed. No more required with NUnit2.
+	* makefile.gnu, security_linux_test.args: untested makefile
+	* System.Security_test.build: Updated for NUnit2.
+
 2003-01-17  Sebastien Pouliot  <[email protected]>
 
 	* AllTests.cs: Removed System.Security.Cryptography from using.

+ 3 - 3
mcs/class/System.Security/Test/System.Security_test.build

@@ -16,8 +16,8 @@
 			<sources>
 				<includes name="**/*.cs"/>
 			</sources>
-			<references basedir="..\..\..\nunit">
-				<includes name="NUnitCore.dll"/>
+			<references basedir="..\..\..\nunit20">
+				<includes name="NUnit.Framework.dll"/>
 				<includes name="..\class\lib\corlib.dll"/>
 				<includes name="..\class\lib\System.XML.dll"/>
 				<includes name="..\class\lib\System.Security.dll"/>
@@ -28,7 +28,7 @@
 	</target>
 
 	<target name="test" depends="assemblies">
-		<exec program="..\..\..\nunit\NUnitConsole" commandline="MonoTests.System.Security.AllTests,System.Security_test.dll" failonerror="false"/>
+		<exec program="..\..\..\nunit20\nunit-console.exe" commandline="System.Security_test.dll" failonerror="false"/>
 	</target>
 
 	<target name="clean">

+ 27 - 0
mcs/class/System.Security/Test/makefile.gnu

@@ -0,0 +1,27 @@
+topdir = ../../..
+
+LIBRARY = security_linux_test.dll
+
+LIB_LIST = security_linux_test.args
+LIB_FLAGS =	\
+	-r $(topdir)/class/lib/corlib.dll \
+	-r $(topdir)/class/lib/System.Xml.dll \
+	-r $(topdir)/class/lib/NUnitCore_mono.dll
+
+SOURCES_INCLUDE=*.cs
+SOURCES_EXCLUDE=_DUMMY_
+
+include $(topdir)/class/library.make
+
+MCS_FLAGS = --target library --noconfig
+
+TEST_SUITE_PREFIX = MonoTests.
+TEST_SUITE = AllTests
+NUNITCONSOLE=$(topdir)/class/lib/NUnitConsole_mono.exe 
+
+test: $(LIBRARY) run_test
+
+.PHONY: run_test
+
+run_test:
+	MONO_PATH=$(NUNIT_MONO_PATH) mono $(NUNITCONSOLE) $(TEST_SUITE_PREFIX)$(TEST_SUITE),security_linux_test.dll

+ 5 - 0
mcs/class/System.Security/Test/security_linux_test.args

@@ -0,0 +1,5 @@
+--target library
+-o security_linux_test.dll
+--noconfig
+-r ../../lib/System.Xml.dll
+-r ../../../nunit20/NUnit.Framework.dll