From: Noel Power Date: Tue, 19 Nov 2019 15:45:35 +0000 (+0000) Subject: s3/script/tests: Allow test script to accept option protocol list X-Git-Tag: ldb-2.1.0~446 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f26c678a2ca550de6207634a8ea1461699cf54d6;p=thirdparty%2Fsamba.git s3/script/tests: Allow test script to accept option protocol list 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 Reviewed-by: Ralph Boehme --- diff --git a/source3/script/tests/test_preserve_case.sh b/source3/script/tests/test_preserve_case.sh index 2e49b0c0c84..04885f12a1e 100755 --- a/source3/script/tests/test_preserve_case.sh +++ b/source3/script/tests/test_preserve_case.sh @@ -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