[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
[Samba/gebeck_regimport.git] / source3 / script / tests / test_smbtorture_s3.sh
blobf662eacd3ecf97f5674a80e66fb7cefb611178a0
1 #!/bin/sh
3 # this runs the file serving tests that are expected to pass with samba3
5 if [ $# -lt 3 ]; then
6 cat <<EOF
7 Usage: test_smbtorture_s3.sh UNC USERNAME PASSWORD <first> <smbtorture args>
8 EOF
9 exit 1;
12 unc="$1"
13 username="$2"
14 password="$3"
15 start="$4"
16 shift 4
17 ADDARGS="$*"
19 incdir=`dirname $0`
20 . $incdir/test_functions.sh
22 tests="FDPASS LOCK1 LOCK2 LOCK3 LOCK4 LOCK5 LOCK6 LOCK7"
23 #tests="$tests UNLINK BROWSE ATTR TRANS2 MAXFID TORTURE "
24 tests="$tests UNLINK BROWSE ATTR TRANS2 TORTURE "
25 tests="$tests OPLOCK1 OPLOCK2 OPLOCK3"
26 tests="$tests DIR DIR1 TCON TCONDEV RW1 RW2 RW3"
27 tests="$tests OPEN XCOPY RENAME DELETE PROPERTIES W2K"
28 tests="$tests TCON2 IOCTL CHKPATH FDSESS LOCAL-SUBSTITUTE"
30 skipped1="RANDOMIPC NEGNOWAIT NBENCH ERRMAPEXTRACT TRANS2SCAN NTTRANSSCAN"
31 skipped2="DENY1 DENY2 OPENATTR CASETABLE EATEST"
32 skipped3="MANGLE UTABLE PIPE_NUMBER"
33 echo "Skipping the following tests:"
34 echo "$skipped1"
35 echo "$skipped2"
36 echo "$skipped3"
38 failed=0
39 for t in $tests; do
40 if [ ! -z "$start" -a "$start" != $t ]; then
41 continue;
43 start=""
44 name="$t"
45 testit "$name" $VALGRIND $BINDIR/smbtorture $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1`
46 done
48 testok $0 $failed