mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	debug all commands in regression test
This commit is contained in:
		@@ -23,39 +23,38 @@ REPORT_DIR="/home/lanforge/html-reports"
 | 
			
		||||
#Test array
 | 
			
		||||
testCommands=(
 | 
			
		||||
    "../cpu_stats.py --duration 15"
 | 
			
		||||
    "./scenario.py --load BLANK"
 | 
			
		||||
    "./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"
 | 
			
		||||
    "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wpa-1 --passwd jedway-wpa-1 --radio $RADIO_USED --security wpa --debug"
 | 
			
		||||
    "./example_security_connection.py --num_stations $NUM_STA --ssid $SSID_USED --passwd $SSID_USED --radio $RADIO_USED --security wpa2 --debug"
 | 
			
		||||
    "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wep-48 --passwd 0123456789 --radio $RADIO_USED --security wep --debug"
 | 
			
		||||
    "./example_security_connection.py --num_stations $NUM_STA --ssid jedway-wpa3-1 --passwd jedway-wpa3-1 --radio $RADIO_USED --security wpa3 --debug"
 | 
			
		||||
    "./sta_connect2.py --dut_ssid $SSID_USED --dut_passwd $PASSWD_USED --dut_security $SECURITY --debug"
 | 
			
		||||
    #"./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" # Better tested on Kelly, where VRF is turned off
 | 
			
		||||
    "./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"
 | 
			
		||||
    "./testgroup.py --group_name group1 --add_group --add_cx l3_test1,l3_test2 --remove_cx l3_test3 --list_groups"
 | 
			
		||||
    "./test_ipv4_connection.py --radio $RADIO_USED --num_stations $NUM_STA --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./test_ipv4_l4_urls_per_ten.py --radio $RADIO_USED --num_stations $NUM_STA --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --num_tests 1 --requests_per_ten 600 --target_per_ten 600"
 | 
			
		||||
    "./test_ipv4_l4_wifi.py --radio $RADIO_USED --num_stations $NUM_STA --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --test_duration 15s"
 | 
			
		||||
    "./test_ipv4_l4.py --radio $RADIO_USED --num_stations 4 --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --test_duration 15s"
 | 
			
		||||
    "./test_ipv4_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --output_format excel --col_names $COL_NAMES"
 | 
			
		||||
    "./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 --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./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 --radio $RADIO_USED"
 | 
			
		||||
    "./test_l3_powersave_traffic.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./test_l3_scenario_throughput.py -t 15"
 | 
			
		||||
    "./test_status_msg.py" #this is all which is needed to run
 | 
			
		||||
    "./test_wanlink.py"
 | 
			
		||||
    "../py-json/wlan_theoretical_sta.py"
 | 
			
		||||
    "./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 --debug"
 | 
			
		||||
    "./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 --debug"
 | 
			
		||||
    "./testgroup.py --group_name group1 --add_group --list_groups --debug"
 | 
			
		||||
    "./testgroup.py --group_name group1 --add_group --add_cx l3_test1,l3_test2 --remove_cx l3_test3 --list_groups --debug"
 | 
			
		||||
    "./test_ipv4_connection.py --radio $RADIO_USED --num_stations $NUM_STA --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./test_ipv4_l4_urls_per_ten.py --radio $RADIO_USED --num_stations $NUM_STA --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --num_tests 1 --requests_per_ten 600 --target_per_ten 600 --debug"
 | 
			
		||||
    "./test_ipv4_l4_wifi.py --radio $RADIO_USED --num_stations $NUM_STA --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --test_duration 15s --debug"
 | 
			
		||||
    "./test_ipv4_l4.py --radio $RADIO_USED --num_stations 4 --security $SECURITY --ssid $SSID_USED --passwd $PASSWD_USED --test_duration 15s --debug"
 | 
			
		||||
    "./test_ipv4_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --output_format excel --col_names $COL_NAMES --debug"
 | 
			
		||||
    "./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 --debug"
 | 
			
		||||
    "./test_ipv6_connection.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./test_ipv6_variable_time.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --test_duration 15s --cx_type tcp6 --debug"
 | 
			
		||||
    "./test_l3_longevity.py --radio $RADIO_USED --debug"
 | 
			
		||||
    "./test_l3_powersave_traffic.py --radio $RADIO_USED --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./test_l3_scenario_throughput.py -t 15 --debug"
 | 
			
		||||
    "./test_status_msg.py --debug " #this is all which is needed to run
 | 
			
		||||
    "./test_wanlink.py --debug"
 | 
			
		||||
    "../py-json/wlan_theoretical_sta.py --debug"
 | 
			
		||||
    #"./ws_generic_monitor_test.py"
 | 
			
		||||
    "../py-json/ws-sta-monitor.py"
 | 
			
		||||
    "./create_bridge.py --radio wiphy1 --upstream_port eth1 --target_device sta0000"NAME
 | 
			
		||||
    "./create_l3.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./create_l4.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./create_macvlan.py --radio wiphy1 --macvlan_parent eth1"
 | 
			
		||||
    "./create_station.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "./create_vap.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY"
 | 
			
		||||
    "../py-json/ws-sta-monitor.py --debug"
 | 
			
		||||
    "./create_bridge.py --radio wiphy1 --upstream_port eth1 --target_device sta0000 --debug"
 | 
			
		||||
    "./create_l3.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./create_l4.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./create_macvlan.py --radio wiphy1 --macvlan_parent eth1 --debug"
 | 
			
		||||
    "./create_station.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
    "./create_vap.py --radio wiphy1 --ssid $SSID_USED --passwd $PASSWD_USED --security $SECURITY --debug"
 | 
			
		||||
)
 | 
			
		||||
declare -A name_to_num
 | 
			
		||||
name_to_num=(
 | 
			
		||||
 
 | 
			
		||||
@@ -170,7 +170,7 @@ python3 ./test_ipv4_variable_time.py
 | 
			
		||||
    --output_format csv
 | 
			
		||||
    --report_file ~/Documents/results.csv                       (Example of csv file output  - please use another extension for other file formats)
 | 
			
		||||
    --compared_report ~/Documents/results_prev.csv              (Example of csv file retrieval - please use another extension for other file formats) - UNDER CONSTRUCTION
 | 
			
		||||
    --col_names 'name', 'tx bytes', 'rx bytes', 'dropped'       (column names from the GUI to print on report -  please read below to know what to put here according to preferences)
 | 
			
		||||
    --col_names 'name','tx bytes','rx bytes','dropped'          (column names from the GUI to print on report -  please read below to know what to put here according to preferences)
 | 
			
		||||
    --debug
 | 
			
		||||
===============================================================================
 | 
			
		||||
 ** FURTHER INFORMATION **
 | 
			
		||||
@@ -182,7 +182,7 @@ python3 ./test_ipv4_variable_time.py
 | 
			
		||||
 | 
			
		||||
    GUI Column Display       Col_names argument to type in (to print in report)
 | 
			
		||||
 | 
			
		||||
    Name                |
 | 
			
		||||
    Name                |  'name'
 | 
			
		||||
    EID                 |  'eid'
 | 
			
		||||
    Run                 |  'run'
 | 
			
		||||
    Mng                 |  'mng'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user