diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-07-04 05:54:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:19:11 -0500 |
commit | 95722ac13bfc7e4e3f4319b6151252a49208dd0a (patch) | |
tree | 45efa73797642fe5950df8df49b9fa20b5b41812 | |
parent | 6667788706e565be7eabd81a946d4ef8c3fb8bc9 (diff) | |
download | samba-95722ac13bfc7e4e3f4319b6151252a49208dd0a.tar.gz samba-95722ac13bfc7e4e3f4319b6151252a49208dd0a.tar.bz2 samba-95722ac13bfc7e4e3f4319b6151252a49208dd0a.zip |
r8124: added a set of file sharing tests that pass against w2k3
(This used to be commit 93c2d93ed81c688d5e191aed0dc70ecfe59830ea)
-rwxr-xr-x | source4/script/tests/test_w2k3_file.sh | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/source4/script/tests/test_w2k3_file.sh b/source4/script/tests/test_w2k3_file.sh new file mode 100755 index 0000000000..16819dd205 --- /dev/null +++ b/source4/script/tests/test_w2k3_file.sh @@ -0,0 +1,52 @@ +#!/bin/sh + +# this runs the file serving tests that are expected to pass with win2003 + +if [ $# -lt 3 ]; then +cat <<EOF +Usage: test_w2k3_file.sh UNC USERNAME PASSWORD <first> <smbtorture args> +EOF +exit 1; +fi + +unc="$1" +username="$2" +password="$3" +start="$4" +shift 4 +ADDARGS="$*" + +incdir=`dirname $0` +. $incdir/test_functions.sh + +tests="BASE-FDPASS BASE-LOCK1 BASE-LOCK2 BASE-LOCK3 BASE-LOCK4" +tests="$tests BASE-LOCK5 BASE-LOCK6 BASE-LOCK7 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 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" + +failed=0 +for t in $tests; do + if [ ! -z "$start" -a "$start" != $t ]; then + continue; + fi + start="" + name="$t" + testit "$name" $VALGRIND bin/smbtorture $TORTURE_OPTIONS $ADDARGS $unc -U"$username"%"$password" $t || failed=`expr $failed + 1` +done + +testok $0 $failed |