New test.
[mono.git] / mcs / class / corlib / Test / run_test.sh
index 6a24784d8db157ad2d98021e10043d64fd23332b..083073f63986651080df3c10158dd7da2611300e 100755 (executable)
@@ -5,15 +5,23 @@ if [ $# -eq 0 ]; then
        echo "$0 System.IO.FileTest System.Text.StringBuilderTest"
        echo "or"
        echo "$0 System.AllTests"
+       echo "or"
+       echo "$0 all"
        echo "and so on..."
        exit 1
 fi
 
 topdir=../../..
-NUNITCONSOLE=${topdir}/class/lib/NUnitConsole_mono.exe
+NUNITCONSOLE=$topdir/nunit20/nunit-console.exe
+MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
 
 for i in $@; do
-       MONO_PATH=../../../class/lib:. \
-               mono ${NUNITCONSOLE} MonoTests.${i},corlib_linux_test.dll
+       if [ "$i" = "all" ]; then
+               fixture=""
+       else
+               fixture="/fixture:MonoTests.${i}"
+       fi
+       MONO_PATH=$MONO_PATH \
+               mono --debug ${NUNITCONSOLE} corlib_test.dll $fixture
 done