2005-07-04 09:54:41 +04:00
#!/bin/sh
# this runs the file serving tests that are expected to pass with win2003
if [ $# -lt 3 ] ; then
2022-02-23 14:02:44 +03:00
cat <<EOF
2005-07-04 09:54:41 +04:00
Usage: test_w2k3_file.sh UNC USERNAME PASSWORD <first> <smbtorture args>
EOF
2022-02-23 14:02:44 +03:00
exit 1
2005-07-04 09:54:41 +04:00
fi
unc = " $1 "
username = " $2 "
password = " $3 "
start = " $4 "
shift 4
ADDARGS = " $* "
2022-02-23 14:02:44 +03:00
incdir = $( dirname $0 )
2005-07-04 09:54:41 +04:00
. $incdir /test_functions.sh
2006-10-16 17:06:41 +04:00
tests = "BASE-FDPASS BASE-LOCK "
tests = " $tests BASE-UNLINK BASE-ATTR "
2005-07-04 09:54:41 +04:00
tests = " $tests BASE-DIR1 BASE-DIR2 BASE-VUID "
tests = " $tests BASE-TCON BASE-TCONDEV BASE-RW1 "
tests = " $tests BASE-DENY3 BASE-XCOPY BASE-OPEN BASE-DENYDOS "
tests = " $tests BASE-DELETE BASE-PROPERTIES BASE-MANGLE "
tests = " $tests BASE-CHKPATH BASE-SECLEAK BASE-TRANS2 "
tests = " $tests BASE-NTDENY1 BASE-NTDENY2 BASE-RENAME BASE-OPENATTR "
2009-11-25 03:25:02 +03:00
tests = " $tests RAW-QFILEINFO RAW-SFILEINFO-BUG RAW-SFILEINFO-BASE "
2005-07-04 09:54:41 +04:00
tests = " $tests RAW-LOCK RAW-MKDIR RAW-SEEK RAW-CONTEXT RAW-MUX RAW-OPEN RAW-WRITE "
tests = " $tests RAW-UNLINK RAW-READ RAW-CLOSE RAW-IOCTL RAW-CHKPATH RAW-RENAME "
tests = " $tests RAW-EAS RAW-STREAMS RAW-OPLOCK RAW-NOTIFY BASE-DELAYWRITE "
# slowest tests last
tests = " $tests BASE-DENY1 BASE-DENY2 "
# these tests are known to fail against windows
fail = "RAW-SEARCH RAW-ACLS RAW-QFSINFO"
echo " Skipping tests expected to fail: $fail "
for t in $tests ; do
2022-02-23 14:02:44 +03:00
testit " $t " smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U" $username " %" $password " $t
2005-07-04 09:54:41 +04:00
done