mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3/script/tests: Prepare to split samba3.blackbox.net.misc for SMB1/SMB2
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>
This commit is contained in:
parent
b4b25128b8
commit
7c0ccbe1a0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user