📄 test_w2k3_file.sh
字号:
#!/bin/sh# this runs the file serving tests that are expected to pass with win2003if [ $# -lt 3 ]; thencat <<EOFUsage: test_w2k3_file.sh UNC USERNAME PASSWORD <first> <smbtorture args>EOFexit 1;fiunc="$1"username="$2"password="$3"start="$4"shift 4ADDARGS="$*"incdir=`dirname $0`. $incdir/test_functions.shtests="BASE-FDPASS BASE-LOCK "tests="$tests BASE-UNLINK BASE-ATTR"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"tests="$tests RAW-QFILEINFO RAW-SFILEINFO-BUG RAW-SFILEINFO"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 lasttests="$tests BASE-DENY1 BASE-DENY2"# these tests are known to fail against windowsfail="RAW-SEARCH RAW-ACLS RAW-QFSINFO"echo "Skipping tests expected to fail: $fail"for t in $tests; do testit "$t" smb $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $tdone
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -