summaryrefslogtreecommitdiffstats
path: root/jjb/csit/include-raw-csit-vpp-perf-verify.sh
blob: ded4ceee01441eec077693e08d323a5e1c759d82 (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

if [[ ${GERRIT_EVENT_TYPE} == 'comment-added' ]]; then
    TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \
        | grep -oE '(perftest$|perftest[[:space:]].+$)'`
else
    TRIGGER=''
fi
# Export test type.
export TEST_TAG="VERIFY-PERF-PATCH"
# Export test tags as string.
export TEST_TAG_STRING=${TRIGGER#$"perftest"}

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

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

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