~ubuntu-branches/ubuntu/oneiric/likewise-open/oneiric

« back to all changes in this revision

Viewing changes to winbindd/source/script/tests/test_smbtorture_s3.sh

  • Committer: Bazaar Package Importer
  • Author(s): Rick Clark
  • Date: 2008-02-14 13:53:05 UTC
  • Revision ID: james.westby@ubuntu.com-20080214135305-cf45nar4lz1wgpz3
Tags: upstream-4.0.4
ImportĀ upstreamĀ versionĀ 4.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# this runs the file serving tests that are expected to pass with samba3
 
4
 
 
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;
 
10
fi
 
11
 
 
12
unc="$1"
 
13
username="$2"
 
14
password="$3"
 
15
start="$4"
 
16
shift 4
 
17
ADDARGS="$*"
 
18
 
 
19
incdir=`dirname $0`
 
20
. $incdir/test_functions.sh
 
21
 
 
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"
 
29
 
 
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"
 
37
 
 
38
failed=0
 
39
for t in $tests; do
 
40
    if [ ! -z "$start" -a "$start" != $t ]; then
 
41
        continue;
 
42
    fi
 
43
    start=""
 
44
    name="$t"
 
45
    testit "$name" $VALGRIND $BINDIR/smbtorture $unc -U"$username"%"$password" $ADDARGS $t || failed=`expr $failed + 1`
 
46
done
 
47
 
 
48
testok $0 $failed