From 3e2def4e5f3e3b1490b271d6519562017dc6e0f2 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Wed, 3 Nov 2021 14:28:35 -0700 Subject: [PATCH] Correct links in regression_test.sh Signed-off-by: Matthew Stidham --- py-scripts/regression_test.sh | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index ec0ccf80..93bd3541 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -20,7 +20,7 @@ Help() echo "If using the help flag, put the H flag at the end of the command after other flags." } -while getopts ":h:s:p:w:m:A:r:F:B:U:D:L:H:" option; do +while getopts ":h:s:S:p:w:m:A:r:F:B:U:D:L:H:" option; do case "${option}" in h) # display Help Help @@ -29,6 +29,9 @@ while getopts ":h:s:p:w:m:A:r:F:B:U:D:L:H:" option; do s) SSID_USED=${OPTARG} ;; + S) + SHORT="yes" + ;; p) PASSWD_USED=${OPTARG} ;; @@ -136,7 +139,7 @@ fi TEST_DIR="${REPORT_DATA}/${NOW}" function run_l3_longevity() { - ./test_l3_longevity.py --test_duration 15s --upstream_port eth1 --radio "radio==wiphy0 stations==4 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY" --radio "radio==wiphy1 stations==4 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY" --mgr "$MGR" + ./test_l3_longevity.py --test_duration 15s --upstream_port eth1 --radio "radio==wiphy0 stations==4 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY" --radio "radio==wiphy1 stations==4 ssid==$SSID_USED ssid_pw==$PASSWD_USED security==$SECURITY" --lfmgr "$MGR" } function testgroup_list_groups() { ./scenario.py --load test_l3_scenario_throughput @@ -152,10 +155,10 @@ function testgroup_delete_group() { ./testgroup.py --group_name group1--del_group --debug --mgr "$MGR" } -if [[ $MGR == "short" ]]; then +if [[ ${#SHORT} -gt 0 ]]; then testCommands=( run_l3_longevity - "./test_ipv4_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --output_format excel --layer3_cols $COL_NAMES --debug --mgr $MGR" + "./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" ) else testCommands=( @@ -462,13 +465,13 @@ function test() { echo "Errors detected" results+=("${CURR_TEST_NAME}${i} Failure - STDOUT - STDERR") + STDOUT + STDERR") else echo "No errors detected" results+=("${CURR_TEST_NAME}${i} Success - STDOUT + STDOUT ") fi } @@ -548,9 +551,9 @@ function html_generator() { rm -f "${HOMEPATH}/html-reports/latest.html" fi ln -s "${fname}" "${HOMEPATH}/html-reports/latest.html" - HOSTNAME=$(ip -4 addr show enp3s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}') - content="View the latest regression report at ${HOSTNAME}/html-reports/latest.html" - echo "${content}" + #HOSTNAME=$(ip -4 addr show enp3s0 | grep -oP '(?<=inet\s)\d+(\.\d+){3}') + #content="View the latest regression report at /html-reports/latest.html" + #echo "${content}" #mail -s "Regression Results" scripters@candelatech.com <<<$content } @@ -558,7 +561,7 @@ results=() NOW=$(date +"%Y-%m-%d-%H-%M") NOW="${NOW/:/-}" TEST_DIR="${REPORT_DATA}/${NOW}" -URL2="${HOMEPATH}/report-data/${NOW}" +URL2="/report-data/${NOW}" mkdir "${TEST_DIR}" echo "Recording data to $TEST_DIR"