3 # this runs the file serving tests that are expected to pass with samba3
7 Usage: test_posix_s3.sh UNC USERNAME PASSWORD <first> <smbtorture args>
19 test x
"$TEST_FUNCTIONS_SH" != x
"INCLUDED" && {
21 .
$incdir/test_functions.sh
24 base
="BASE-ATTR BASE-CHARSET BASE-CHKPATH BASE-DEFER_OPEN BASE-DELAYWRITE BASE-DELETE"
25 base
="$base BASE-DENY1 BASE-DENY2 BASE-DENY3 BASE-DENYDOS BASE-DIR1 BASE-DIR2"
26 base
="$base BASE-DISCONNECT BASE-FDPASS BASE-LOCK"
27 base
="$base BASE-MANGLE BASE-NEGNOWAIT BASE-NTDENY1"
28 base
="$base BASE-NTDENY2 BASE-OPEN BASE-OPENATTR BASE-PROPERTIES BASE-RENAME BASE-RW1"
29 base
="$base BASE-SECLEAK BASE-TCON BASE-TCONDEV BASE-TRANS2 BASE-UNLINK BASE-VUID"
30 base
="$base BASE-XCOPY BASE-SAMBA3ERROR"
32 raw
="RAW-ACLS RAW-CHKPATH RAW-CLOSE RAW-COMPOSITE RAW-CONTEXT RAW-EAS"
33 raw
="$raw RAW-IOCTL RAW-LOCK RAW-MKDIR RAW-MUX RAW-NOTIFY RAW-OPEN RAW-OPLOCK"
34 raw
="$raw RAW-QFILEINFO RAW-QFSINFO RAW-READ RAW-RENAME RAW-SEARCH RAW-SEEK"
35 raw
="$raw RAW-SFILEINFO-BASE RAW-SFILEINFO-BUG RAW-STREAMS RAW-UNLINK RAW-WRITE"
36 raw
="$raw RAW-SAMBA3HIDE RAW-SAMBA3BADPATH RAW-SFILEINFO-RENAME"
37 raw
="$raw RAW-SAMBA3CASEINSENSITIVE RAW-SAMBA3POSIXTIMEDLOCK"
38 raw
="$raw RAW-SAMBA3ROOTDIRFID RAW-SFILEINFO-END-OF-FILE"
40 rpc
="RPC-AUTHCONTEXT RPC-SAMBA3-BIND RPC-SAMBA3-SRVSVC RPC-SAMBA3-SHARESEC"
41 rpc
="$rpc RPC-SAMBA3-SPOOLSS RPC-SAMBA3-WKSSVC RPC-SAMBA3-WINREG"
42 rpc
="$rpc RPC-SAMBA3-GETALIASMEMBERSHIP-0"
43 rpc
="$rpc RPC-SAMBA3-NETLOGON RPC-SAMBA3-SESSIONKEY RPC-SAMBA3-GETUSERNAME"
44 rpc
="$rpc RPC-SVCCTL RPC-NTSVCS RPC-WINREG RPC-EVENTLOG"
45 rpc
="$rpc RPC-SPOOLSS-PRINTSERVER RPC-SPOOLSS-WIN RPC-SPOOLSS-NOTIFY RPC-SPOOLSS-PRINTER"
46 rpc
="$rpc RPC-SPOOLSS-DRIVER"
47 rpc
="$rpc RPC-LSA-GETUSER RPC-LSA-LOOKUPSIDS RPC-LSA-LOOKUPNAMES"
48 rpc
="$rpc RPC-LSA-PRIVILEGES "
49 rpc
="$rpc RPC-SAMR RPC-SAMR-USERS RPC-SAMR-USERS-PRIVILEGES RPC-SAMR-PASSWORDS"
50 rpc
="$rpc RPC-SAMR-PASSWORDS-PWDLASTSET RPC-SAMR-LARGE-DC RPC-SAMR-MACHINE-AUTH"
51 rpc
="$rpc RPC-NETLOGON-S3 RPC-NETLOGON-ADMIN"
52 rpc
="$rpc RPC-SCHANNEL RPC-SCHANNEL2 RPC-BENCH-SCHANNEL1 RPC-JOIN"
54 local="LOCAL-NSS-WRAPPER LOCAL-NDR"
56 winbind
="WINBIND-STRUCT WINBIND-WBCLIENT"
58 rap
="RAP-BASIC RAP-RPC RAP-PRINTING RAP-SAM"
60 # NOTE: to enable the UNIX-WHOAMI test, we need to change the default share
61 # config to allow guest access. I'm not sure whether this would break other
62 # tests, so leaving it alone for now -- jpeach
65 tests
="$base $raw $rpc $unix $local $winbind $rap"
67 if test "x$POSIX_SUBTESTS" != "x" ; then
68 tests
="$POSIX_SUBTESTS"
71 skipped
="BASE-CHARSET BASE-TCONDEV"
72 skipped
="$skipped RAW-ACLS RAW-COMPOSITE RAW-CONTEXT"
73 skipped
="$skipped RAW-IOCTL"
74 skipped
="$skipped RAW-QFILEINFO RAW-QFSINFO"
75 skipped
="$skipped RAW-SFILEINFO-BASE"
77 echo "WARNING: Skipping tests $skipped"
79 ADDARGS
="$ADDARGS --option=torture:sharedelay=100000"
80 #ADDARGS="$ADDARGS --option=torture:writetimeupdatedelay=500000"
84 if [ ! -z "$start" -a "$start" != $t ]; then
89 if [ x
"$s" = x
"$t" ]; then
94 if [ $skip = 1 ]; then
99 if [ "$t" = "BASE-DELAYWRITE" ]; then
100 testit
"$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS --maximum-runtime=900 $ADDARGS $unc -U"$username"%"$password" $t || failed
=`expr $failed + 1`
102 testit
"$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed
=`expr $failed + 1`
104 if [ "$t" = "RAW-CHKPATH" ]; then
105 echo "Testing with case sensitive"
106 testit
"$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS $ADDARGS "$unc"case -U"$username"%"$password" $t || failed
=`expr $failed + 1`