test_preserve_case.sh tests a range of protocols, this however
fails when running against the normal test env (which have min
protocol of SMB2) because one of the protocols is NT1. This change
allows tests to pass the protocol (or list of protocols) so that
tests can be split.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
PASSWORD=$4
PREFIX=$5
smbclient=$6
-shift 6
+if [ $# -gt 6 ]; then
+ PROTOCOL_LIST=$7
+ shift 7
+else
+ PROTOCOL_LIST="NT1 SMB2 SMB3"
+ shift 6
+fi
failed=0
incdir=`dirname $0`/../../../testprogs/blackbox
return $status
}
-PROTOCOL_LIST="NT1 SMB2 SMB3"
SHARE="lowercase"
for PROTOCOL in $PROTOCOL_LIST; do