blob: 36c21dab23303632dd9738ac7cb5e0be213c6f19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
#!/bin/sh
# this runs the file serving tests that are expected to pass with samba3
if [ $# -lt 3 ]; then
cat <<EOF
Usage: test_posix_s3.sh UNC USERNAME PASSWORD <first> <smbtorture args>
EOF
exit 1;
fi
unc="$1"
username="$2"
password="$3"
start="$4"
shift 4
ADDARGS="$*"
test x"$TEST_FUNCTIONS_SH" != x"INCLUDED" && {
incdir=`dirname $0`
. $incdir/test_functions.sh
}
base="base.attr base.charset base.chkpath base.defer_open base.delaywrite base.delete"
base="$base base.deny1 base.deny2 base.deny3 base.denydos base.dir1 base.dir2"
base="$base base.disconnect base.fdpass base.lock"
base="$base base.mangle base.negnowait base.ntdeny1"
base="$base base.ntdeny2 base.open base.openattr base.properties base.rename base.rw1"
base="$base base.secleak base.tcon base.tcondev base.trans2 base.unlink base.vuid"
base="$base base.xcopy base.samba3error"
raw="raw.acls raw.chkpath raw.close raw.composite raw.context raw.eas"
raw="$raw raw.ioctl raw.lock raw.mkdir raw.mux raw.notify raw.open raw.oplock"
raw="$raw raw.qfileinfo raw.qfsinfo raw.read raw.rename raw.search raw.seek"
raw="$raw raw.sfileinfo.base raw.sfileinfo.bug raw.streams raw.unlink raw.write"
raw="$raw raw.samba3hide raw.samba3badpath raw.sfileinfo.rename"
raw="$raw raw.samba3caseinsensitive raw.samba3posixtimedlock"
raw="$raw raw.samba3rootdirfid raw.sfileinfo.end.of.file"
smb2="smb2.lock smb2.read smb2.compound smb2.connect smb2.scan smb2.scanfind"
smb2="$smb2 smb2.bench.oplock"
rpc="rpc.authcontext rpc.samba3.bind rpc.samba3.srvsvc rpc.samba3.sharesec"
rpc="$rpc rpc.samba3.spoolss rpc.samba3.wkssvc rpc.samba3.winreg"
rpc="$rpc rpc.samba3.getaliasmembership.0"
rpc="$rpc rpc.samba3.netlogon rpc.samba3.sessionkey rpc.samba3.getusername"
rpc="$rpc rpc.svcctl rpc.ntsvcs rpc.winreg rpc.eventlog"
rpc="$rpc rpc.spoolss.printserver rpc.spoolss.win rpc.spoolss.notify rpc.spoolss.printer"
rpc="$rpc rpc.spoolss.driver"
rpc="$rpc rpc.lsa.getuser rpc.lsa.lookupsids rpc.lsa.lookupnames"
rpc="$rpc rpc.lsa.privileges "
rpc="$rpc rpc.samr rpc.samr.users rpc.samr.users.privileges rpc.samr.passwords"
rpc="$rpc rpc.samr.passwords.pwdlastset rpc.samr.large.dc rpc.samr.machine.auth"
rpc="$rpc rpc.netlogon.s3 rpc.netlogon.admin"
rpc="$rpc rpc.schannel rpc.schannel2 rpc.bench.schannel1 rpc.join rpc.bind rpc.epmapper"
local="local.nss.wrapper local.ndr"
winbind="winbind.struct winbind.wbclient"
rap="rap.basic rap.rpc rap.printing rap.sam"
# note: to enable the unix-whoami test, we need to change the default share
# config to allow guest access. i'm not sure whether this would break other
# tests, so leaving it alone for now -- jpeach
unix="unix.info2"
tests="$base $raw $smb2 $rpc $unix $local $winbind $rap"
if test "x$POSIX_SUBTESTS" != "x" ; then
tests="$POSIX_SUBTESTS"
fi
skipped="base.charset base.tcondev"
skipped="$skipped raw.acls raw.composite raw.context"
skipped="$skipped raw.ioctl"
skipped="$skipped raw.qfileinfo raw.qfsinfo"
skipped="$skipped raw.sfileinfo.base"
echo "WARNING: Skipping tests $skipped"
ADDARGS="$ADDARGS --option=torture:sharedelay=100000"
#ADDARGS="$ADDARGS --option=torture:writetimeupdatedelay=500000"
failed=0
for t in $tests; do
if [ ! -z "$start" -a "$start" != $t ]; then
continue;
fi
skip=0
for s in $skipped; do
if [ x"$s" = x"$t" ]; then
skip=1;
break;
fi
done
if [ $skip = 1 ]; then
continue;
fi
start=""
name="$t"
if [ "$t" = "base.delaywrite" ]; then
testit "$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS --maximum-runtime=900 $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1`
else
testit "$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1`
fi
if [ "$t" = "raw.chkpath" ]; then
echo "Testing with case sensitive"
testit "$name" $VALGRIND $SMBTORTURE4 $TORTURE4_OPTIONS $ADDARGS "$unc"case -U"$username"%"$password" $t || failed=`expr $failed + 1`
fi
done
testok $0 $failed
|