Step 2: Move test folder to root
[integration/test.git] / tools / tools_vm / scripts / run_test_base.sh
1 #!/bin/bash
2
3 # This script will pass base edition system test to an external controller
4 # Please make sure you can ping external controller before launching the script
5
6 MYIP=`ifconfig  | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`
7 if [ -d $1 ]; then
8    echo "Usage: run_test_base.sh [controllerIP]"
9    echo ""
10    exit 1
11 fi
12 cd ~
13 pybot -d ${HOME} -v CONTROLLER:$1 -v MININET:$MYIP -v USER_HOME:${HOME} -v MININET_USER:${USER} ${HOME}/integration/test/csit/suites/base