blob: bf46af58aab4e1d431407dcea3febf96385b8c7a (
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
|
#!/bin/bash
set -xeu -o pipefail
# Get CSIT branch
if [[ -f csit-test-branch ]]; then
chmod +x csit-test-branch
CSIT_BRANCH=`./csit-test-branch`
else
CSIT_BRANCH='master'
fi
# Clone csit
git clone https://gerrit.fd.io/r/csit --branch ${CSIT_BRANCH}
# 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}"
exit 1
fi
cd csit
# execute csit bootstrap script if it exists
if [[ ! -e bootstrap-hc2vpp-perf.sh ]]
then
echo 'ERROR: No bootstrap-hc2vpp-perf.sh found'
exit 1
else
# make sure that bootstrap.sh is executable
chmod +x bootstrap-hc2vpp-perf.sh
# run the script
./bootstrap-hc2vpp-perf.sh ${STREAM} ${OS} ${ODL}
fi
# vim: ts=4 ts=4 sts=4 et :
|