From 03dd90adfe652894e4a70c6360e0618caae11145 Mon Sep 17 00:00:00 2001 From: Dave Wallace Date: Mon, 25 Mar 2019 19:34:50 -0400 Subject: VCL: add TLS opt to socket_test.sh - add TLS transport opt to socket_test.sh - resolve clash in vcl_test* args with socket_test.sh opts Change-Id: I952d5b64942664bc3af1098f67445e0f4b93ab32 Signed-off-by: Dave Wallace --- test/scripts/socket_test.sh | 6 +++--- test/test_vcl.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/scripts/socket_test.sh b/test/scripts/socket_test.sh index 5ebca4df88b..b94a2f344b7 100755 --- a/test/scripts/socket_test.sh +++ b/test/scripts/socket_test.sh @@ -85,6 +85,7 @@ OPTIONS: OPTIONS passed to client/server: -6 Use IPv6. -D Use UDP as the transport. + -L Use TLS as the transport. -S Server IP address. -P Server Port number. -E Run Echo test. @@ -119,9 +120,8 @@ declare -i leave_tmp_files=0 declare -i bash_after_exit=0 declare -i iperf3=0 declare -i use_ipv6=0 -declare -i transport_udp=0 -while getopts ":hitlbcd6fn:m:e:g:p:E:I:N:P:R:S:T:UBVXD" opt; do +while getopts ":hitlbcd6fn:m:e:g:p:E:I:N:P:R:S:T:UBVXDL" opt; do case $opt in h) usage ;; l) leave_tmp_files=1 @@ -210,7 +210,7 @@ while getopts ":hitlbcd6fn:m:e:g:p:E:I:N:P:R:S:T:UBVXD" opt; do ;; P) sock_srvr_port="$OPTARG" ;; - D) sock_clnt_options="$sock_clnt_options -$opt" + D|L) sock_clnt_options="$sock_clnt_options -$opt" sock_srvr_options="$sock_srvr_options -$opt" ;; E|I|N|R|T) sock_clnt_options="$sock_clnt_options -$opt \"$OPTARG\"" diff --git a/test/test_vcl.py b/test/test_vcl.py index f5a1c9c0855..0ef4b5c079e 100644 --- a/test/test_vcl.py +++ b/test/test_vcl.py @@ -418,8 +418,8 @@ class VCLThruHostStackTLS(VCLTestCase): self.thru_host_stack_setup() self.client_uni_dir_tls_timeout = 20 - self.server_tls_args = ["-S", self.server_port] - self.client_uni_dir_tls_test_args = ["-N", "1000", "-U", "-X", "-S", + self.server_tls_args = ["-L", self.server_port] + self.client_uni_dir_tls_test_args = ["-N", "1000", "-U", "-X", "-L", self.loop0.local_ip4, self.server_port] -- cgit 1.2.3-korg