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