diff --git a/gui/basic_regression.bash b/gui/basic_regression.bash new file mode 100755 index 00000000..56bf30be --- /dev/null +++ b/gui/basic_regression.bash @@ -0,0 +1,70 @@ +#!/bin/bash + +# Run some automated GUI tests, save the results +# Example of how to run this and override LFMANAGER default settings. Other values can +# be over-ridden as well. +# +# LFMANAGER=192.168.100.156 ./basic_regression.bash +# +# + +AP_AUTO_CFG_FILE=${AP_AUTO_CFG_FILE:-test_configs/AP-Auto-ap-auto-32-64-dual.txt} + +# LANforge target machine +LFMANAGER=${LFMANAGER:-localhost} + +# LANforge GUI machine (may often be same as target) +GMANAGER=${GMANAGER:-localhost} +GMPORT=${GMPORT:-3990} +MY_TMPDIR=${MY_TMPDIR:-/tmp} + +# Test configuration (10 minutes by default, in interest of time) +STABILITY_DURATION=${STABILITY_DURATION:-600} + +DATESTR=$(date +%F-%T) +RSLTS_DIR=${RSLTS_DIR:-basic_regression_results_$DATESTR} + + +# Probably no config below here +AP_AUTO_CFG=ben +RPT_TMPDIR=${MY_TMPDIR}/lf_reports + +mkdir -p $RSLTS_DIR + +# Load AP-Auto config file +../lf_testmod.pl --mgr $LFMANAGER --action set --test_name AP-Auto-$AP_AUTO_CFG --file $AP_AUTO_CFG_FILE + +# Clean out temp report directory +if [ -d $RPT_TMPDIR ] +then + rm -fr $RPT_TMPDIR/* +fi + +# Run basic-cx test +../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ + --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 + + +# Run Throughput, Dual-Band, Capacity test in a row, the Capacity will use results from earlier +# tests. +../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 "Throughput vs Pkt Size" --modifier_val true \ + --modifier_key "Dual Band Performance" --modifier_val true \ + --modifier_key "Capacity" --modifier_val true \ + --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 + + +# Run Stability test +../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 +mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability/test_automation.txt +