#!/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