s3: piddir creation fix part 2.
[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 <smbtorture args>
8 EOF
9 exit 1;
10 fi
11
12 t="$1"
13 unc="$2"
14 username="$3"
15 password="$4"
16 SMBTORTURE="$5"
17 shift 5
18 ADDARGS="$*"
19
20 incdir=`dirname $0`/../../../testprogs/blackbox
21 . $incdir/subunit.sh
22
23
24
25 failed=0
26 testit "smbtorture" $VALGRIND $SMBTORTURE $unc -U"$username"%"$password" $ADDARGS $t || failed=`expr $failed + 1`
27
28 testok $0 $failed