mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 02:38:03 +00:00 
			
		
		
		
	basic-regression: Add some more reset related tests, allow running individual tests.
This commit is contained in:
		| @@ -6,6 +6,9 @@ | |||||||
| # | # | ||||||
| #  LFMANAGER=192.168.100.156 ./basic_regression.bash | #  LFMANAGER=192.168.100.156 ./basic_regression.bash | ||||||
| # | # | ||||||
|  | # Run subset of tests | ||||||
|  | #  LFMANAGER=192.168.100.156 DEFAULT_ENABLE=0 DO_SHORT_AP_STABILITY_RESET=1 ./basic_regression.bash | ||||||
|  | # | ||||||
| # | # | ||||||
|  |  | ||||||
| AP_AUTO_CFG_FILE=${AP_AUTO_CFG_FILE:-test_configs/AP-Auto-ap-auto-32-64-dual.txt} | AP_AUTO_CFG_FILE=${AP_AUTO_CFG_FILE:-test_configs/AP-Auto-ap-auto-32-64-dual.txt} | ||||||
| @@ -21,6 +24,14 @@ MY_TMPDIR=${MY_TMPDIR:-/tmp} | |||||||
| # Test configuration (10 minutes by default, in interest of time) | # Test configuration (10 minutes by default, in interest of time) | ||||||
| STABILITY_DURATION=${STABILITY_DURATION:-600} | STABILITY_DURATION=${STABILITY_DURATION:-600} | ||||||
|  |  | ||||||
|  | # Tests to run | ||||||
|  | DEFAULT_ENABLE=${DEFAULT_ENABLE:-1} | ||||||
|  | DO_SHORT_AP_BASIC_CX=${DO_SHORT_AP_BASIC_CX:-$DEFAULT_ENABLE} | ||||||
|  | DO_SHORT_AP_TPUT=${DO_SHORT_AP_TPUT:-$DEFAULT_ENABLE} | ||||||
|  | DO_SHORT_AP_STABILITY_RESET=${DO_SHORT_AP_STABILITY_RESET:-$DEFAULT_ENABLE} | ||||||
|  | DO_SHORT_AP_STABILITY_RADIO_RESET=${DO_SHORT_AP_STABILITY_RADIO_RESET:-$DEFAULT_ENABLE} | ||||||
|  | DO_SHORT_AP_STABILITY_NO_RESET=${DO_SHORT_AP_STABILITY_NO_RESET:-$DEFAULT_ENABLE} | ||||||
|  |  | ||||||
| DATESTR=$(date +%F-%T) | DATESTR=$(date +%F-%T) | ||||||
| RSLTS_DIR=${RSLTS_DIR:-basic_regression_results_$DATESTR} | RSLTS_DIR=${RSLTS_DIR:-basic_regression_results_$DATESTR} | ||||||
|  |  | ||||||
| @@ -41,30 +52,63 @@ then | |||||||
| fi | fi | ||||||
|  |  | ||||||
| # Run basic-cx test | # Run basic-cx test | ||||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | if [ "_$DO_SHORT_AP_BASIC_CX" == "_1" ] | ||||||
|     --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | then | ||||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_basic_cx |     ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_basic_cx/test_automation.txt |         --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||||
|  |     mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_basic_cx | ||||||
|  |     mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_basic_cx/test_automation.txt | ||||||
|  | fi | ||||||
|  |  | ||||||
| # Run Throughput, Dual-Band, Capacity test in a row, the Capacity will use results from earlier | # Run Throughput, Dual-Band, Capacity test in a row, the Capacity will use results from earlier | ||||||
| # tests. | # tests. | ||||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | if [ "_$DO_SHORT_AP_TPUT" == "_1" ] | ||||||
|     --modifier_key "Basic Client Connectivity" --modifier_val false \ | then | ||||||
|     --modifier_key "Throughput vs Pkt Size" --modifier_val true \ |     ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||||
|     --modifier_key "Dual Band Performance" --modifier_val true \ |         --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||||
|     --modifier_key "Capacity" --modifier_val true \ |         --modifier_key "Throughput vs Pkt Size" --modifier_val true \ | ||||||
|     --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 |         --modifier_key "Dual Band Performance" --modifier_val true \ | ||||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_capacity |         --modifier_key "Capacity" --modifier_val true \ | ||||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_capacity/test_automation.txt |         --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||||
|  |     mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_capacity | ||||||
|  |     mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_capacity/test_automation.txt | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | # Run Stability test (single port resets, voip, tcp, udp) | ||||||
|  | if [ "_$DO_SHORT_AP_STABILITY_RESET" == "_1" ] | ||||||
|  | then | ||||||
|  |     ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||||
|  |         --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||||
|  |         --modifier_key "Stability" --modifier_val true \ | ||||||
|  |         --modifier_key "Stability Duration:" --modifier_val $STABILITY_DURATION \ | ||||||
|  |         --rpt_dest  $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||||
|  |     mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_stability_reset_ports | ||||||
|  |     mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability_reset_ports/test_automation.txt | ||||||
|  | fi | ||||||
|  |  | ||||||
| # Run Stability test | # Run Stability test (radio resets, voip, tcp, udp) | ||||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | if [ "_$DO_SHORT_AP_STABILITY_RADIO_RESET" == "_1" ] | ||||||
|     --modifier_key "Basic Client Connectivity" --modifier_val false \ | then | ||||||
|     --modifier_key "Stability" --modifier_val true \ |     ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||||
|     --modifier_key "Stability Duration:" --modifier_val $STABILITY_DURATION \ |         --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||||
|     --rpt_dest  $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 |         --modifier_key "Stability" --modifier_val true \ | ||||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_stability |         --modifier_key "Stability Duration:" --modifier_val $STABILITY_DURATION \ | ||||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability/test_automation.txt |         --modifier_key "Reset Radios" --modifier_val true \ | ||||||
|  |         --rpt_dest  $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||||
|  |     mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_stability_reset_radios | ||||||
|  |     mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability_reset_radios/test_automation.txt | ||||||
|  | fi | ||||||
|  |  | ||||||
|  | # Run Stability test (no resets, no voip, tcp, udp) | ||||||
|  | if [ "_$DO_SHORT_AP_STABILITY_NO_RESET" == "_1" ] | ||||||
|  | then | ||||||
|  |     ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||||
|  |         --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||||
|  |         --modifier_key "Stability" --modifier_val true \ | ||||||
|  |         --modifier_key "Stability Duration:" --modifier_val $STABILITY_DURATION \ | ||||||
|  |         --modifier_key "VOIP Call Count:" --modifier_val 0 \ | ||||||
|  |         --modifier_key "Concurrent Ports To Reset:" --modifier_val 0 \ | ||||||
|  |         --rpt_dest  $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||||
|  |     mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_stability_no_reset | ||||||
|  |     mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability_no_reset/test_automation.txt | ||||||
|  | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ben Greear
					Ben Greear