From 2ce34063e514fb7bffcdf7c6cfe5ba1867155a36 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 27 Jul 2006 18:10:56 +0000 Subject: 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) --- source4/script/tests/test_smbclient.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source4/script/tests') 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 -- cgit