-
Notifications
You must be signed in to change notification settings - Fork 249
/
Copy pathschedule-additional-tests
executable file
·62 lines (60 loc) · 2.41 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash -ex
source $(dirname $0)/cmsrep.sh
CONFIG_MAP=$(dirname $0)/config.map
PROFILING_WORKFLOWS=$($CMS_BOT_DIR/cmssw-pr-test-config _PROFILING | tr ',' ' ')
for x in `grep ADDITIONAL_TESTS= $CONFIG_MAP | grep "SCRAM_ARCH=$ARCHITECTURE;" | grep "RELEASE_QUEUE=$RELEASE_QUEUE;" | sed -e's/.*ADDITIONAL_TESTS=//;s/;.*//' | tr , '\n'`; do
#Skip some tests which are run separately e.g. fwlie clang-analyzer (as part of static-cecks)
[ "${x}" = "fwlite" ] && continue
[ "${x}" = "clang-analyzer" ] && continue
pfile="$WORKSPACE/auto-$x-properties"
echo "Creating property file ${pfile}"
echo "RELEASE_FORMAT=${RELEASE_FORMAT}" > ${pfile}
echo "ARCHITECTURE=${ARCHITECTURE}" >> ${pfile}
echo "RELEASE_QUEUE=${RELEASE_QUEUE}" >> ${pfile}
if [ "$x" == "baseline-gpu" ]; then
x="baseline"
echo "TEST_FLAVOR=gpu" >> ${pfile}
fi
echo "ADDITIONAL_TEST_NAME=$x" >> ${pfile}
if [ "$x" == "baseline" ]; then
echo "REAL_ARCH=${RELVAL_REAL_ARCH}" >> ${pfile}
fi
if [ "$x" = "igprof-pp" -o "$x" = "igprof-mp" ] ; then
prof=$(echo $x | sed 's|igprof-||')
sed -i -e "s|ADDITIONAL_TEST_NAME=$x|ADDITIONAL_TEST_NAME=igprof|" ${pfile}
echo "PROFILE=$prof" >> ${pfile}
wf="136.889"
nfile=$WORKSPACE/auto-$x-${wf}-properties
cp ${pfile} ${nfile}
echo "WORKFLOWS=-i all -l $wf" >> ${nfile}
echo "EVENTS=100" >> ${nfile}
for wf in $PROFILING_WORKFLOWS; do
nfile=$WORKSPACE/auto-$x-${wf}-properties
[ ! -e ${nfile} ] || continue
cp ${pfile} ${nfile}
echo "WORKFLOWS=-l $wf" >> ${nfile}
echo "EVENTS=10" >> ${nfile}
done
rm -f ${pfile}
fi
if [ "$x" = "profiling" ] ; then
for wf in $PROFILING_WORKFLOWS; do
nfile=$WORKSPACE/auto-$x-${wf}-properties
cp ${pfile} ${nfile}
echo "PROFILING_WORKFLOWS=$wf" >> ${nfile}
echo "EVENTS=100" >> ${nfile}
done
rm -f ${pfile}
fi
done
if [ "${PRODUCTION_ARCH}" = "1" ] ; then
if [ $(grep "SCRAM_ARCH=${ARCHITECTURE};" $CONFIG_MAP | grep 'RELEASE_BRANCH=master;' | grep "RELEASE_QUEUE=${RELEASE_QUEUE};" | grep 'PROD_ARCH=1;' | grep -v 'DISABLED=1' | wc -l) -eq 1 ] ; then
echo "RELEASE_FORMAT=${RELEASE_FORMAT}" > cmssw-afs-eos.txt
echo "ARCHITECTURE=${ARCHITECTURE}" >> cmssw-afs-eos.txt
for btype in local afs eos ; do
cp cmssw-afs-eos.txt cmssw-afs-eos.${btype}
echo "BUILD_TYPE=${btype}" >> cmssw-afs-eos.${btype}
done
rm -f cmssw-afs-eos.txt
fi
fi