Merge "CSIT-682 Usage of make-verify for vpp-csit-verify jobs"
[ci-management.git] / jjb / nsh_sfc / include-raw-nsh_sfc-csit-perf-hw.sh
1 #!/bin/bash
2
3 set -xeu -o pipefail
4
5 # Clone csit and start tests
6 git clone https://gerrit.fd.io/r/csit
7
8 # If the git clone fails, complain clearly and exit
9 if [ $? != 0 ]; then
10     echo "Failed to run: git clone https://gerrit.fd.io/r/csit"
11     exit 1
12 fi
13
14 cd csit
15
16 # execute  nsh_sfc bootstrap script if it exists
17 if [ ! -e bootstrap-verify-perf-nsh_sfc.sh ]
18 then
19     echo 'ERROR: No bootstrap-verify-perf-nsh_sfc.sh found'
20     exit 1
21 fi
22
23 # make sure that bootstrap-verify-perf.sh is executable
24 chmod +x bootstrap-verify-perf-nsh_sfc.sh
25 # run the script
26 ./bootstrap-verify-perf-nsh_sfc.sh
27
28 # vim: ts=4 ts=4 sts=4 et :