aboutsummaryrefslogtreecommitdiff
path: root/contrib/cirrus/optional_system_test.sh
blob: 705dda5ade3003839603481b9c3321d8e6f47814 (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
#!/bin/bash

set -e
source $(dirname $0)/lib.sh

MAGIC_RE='\*\*\*\s*CIRRUS:\s*SYSTEM\s*TEST\s*\*\*\*'
if ! echo "$CIRRUS_CHANGE_MESSAGE" | egrep -q "$MAGIC_RE"
then
    echo "Skipping system-testing because PR title or description"
    echo "does not match regular expression: $MAGIC_RE"
    exit 0
fi

req_env_var "
GOSRC $GOSRC
OS_RELEASE_ID $OS_RELEASE_ID
OS_RELEASE_VER $OS_RELEASE_VER
"

show_env_vars

set -x
cd "$GOSRC"
make localsystem