forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule-additional-tests
executable file
·24 lines (21 loc) · 1.23 KB
/
schedule-additional-tests
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -ex
CONFIG_MAP_URL="https://raw.githubusercontent.com/cms-sw/cms-bot/HEAD/config.map"
for x in `curl -k -s $CONFIG_MAP_URL | grep ADDITIONAL_TESTS= | grep "SCRAM_ARCH=$ARCHITECTURE;" | grep "RELEASE_QUEUE=$RELEASE_QUEUE;" | sed -e's/.*ADDITIONAL_TESTS=//;s/;.*//' | tr , '\n'`; do
if [ "$x" == "baseline" ]; then
BASELINE_FILE_INTEL=$WORKSPACE/$x-GenuineIntel-properties
echo "Creating property file $BASELINE_FILE_INTEL"
echo "RELEASE_FORMAT=${RELEASE_QUEUE}_${DATE_FORMAT}" > $BASELINE_FILE_INTEL
echo "ARCHITECTURE=${ARCHITECTURE}" >> $BASELINE_FILE_INTEL
echo "REAL_ARCH=-GenuineIntel" >> $BASELINE_FILE_INTEL
BASELINE_FILE_AMD=$WORKSPACE/$x-AuthenticAMD-properties
echo "Creating property file $BASELINE_FILE_AMD"
echo "RELEASE_FORMAT=${RELEASE_QUEUE}_${DATE_FORMAT}" > $BASELINE_FILE_AMD
echo "ARCHITECTURE=${ARCHITECTURE}" >> $BASELINE_FILE_AMD
echo "REAL_ARCH=-AuthenticAMD" >> $BASELINE_FILE_AMD
else
echo "Creating property file $WORKSPACE/$x-properties."
echo "RELEASE_FORMAT=${RELEASE_QUEUE}_${DATE_FORMAT}" > $WORKSPACE/$x-properties
echo "ARCHITECTURE=${ARCHITECTURE}" >> $WORKSPACE/$x-properties
echo "RELEASE_QUEUE=${RELEASE_QUEUE}" >> $WORKSPACE/$x-properties
fi
done