]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/script/tests: Allow test script to accept option protocol list
authorNoel Power <noel.power@suse.com>
Tue, 19 Nov 2019 15:45:35 +0000 (15:45 +0000)
committerRalph Boehme <slow@samba.org>
Thu, 5 Dec 2019 17:14:46 +0000 (17:14 +0000)
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>
source3/script/tests/test_preserve_case.sh

index 2e49b0c0c84710031ee95c1799147b10f671fce6..04885f12a1e68836c747fe50250d4ab39e57c6b2 100755 (executable)
@@ -17,7 +17,13 @@ USERNAME=$3
 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
@@ -40,7 +46,6 @@ test_smbclient() {
        return $status
 }
 
-PROTOCOL_LIST="NT1 SMB2 SMB3"
 SHARE="lowercase"
 
 for PROTOCOL in $PROTOCOL_LIST; do