2005-03-31 Sebastien Pouliot <sebastien@ximian.com>
[mono.git] / mcs / class / corlib / Test / run_test.sh
index 64dd3a7b737501a45f74f8809a4b865d56cacbbf..083073f63986651080df3c10158dd7da2611300e 100755 (executable)
@@ -5,16 +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}/nunit/src/NUnitConsole/NUnitConsole_mono.exe
-NUNIT_MONO_PATH=${topdir}/nunit/src/NUnitCore:.
+NUNITCONSOLE=$topdir/nunit20/nunit-console.exe
+MONO_PATH=$topdir/nunit20:$topdir/class/lib:.
 
 for i in $@; do
-       MONO_PATH=../../../nunit/src/NUnitCore:. \
-               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