New tests, update
[mono.git] / mcs / class / Managed.Windows.Forms / Test / System.Windows.Forms / tests2.sh
1 #!/bin/sh
2
3 if [ $# -eq 0 ]; then
4         echo "You should give a list of test names such as: "
5         echo "$0 System.Windows.Forms.ListViewItemTest"
6         echo "or"
7         echo "$0 all"
8         exit 1
9 fi
10
11 cp ../../System.Windows.Forms_test_NET_2_0.dll .
12
13 topdir=../../../..
14 NUNITCONSOLE=$topdir/class/lib/net_2_0/nunit-console.exe
15 MONO_PATH=$topdir/nunit20:$topdir/class/lib/net_2_0:.
16
17
18 for i in $@; do
19         if [ "$i" = "all" ]; then
20                 fixture=""
21         else
22                 fixture="/fixture:MonoTests.${i}"
23         fi
24         MONO_PATH=$MONO_PATH \
25                 mono --debug ${NUNITCONSOLE} System.Windows.Forms_test_NET_2_0.dll $fixture
26 done