mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-10-29 18:12:34 +00:00
Update scenarios and configuration accordingly. Signed-off-by: Ben Greear <greearb@candelatech.com>
84 lines
2.3 KiB
Bash
Executable File
84 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Example usage of this script
|
|
# DUT_SW_VER=my-build-id ./run_basic.bash
|
|
#
|
|
# Other DUT variables in test_bed_cfg.bash may also be over-ridden,
|
|
# including those below. See LANforge 'add_dut' CLI command for
|
|
# details on what these variables are for.
|
|
|
|
# DUT_FLAGS DUT_FLAGS_MASK DUT_SW_VER DUT_HW_VER DUT_MODEL
|
|
# DUT_SERIAL DUT_SSID1 DUT_SSID2 DUT_SSID3
|
|
# DUT_PASSWD1 DUT_PASSWD2 DUT_PASSWD3
|
|
# DUT_BSSID1 DUT_BSSID2 DUT_BSSID3
|
|
|
|
#set -x
|
|
|
|
DO_SHORT_AP_BASIC_CX=${DO_SHORT_AP_BASIC_CX:-1}
|
|
DO_WCT_BI=${DO_WCT_BI:-1}
|
|
|
|
export DO_SHORT_AP_BASI_CX DO_WCT_BI
|
|
|
|
# Source config file
|
|
. test_bed_cfg.bash
|
|
|
|
echo "<b>Top wlan-testing git commits.</b><br><pre>" > ./tmp_gitlog.html
|
|
git log -n 8 --oneline >> ./tmp_gitlog.html
|
|
echo "</pre>" >> ./tmp_gitlog.html
|
|
|
|
NOTES_HTML=`pwd`/testbed_notes.html
|
|
GITLOG=`pwd`/tmp_gitlog.html
|
|
|
|
if [ -d "../../../wlan-ap" ]
|
|
then
|
|
DUTGITLOG=/tmp/${DUT_SW_VER}_dut_gitlog.html
|
|
echo "<b>Top wlan-ap git commits.</b><br><pre>" > $DUTGITLOG
|
|
(cd ../../../wlan-ap && git log -n 8 --oneline $DUT_SW_VER >> $DUTGITLOG && cd -)
|
|
echo "</pre>" >> $DUTGITLOG
|
|
export DUTGITLOG
|
|
fi
|
|
export NOTES_HTML GITLOG
|
|
|
|
# TODO: Copy config file to cloud controller and restart it
|
|
# and/or do other config to make it work.
|
|
|
|
# Change to scripts dir
|
|
cd ../../lanforge/lanforge-scripts/gui
|
|
|
|
# Where to place results. basic_regression.bash will use this variable.
|
|
RSLTS_DIR=/tmp/nola-01-basic-regression-fast
|
|
export RSLTS_DIR
|
|
|
|
# Clean any existing data from the results dir
|
|
rm -fr $RSLTS_DIR
|
|
|
|
# Clean up old DHCP leases
|
|
../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --cmd "cli clear_port_counters ALL ALL ALL dhcp_leases"
|
|
|
|
# Run a subset of available tests
|
|
# See 'Tests to run' comment in basic_regression.bash for available options.
|
|
|
|
#DEFAULT_ENABLE=0 WCT_DURATION=20s DO_SHORT_AP_BASIC_CX=1 DO_WCT_BI=1 ./basic_regression.bash
|
|
|
|
DEFAULT_ENABLE=0 WCT_DURATION=20s ./basic_regression.bash
|
|
|
|
|
|
# Run all tests
|
|
#./basic_regression.bash
|
|
|
|
cd -
|
|
|
|
if [ ! -d $RSLTS_DIR ]
|
|
then
|
|
echo "Test did not run as expected, $RSLTS_DIR not found."
|
|
mkdir -p $RSLTS_DIR
|
|
fi
|
|
|
|
if [ -f ${MY_TMPDIR}/basic_regression_log.txt ]
|
|
then
|
|
echo "Found ${MY_TMPDIR}/basic_regression_log.txt, moving into $RSLTS_DIR"
|
|
mv ${MY_TMPDIR}/basic_regression_log.txt $RSLTS_DIR/
|
|
fi
|
|
|
|
echo "See results in $RSLTS_DIR"
|