From eee866f42bd0fc8472e6295b4f26bd0697e59f1f Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Mon, 18 Jan 2016 22:00:51 +0200 Subject: regression: corrections of benchmarks move packet builder tests to functional folder add CPU utilization boundries for more tests print Skipping message fix relative drop counting API: convert hostname to IP at init of client side (trex_client.py) various: move python path determination to external common file add functional tests running bash script add sudo check to t-rex-64 --- scripts/stl-sim | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'scripts/stl-sim') diff --git a/scripts/stl-sim b/scripts/stl-sim index 1ca0322e..f778de2c 100644 --- a/scripts/stl-sim +++ b/scripts/stl-sim @@ -1,31 +1,5 @@ #!/bin/bash -# if no variable of $PYTHON is define - we try to find it -function find_python { - # two candidates - machine python and cisco linux python - MACHINE_PYTHON=python - CEL_PYTHON=/router/bin/python - - # try the machine python - PYTHON=$MACHINE_PYTHON - - PCHECK=`$PYTHON -c "import sys; ver = sys.version_info[0] * 10 + sys.version_info[1];sys.exit(ver < 27)"` - if [ $? -ne 0 ]; then - PYTHON=$CEL_PYTHON - PCHECK=`$PYTHON -c "import sys; ver = sys.version_info[0] * 10 + sys.version_info[1];sys.exit(ver < 27)"` - - if [ $? -ne 0 ]; then - echo "*** $PYTHON - python version is too old, 2.7 at least is required" - exit -1 - fi - - fi - -} - -if [ -z "$PYTHON" ]; then - find_python -fi - +source find_python.sh $PYTHON automation/trex_control_plane/client/trex_stateless_sim.py $@ -- cgit 1.2.3-korg