X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=bootstrap.sh;h=4911c4d5e83cba83d24a93c5bd2f200a722f7b51;hp=fa3f00635c5d3d5b19e19fb07abd00205ee51e45;hb=3ea531a687827454360659f91aaa026001e75d4e;hpb=a06a031c5865f34c2a651ef170778149fb8f0396 diff --git a/bootstrap.sh b/bootstrap.sh index fa3f00635c..4911c4d5e8 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -2,7 +2,15 @@ set -x -#sudo apt-get -y install libpython2.7-dev +echo | sudo tee -a /etc/hostname +echo "127.0.0.1 `cat /etc/hostname` " | sudo tee -a /etc/hosts + +cat /etc/hostname +cat /etc/hosts + +export DEBIAN_FRONTEND=noninteractive +sudo apt-get -y update +sudo apt-get -y install libpython2.7-dev python-virtualenv #VIRL_VMS="10.30.51.53,10.30.51.51,10.30.51.52" #IFS=',' read -ra ADDR <<< "${VIRL_VMS}" @@ -68,12 +76,18 @@ chmod 600 priv_key # Temporarily download VPP packages from nexus.fd.io rm -f *.deb -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp/1.0.0-185~gca0f3b3_amd64/vpp-1.0.0-185~gca0f3b3_amd64.deb" || exit -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dbg/1.0.0-185~gca0f3b3_amd64/vpp-dbg-1.0.0-185~gca0f3b3_amd64.deb" || exit -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dev/1.0.0-185~gca0f3b3_amd64/vpp-dev-1.0.0-185~gca0f3b3_amd64.deb" || exit -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dpdk-dev/1.0.0-185~gca0f3b3_amd64/vpp-dpdk-dev-1.0.0-185~gca0f3b3_amd64.deb" || exit -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dpdk-dkms/1.0.0-185~gca0f3b3_amd64/vpp-dpdk-dkms-1.0.0-185~gca0f3b3_amd64.deb" || exit -wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-lib/1.0.0-185~gca0f3b3_amd64/vpp-lib-1.0.0-185~gca0f3b3_amd64.deb" || exit +if [ "${#}" -ne "0" ]; then + echo "let's use the parameters" + arr=(${@}) + echo ${arr[0]} +else + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp/1.0.0-185~gca0f3b3_amd64/vpp-1.0.0-185~gca0f3b3_amd64.deb" || exit + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dbg/1.0.0-185~gca0f3b3_amd64/vpp-dbg-1.0.0-185~gca0f3b3_amd64.deb" || exit + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dev/1.0.0-185~gca0f3b3_amd64/vpp-dev-1.0.0-185~gca0f3b3_amd64.deb" || exit + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dpdk-dev/1.0.0-185~gca0f3b3_amd64/vpp-dpdk-dev-1.0.0-185~gca0f3b3_amd64.deb" || exit + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-dpdk-dkms/1.0.0-185~gca0f3b3_amd64/vpp-dpdk-dkms-1.0.0-185~gca0f3b3_amd64.deb" || exit + wget -q "https://nexus.fd.io/service/local/repositories/fd.io.dev/content/io/fd/vpp/vpp-lib/1.0.0-185~gca0f3b3_amd64/vpp-lib-1.0.0-185~gca0f3b3_amd64.deb" || exit +fi VPP_DEBS=(*.deb) echo ${VPP_DEBS[@]} @@ -109,7 +123,7 @@ function stop_virl_simulation { VIRL_SID=$(ssh -i priv_key -o StrictHostKeyChecking=no \ ${VIRL_USERNAME}@${VIRL_SERVER} \ - "/home/jenkins-in/testcase-infra/bin/start-testcase simple-ring ${VPP_DEBS_FULL[@]}") + "/home/jenkins-in/testcase-infra/bin/start-testcase -c simple-ring ${VPP_DEBS_FULL[@]}") retval=$? if [ "$?" -ne "0" ]; then echo "VIRL simulation start failed" @@ -151,4 +165,5 @@ PYTHONPATH=`pwd` pybot -L TRACE \ --include 3_NODE_SINGLE_LINK_TOPO \ --exclude 3_node_double_link_topoNOT3_node_single_link_topo \ --exclude PERFTEST \ + --noncritical EXPECTED_FAILING \ tests/