From a3be0cad29f6affbb33bcdb26aa2931c64a0ec22 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Fri, 5 Feb 2021 14:00:43 -0800 Subject: [PATCH] regression test updates --- cpu_stats.py | 1 + py-scripts/regression_test.sh | 16 ++++++++++++---- py-scripts/update_dependencies.py | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/cpu_stats.py b/cpu_stats.py index 1a4f3a1c..02d4989d 100644 --- a/cpu_stats.py +++ b/cpu_stats.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 ''' Author: Nikita Yadav This script will calculate the cpu and memory utilization by the system during runtime the output of which is a graph on html page also the second tab of html gives the system logs diff --git a/py-scripts/regression_test.sh b/py-scripts/regression_test.sh index ea6f5cfb..789a34d2 100755 --- a/py-scripts/regression_test.sh +++ b/py-scripts/regression_test.sh @@ -22,13 +22,13 @@ REPORT_DIR="/home/lanforge/html-reports" #Test array testCommands=( - "./cpu_stats.py" + #"./cpu_stats.py" "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wpa-1 --passwd jedway-wpa-1 --radio $RADIO_USED --security wpa" "./example_security_connection.py --num_stations $NUM_STA --ssid $SSID_USED --passwd $SSID_USED --radio $RADIO_USED --security wpa2" "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wep-48 --passwd 0123456789 --radio $RADIO_USED --security wep" "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wpa3-1 --passwd jedway-wpa3-1 --radio $RADIO_USED --security wpa3" "./sta_connect2.py --dut_ssid $SSID_USED --dut_passwd $PASSWD_USED --dut_security $SECURITY" - "./test_fileio.py " + "./test_fileio.py --macvlan_parent eth2 --num_ports 3 --use_macvlans --first_mvlan_ip 192.168.92.13 --netmask 255.255.255.0 --gateway 192.168.92.1" "./test_generic.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --num_stations $NUM_STA --type lfping --dest 10.40.0.1 --security $SECURITY" "./test_generic.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --num_stations $NUM_STA --type speedtest --speedtest_min_up 20 --speedtest_min_dl 20 --speedtest_max_ping 150 --security $SECURITY" "./testgroup.py --group_name group1 --add_group --list_groups" @@ -41,7 +41,7 @@ testCommands=( "./test_ipv4_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --output_format csv --col_names $COL_NAMES" "./test_ipv6_connection.py" "./test_ipv6_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --cx_type tcp6" - "./test_l3_longevity.py" + "./test_l3_longevity.py --radio $RADIO_USED" "./test_l3_powersave_traffic.py" #this is all which is needed to run "./test_l3_scenario_throughput.py -t 15s" "./test_status_msg.py" #this is all which is needed to run @@ -170,11 +170,19 @@ function html_generator() { font-size: 10px; } +

Test All Scripts Results

$NOW

- +
+ + + + + + + " tail="" diff --git a/py-scripts/update_dependencies.py b/py-scripts/update_dependencies.py index f7b1f9bc..4428c944 100644 --- a/py-scripts/update_dependencies.py +++ b/py-scripts/update_dependencies.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import subprocess def main(): - command = "pip install pandas seaborn plotly numpy dash paramiko --upgrade" + command = "pip3 install pandas seaborn plotly numpy dash paramiko --upgrade" res = subprocess.call(command, shell = True) print("Returned Value: ", res)
Command NameCommandStatusSTDOUTSTDERR