source: trunk/samba/source/script/tests/test_posix_s3.sh @ 26

Last change on this file since 26 was 26, checked in by Paul Smedley, 14 years ago

Updated source to 3.0.25rc1

File size: 2.5 KB
Line 
1#!/bin/sh
2
3# this runs the file serving tests that are expected to pass with samba3
4
5if [ $# -lt 3 ]; then
6cat <<EOF
7Usage: test_posix_s3.sh UNC USERNAME PASSWORD <first> <smbtorture args>
8EOF
9exit 1;
10fi
11
12unc="$1"
13username="$2"
14password="$3"
15start="$4"
16shift 4
17ADDARGS="$*"
18
19incdir=`dirname $0`
20. $incdir/test_functions.sh
21
22base="BASE-ATTR BASE-CHARSET BASE-CHKPATH BASE-DEFER_OPEN BASE-DELAYWRITE BASE-DELETE"
23base="$base BASE-DENY1 BASE-DENY2 BASE-DENY3 BASE-DENYDOS BASE-DIR1 BASE-DIR2"
24base="$base BASE-DISCONNECT BASE-FDPASS BASE-LOCK"
25base="$base BASE-MANGLE BASE-NEGNOWAIT BASE-NTDENY1"
26base="$base BASE-NTDENY2 BASE-OPEN BASE-OPENATTR BASE-PROPERTIES BASE-RENAME BASE-RW1"
27base="$base BASE-SECLEAK BASE-TCON BASE-TCONDEV BASE-TRANS2 BASE-UNLINK BASE-VUID"
28base="$base BASE-XCOPY BASE-SAMBA3ERROR"
29
30raw="RAW-ACLS RAW-CHKPATH RAW-CLOSE RAW-COMPOSITE RAW-CONTEXT RAW-EAS"
31raw="$raw RAW-IOCTL RAW-LOCK RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN RAW-OPLOCK"
32raw="$raw RAW-QFILEINFO RAW-QFSINFO RAW-READ RAW-RENAME RAW-SEARCH RAW-SEEK"
33raw="$raw RAW-SFILEINFO RAW-SFILEINFO-BUG RAW-STREAMS RAW-UNLINK RAW-WRITE"
34raw="$raw RAW-SAMBA3HIDE RAW-SAMBA3BADPATH"
35
36rpc="RPC-AUTHCONTEXT RPC-BINDSAMBA3 RPC-SAMBA3-SRVSVC RPC-SAMBA3-SHARESEC"
37rpc="$rpc RPC-UNIXINFO RPC-SAMBA3-SPOOLSS RPC-SAMBA3-WKSSVC"
38
39# NOTE: to enable the UNIX-WHOAMI test, we need to change the default share
40# config to allow guest access. I'm not sure whether this would break other
41# tests, so leaving it alone for now -- jpeach
42unix="UNIX-INFO2"
43
44if test x$RUN_FROM_BUILD_FARM = xyes; then
45        rpc="$rpc RPC-NETLOGSAMBA3 RPC-SAMBA3SESSIONKEY RPC-SAMBA3-GETUSERNAME"
46fi
47
48tests="$base $raw $rpc $unix"
49
50skipped="BASE-CHARSET BASE-DEFER_OPEN BASE-DELAYWRITE BASE-OPENATTR BASE-TCONDEV"
51skipped="$skipped RAW-ACLS RAW-COMPOSITE RAW-CONTEXT RAW-EAS"
52skipped="$skipped RAW-IOCTL RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN"
53skipped="$skipped RAW-QFILEINFO RAW-QFSINFO RAW-RENAME RAW-SEARCH"
54skipped="$skipped RAW-SFILEINFO RAW-STREAMS RAW-WRITE"
55
56echo "WARNING: Skipping tests $skipped"
57
58failed=0
59for t in $tests; do
60    if [ ! -z "$start" -a "$start" != $t ]; then
61        continue;
62    fi
63    skip=0
64    for s in $skipped; do
65        if [ x"$s" = x"$t" ]; then
66            skip=1;
67            break;
68        fi
69    done
70    if [ $skip = 1 ]; then
71        continue;
72    fi
73    start=""
74    name="$t"
75    testit "$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1`
76done
77
78testok $0 $failed
Note: See TracBrowser for help on using the repository browser.