aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
blob: c20bf47b222c31740bb71f5ea034624dbafbf7dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash

#sudo apt-get -y install libpython2.7-dev

#VIRL_VMS="10.30.51.53,10.30.51.51,10.30.51.52"
#IFS=',' read -ra ADDR <<< "${VIRL_VMS}"
#
#function ssh_do() {
#    echo
#    echo "### "  ssh $@
#    ssh -i priv_key -o StrictHostKeyChecking=no $@
#}

#for addr in "${ADDR[@]}"; do
#    echo
#    echo ${addr}
#    echo
#
#    ssh_do cisco@${addr} hostname || true
#    ssh_do cisco@${addr} "ifconfig -a" || true
#    ssh_do cisco@${addr} "lspci -Dnn | grep 0200" || true
#    ssh_do cisco@${addr} "free -m" || true
#    ssh_do cisco@${addr} "cat /proc/meminfo" || true
#    ssh_do cisco@${addr} "dpkg -l vpp\*" || true
#    ssh_do cisco@${addr} "lshw -c network" || true
#    ssh_do cisco@${addr} "sudo -S sh -c 'echo exec show  hardware | vpp_api_test '"
#done

virtualenv env
. env/bin/activate

echo pip install
pip install -r requirements.txt

PYTHONPATH=`pwd` pybot -L TRACE -v TOPOLOGY_PATH:topologies/available/virl.yaml --exclude PERFTEST tests || true