mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r17282: test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code metze
This commit is contained in:
parent
1d74291626
commit
43f99f1171
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user