]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/script/tests: Prepare to split samba3.blackbox.net.misc for SMB1/SMB2
authorNoel Power <noel.power@suse.com>
Tue, 19 Nov 2019 14:11:21 +0000 (14:11 +0000)
committerRalph Boehme <slow@samba.org>
Thu, 5 Dec 2019 17:14:46 +0000 (17:14 +0000)
modify test_net_misc.sh to accept optional protocol, no protocol
specified and it behaves more or less as before (expect this time the
client max protocol is explicitly speficied)

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/script/tests/test_net_misc.sh

index 566694be74b58fcd76732d55b03769b747391e53..afd6bed25991d74959fcec4a56662b9d23d5b9f2 100755 (executable)
@@ -14,10 +14,16 @@ SERVERCONFFILE="$2"
 NET="$3"
 CONFIGURATION="$4"
 
-NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
+# optional protocl, default to NT1
+if [ $# -gt 4 ]; then
+       PROTOCOL="$5"
+else
+       PROTOCOL="NT1"
+fi
 
-NETTIME="${NET} time"
-NETLOOKUP="${NET} lookup"
+NET="$VALGRIND ${NET:-$BINDIR/net} $CONFIGURATION"
+NETTIME="${NET}   --option=clientmaxprotocol=${PROTOCOL} time"
+NETLOOKUP="${NET} --option=clientmaxprotocol=${PROTOCOL} lookup"
 
 incdir=`dirname $0`/../../../testprogs/blackbox
 . $incdir/subunit.sh