ded4ceee01441eec077693e08d323a5e1c759d82
[ci-management.git] / jjb / csit / include-raw-csit-vpp-perf-verify.sh
1 #!/bin/bash
2
3 set -xeu -o pipefail
4
5 if [[ ${GERRIT_EVENT_TYPE} == 'comment-added' ]]; then
6     TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \
7         | grep -oE '(perftest$|perftest[[:space:]].+$)'`
8 else
9     TRIGGER=''
10 fi
11 # Export test type.
12 export TEST_TAG="VERIFY-PERF-PATCH"
13 # Export test tags as string.
14 export TEST_TAG_STRING=${TRIGGER#$"perftest"}
15
16 # execute csit bootstrap script if it exists
17 if [ ! -e bootstrap-verify-perf.sh ]
18 then
19     echo 'ERROR: No bootstrap-verify-perf.sh found'
20     exit 1
21 fi
22
23 # make sure that bootstrap-verify-perf.sh is executable
24 chmod +x bootstrap-verify-perf.sh
25 # run the script
26 ./bootstrap-verify-perf.sh
27
28 # vim: ts=4 ts=4 sts=4 et :