X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fscripts%2Fsocket_test.sh;h=b94a2f344b796b3c8683d05148daad2a28477ecc;hb=81767d71a943fcf1196867549a6b48122f259695;hp=f408ad44d8270876863b0c1ad4c1c0813741617a;hpb=904a850899db0a40bf885d2ee2e839a5f8dfbeb3;p=vpp.git diff --git a/test/scripts/socket_test.sh b/test/scripts/socket_test.sh index f408ad44d82..b94a2f344b7 100755 --- a/test/scripts/socket_test.sh +++ b/test/scripts/socket_test.sh @@ -9,7 +9,7 @@ vpp_shm_dir="/dev/shm/" vpp_run_dir="/run/vpp" lib_dir="$WS_ROOT/build-root/install-vpp-native/vpp/lib/" lib_debug_dir="$WS_ROOT/build-root/install-vpp_debug-native/vpp/lib/" -dpdk_devbind="/usr/share/dpdk/usertools/dpdk-devbind.py" +dpdk_devbind="$WS_ROOT/extras/vpp_config/scripts/dpdk-devbind.py" docker_vpp_dir="/vpp/" docker_app_dir="/vpp/" docker_lib_dir="/vpp-lib/" @@ -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\"" @@ -270,9 +270,12 @@ if [ -z "$WS_ROOT" ] ; then exit 1 fi -if [[ "$(grep bin_PROGRAMS $WS_ROOT/src/vcl.am)" = "" ]] ; then - $WS_ROOT/extras/vagrant/vcl_test.sh $WS_ROOT $USER - (cd $WS_ROOT; make build) +if [ ! -d $vpp_dir ] ; then + if [ -z "$title_dbg" ] ; then + (cd $WS_ROOT; make build-release) + else + (cd $WS_ROOT; make build) + fi fi if [ ! -d $vpp_dir ] ; then