From 19dc262e511ea09e85f6fa37cb444ecc7016f541 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 5 Jan 2022 11:54:58 -0800 Subject: [PATCH] regression_test: Add VAP_SSID argument for tests which create a VAP Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index 9bc4b6ee..91233101 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -21,7 +21,7 @@ Help() } -while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:H:M:C:e:" option; do +while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:H:M:C:e:V:" option; do case "${option}" in h) # display Help Help @@ -73,6 +73,9 @@ while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:H:M:C:e:" option; do e) END_TEXT=${OPTARG} ;; + V) + VAP_SSID=${OPTARG} + ;; *) ;; @@ -117,6 +120,10 @@ if [[ ${#SSID_USED} -eq 0 ]]; then #Network credentials SECURITY="wpa2" fi +if [[ ${#VAP_SSID} -eq 0 ]]; then + VAP_SSID=SSID_USED +fi + if [[ ${#RADIO_USED} -eq 0 ]]; then # Allow the user to change the radio they test against RADIO_USED="1.1.wiphy1" fi @@ -380,8 +387,8 @@ else "./test_ip_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --output_format csv --layer3_cols $COL_NAMES --debug --mgr $MGR --traffic_type lf_udp" #"./test_ip_connection.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR --ipv6" #"./test_ip_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --debug --mgr $MGR --ipv6 --traffic_type lf_udp" - "./test_ipv4_ps.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR --radio2 $RADIO2" - #"./test_ipv4_ttls.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR" + "./test_ipv4_ps.py --radio $RADIO_USED --ssid $VAP_SSID --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR --radio2 $RADIO2" + #"./test_ipv4_ttls.py --radio $RADIO_USED --ssid $VAP_SSID --passwd $PASSWD_USED --security $SECURITY --debug --mgr $MGR" "./test_l3_longevity.py --mgr $MGR --endp_type 'lf_tcp' --upstream_port $UPSTREAM --radio \ 'radio==$RADIO_USED stations==10 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY' --radio \ 'radio==$RADIO2 stations==1 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY' --test_duration 5s --rates_are_totals --side_a_min_bps=20000 --side_b_min_bps=300000000 -o longevity.csv"