diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-07-27 18:10:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:15:05 -0500 |
commit | 2ce34063e514fb7bffcdf7c6cfe5ba1867155a36 (patch) | |
tree | 751b6e1664162afff3e217662148c4d8bf25c5de /source4 | |
parent | e5cbee330e5b38d525ac8ca5b0e8714216781233 (diff) | |
download | samba-2ce34063e514fb7bffcdf7c6cfe5ba1867155a36.tar.gz samba-2ce34063e514fb7bffcdf7c6cfe5ba1867155a36.tar.bz2 samba-2ce34063e514fb7bffcdf7c6cfe5ba1867155a36.zip |
r17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code
metze
(This used to be commit 43f99f11719374636d960fbc7b801ae69769aaf0)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/script/tests/test_smbclient.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/script/tests/test_smbclient.sh b/source4/script/tests/test_smbclient.sh index b2d57135f7..600e0e4a1b 100755 --- a/source4/script/tests/test_smbclient.sh +++ b/source4/script/tests/test_smbclient.sh @@ -16,7 +16,9 @@ shift 5 failed=0 runcmd() { - testit "$1" bin/smbclient //$SERVER/tmp -W "$DOMAIN "-U"$USERNAME"%"$PASSWORD" + name="$1" + shift + testit "$name" bin/smbclient //$SERVER/tmp -W "$DOMAIN "-U"$USERNAME"%"$PASSWORD" $@ } incdir=`dirname $0` @@ -79,6 +81,10 @@ testit "Comparing files" diff tmpfilex tmpfile || failed=`expr $failed + 1` # remove that file echo rm tmpfilex | runcmd "Removing file" || failed=`expr $failed + 1` +# do some simple operations using old protocol versions +echo ls | runcmd "List directory with LANMAN1" -m LANMAN1 || failed=`expr $failed + 1` +echo ls | runcmd "List directory with LANMAN2" -m LANMAN2 || failed=`expr $failed + 1` + rm -f tmpfile tmpfile-old tmpfilex testok $0 $failed |