summaryrefslogtreecommitdiffstats
path: root/scripts/t-rex-64
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2016-01-18 22:00:51 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2016-01-18 22:00:51 +0200
commiteee866f42bd0fc8472e6295b4f26bd0697e59f1f (patch)
treeb16947052643d6a0c7dd20012f0a1d664d044444 /scripts/t-rex-64
parentc88f411b3a69d6ea56c6b9758b10c30b87a6c94b (diff)
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
Diffstat (limited to 'scripts/t-rex-64')
-rwxr-xr-xscripts/t-rex-645
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/t-rex-64 b/scripts/t-rex-64
index d33cc3e8..1cf82489 100755
--- a/scripts/t-rex-64
+++ b/scripts/t-rex-64
@@ -1,4 +1,9 @@
#! /bin/bash
+if [ $USER != 'root' ]; then
+ echo 'Error: Please run as root (sudo etc.)'
+ exit -1
+fi
+
./trex-cfg $@
RESULT=$?
if [ $RESULT -ne 0 ]; then