mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
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)
This commit is contained in:
parent
e5cbee330e
commit
2ce34063e5
@ -16,7 +16,9 @@ shift 5
|
|||||||
failed=0
|
failed=0
|
||||||
|
|
||||||
runcmd() {
|
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`
|
incdir=`dirname $0`
|
||||||
@ -79,6 +81,10 @@ testit "Comparing files" diff tmpfilex tmpfile || failed=`expr $failed + 1`
|
|||||||
# remove that file
|
# remove that file
|
||||||
echo rm tmpfilex | runcmd "Removing file" || failed=`expr $failed + 1`
|
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
|
rm -f tmpfile tmpfile-old tmpfilex
|
||||||
|
|
||||||
testok $0 $failed
|
testok $0 $failed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user