* PEAPI.cs: Clean up indentation. Split into ...
[mono.git] / mcs / class / System.Drawing / Test / System.Drawing / tests-ms.sh
index 114ac84afd0cf462ff2af8b6b57c15faec378b3e..6e17f2703934b67416b7d3e67270e91a9949ed22 100755 (executable)
@@ -1,19 +1,28 @@
 #!/bin/sh\r
 \r
-if [ ! -d "MSNet" ]; then\r
-       mkdir MSNet\r
+if [ $# -eq 0 ]; then\r
+       echo "You should give a list of test names such as: "\r
+       echo "$0 System.Drawing.TestStringFormat"\r
+       echo "or"\r
+       echo "$0 all"   \r
+       exit 1\r
 fi\r
 \r
 export MSNet=Yes\r
+cp ../../System.Drawing_test_default.dll .\r
+topdir=../../../..\r
+NUNITCONSOLE=$topdir/class/lib/default/nunit-console.exe\r
+MONO_PATH=$topdir/nunit20:$topdir/class/lib:.\r
 \r
-mcs /target:library  TestPoint.cs /r:NUnit.Framework.dll /r:System.Drawing.dll \r
-nunit-console TestBitmap.dll\r
+for i in $@; do\r
+       if [ "$i" = "all" ]; then\r
+               fixture=""\r
+       else\r
+               fixture="/fixture:MonoTests.${i}"\r
+       fi\r
+       MONO_PATH=$MONO_PATH \\r
+               ${NUNITCONSOLE} System.Drawing_test_default.dll $fixture\r
+done\r
 \r
-mcs /target:library  TestBitmap.cs /r:NUnit.Framework.dll /r:System.Drawing.dll \r
-nunit-console TestBitmap.dll\r
 \r
-mcs /target:library  TestSizeF.cs /r:NUnit.Framework.dll /r:System.Drawing.dll \r
-nunit-console TestSizeF.dll\r
 \r
-mcs /target:library  TestSize.cs /r:NUnit.Framework.dll /r:System.Drawing.dll \r
-nunit-console TestSize.dll
\ No newline at end of file