s3-selftest unconditionaly include subunit.sh
[ira/wip.git] / source3 / script / tests / test_smbtorture_s3.sh
1 #!/bin/sh
2
3 # this runs the file serving tests that are expected to pass with samba3
4
5 if [ $# -lt 4 ]; then
6 cat <<EOF
7 Usage: test_smbtorture_s3.sh TEST UNC USERNAME PASSWORD <smbtorture args>
8 EOF
9 exit 1;
10 fi
11
12 t="$1"
13 unc="$2"
14 username="$3"
15 password="$4"
16 shift 4
17 ADDARGS="$*"
18
19 incdir=`dirname $0`/../../../testprogs/blackbox
20 . $incdir/subunit.sh
21
22
23
24 failed=0
25 testit "smbtorture" $VALGRIND $BINDIR/smbtorture $unc -U"$username"%"$password" $ADDARGS $t || failed=`expr $failed + 1`
26
27 testok $0 $failed