summaryrefslogtreecommitdiffstats
path: root/jjb/csit/include-raw-csit-vpp-perf-check.sh
blob: 9f518e51d24f7dfa6f65c4c9a6fd88f4d61d4638 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \
    | grep -oE 'verify-perf-(ndrdisc|pdrdisc|mrr)' \
    | awk '{print toupper($0)}'`
export TEST_TAG=${TRIGGER}

# 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 :