summaryrefslogtreecommitdiffstats
path: root/jjb/nsh_sfc/include-raw-nsh_sfc-csit-perf-hw.sh
blob: 98b1d070e5c5a0f1c3c41f042760fe82f2f5a69e (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
#!/bin/bash

set -xeu -o pipefail

# Clone csit and start tests
git clone https://gerrit.fd.io/r/csit

# If the git clone fails, complain clearly and exit
if [ $? != 0 ]; then
    echo "Failed to run: git clone https://gerrit.fd.io/r/csit"
    exit 1
fi

cd csit

# execute  nsh_sfc bootstrap script if it exists
if [ ! -e bootstrap-verify-perf-nsh_sfc.sh ]
then
    echo 'ERROR: No bootstrap-verify-perf-nsh_sfc.sh found'
    exit 1
fi

# make sure that bootstrap-verify-perf.sh is executable
chmod +x bootstrap-verify-perf-nsh_sfc.sh
# run the script
./bootstrap-verify-perf-nsh_sfc.sh

# vim: ts=4 ts=4 sts=4 et :