Author: metze
Date: 2006-07-27 18:10:56 +0000 (Thu, 27 Jul 2006)
New Revision: 17282

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17282

Log:
test some simple operation with the LANMAN1 and LANMAN2 protocol,
that finally tests our RAW_SESSSETUP_OLD code

metze
Modified:
   branches/SAMBA_4_0/source/script/tests/test_smbclient.sh


Changeset:
Modified: branches/SAMBA_4_0/source/script/tests/test_smbclient.sh
===================================================================
--- branches/SAMBA_4_0/source/script/tests/test_smbclient.sh    2006-07-27 
18:08:12 UTC (rev 17281)
+++ branches/SAMBA_4_0/source/script/tests/test_smbclient.sh    2006-07-27 
18:10:56 UTC (rev 17282)
@@ -16,7 +16,9 @@
 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 @@
 # 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

Reply via email to