X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fvpp%2Finclude-raw-vpp-csit-functional.sh;h=38ef7e08ecfb240d934ea87cccfede0f06726eaa;hb=a247aa6703f3a09c0bcd74fd403c38876d5f3db3;hp=e0767c64442a890da510ec3d47690d9b48b120d5;hpb=e6bbe28c3f03f7a7d0d4fefd53136f7fbd537487;p=ci-management.git diff --git a/jjb/vpp/include-raw-vpp-csit-functional.sh b/jjb/vpp/include-raw-vpp-csit-functional.sh index e0767c644..38ef7e08e 100644 --- a/jjb/vpp/include-raw-vpp-csit-functional.sh +++ b/jjb/vpp/include-raw-vpp-csit-functional.sh @@ -1,10 +1,30 @@ #!/bin/bash set -xeu -o pipefail +# Get CSIT branch from which to test from +# running build-root/scripts/csit-test-branch +if [ -x build-root/scripts/csit-test-branch ]; then + CSIT_BRANCH=`build-root/scripts/csit-test-branch`; +fi + # Clone csit and start tests -git clone https://gerrit.fd.io/r/csit +git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH:-csit-verified} + +# If the git clone fails, complain clearly and exit +if [ $? != 0 ]; then + echo "Failed to run: git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH:-csit-verified}" + echo "No such branch ${CSIT_BRANCH:-csit-verified} in https://gerrit.fd.io/r/csit" + exit +fi cp build-root/*.deb csit/ +if [ -e dpdk/vpp-dpdk-dkms*.deb ] +then + cp dpdk/vpp-dpdk-dkms*.deb csit/ +else + cp /var/cache/apt/archives/vpp-dpdk-dkms*.deb csit/ +fi + cd csit # execute csit bootstrap script if it exists if [ -e bootstrap.sh ]