diff options
-rwxr-xr-x | mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests-ms.sh | 28 | ||||
-rwxr-xr-x | mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests.sh | 29 |
2 files changed, 57 insertions, 0 deletions
diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests-ms.sh b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests-ms.sh new file mode 100755 index 00000000000..98b2c00dbe8 --- /dev/null +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests-ms.sh @@ -0,0 +1,28 @@ +#!/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
+
+export MSNet=Yes
+cp ../../System.Drawing_test.dll .
+topdir=../../../..
+NUNITCONSOLE=$topdir/class/lib/nunit-console.exe
+MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
+
+for i in $@; do
+ if [ "$i" = "all" ]; then
+ fixture=""
+ else
+ fixture="/fixture:MonoTests.${i}"
+ fi
+ MONO_PATH=$MONO_PATH \
+ ${NUNITCONSOLE} System.Drawing_test.dll $fixture
+done
+
+
+
diff --git a/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests.sh b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests.sh new file mode 100755 index 00000000000..365a0986e36 --- /dev/null +++ b/mcs/class/System.Drawing/Test/System.Drawing.Imaging/tests.sh @@ -0,0 +1,29 @@ +#!/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.dll . + +topdir=../../../.. +NUNITCONSOLE=$topdir/class/lib/nunit-console.exe +MONO_PATH=$topdir/nunit20:$topdir/class/lib:. + + +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.dll $fixture +done + + + |