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
63
64
65
66
|
#!/usr/bin/env bash
echo "command line as passed into $(basename ${0}): ${*}"
echo "command line (quoted) as passed into $(basename ${0}): ${@}"
# This file, localBuildProperties.shsource, should never exist or be needed for production machine,
# but allows an easy way for a "local user" to provide this file
# somewhere on the search path ($HOME/bin is common),
# and it will be included here, thus can provide "override values"
# to those defined by defaults for production machine.,
# such as for jvm
source localBuildProperties.shsource 2>/dev/null
if [[ -z "${propertyFile}" ]]
then
echo "expect property file as environment variable for production runs"
exit 1
fi
if [[ -z "${jvm}" ]]
then
echo "expect jvm as environment variable for production runs"
exit 1
fi
if [[ -z "${testedPlatform}" ]]
then
echo "expect testedPlatform as environment variable for production runs"
exit 1
fi
echo "PWD: $PWD"
# in production tests, should already be set by runTests2.xml, so
# we set to an old version here, to make obvious if not.
export jvm=${jvm:-/shared/common/jdk-1.6.x86_64/jre/bin/java}
# production machine is x86_64, but some local setups may be 32 bit and will need to provide
# this value in localBuildProperties.shsource. (
eclipseArch=${eclipseArch:-x86_64}
# production.properties is used in production tests,
# need to override on local setups to specify appropriate vm (usually same as jvm).
# see bug 388269
export propertyFile=${propertyFile:-platformSpecific.properties}
# in product tests, should be set by runTests2.xml,
# so we use "vm value", "x.0" at end, to make obvious if that's not working.
export testedPlatform=${testedPlatform:-linux.gtk.x86_64_x.0}
echo "=== properties in testAll.sh"
echo " jvm in testAll: ${jvm}"
echo " extdir in testAll (if any): ${extdir}"
echo " propertyFile in testAll: ${propertyFile}"
echo " buildId in testAll: ${buildId}"
echo " testedPlatform: ${testedPlatform}"
#execute command to run tests
/bin/chmod 755 runtests.sh
/bin/mkdir -p results/consolelogs
if [[ -n "${extdir}" ]]
then
./runtests.sh -os linux -ws gtk -arch $eclipseArch -extdirprop "${extdir}" -vm "${jvm}" -properties ${propertyFile} "${@}" > results/consolelogs/${testedPlatform}_consolelog.txt
else
./runtests.sh -os linux -ws gtk -arch $eclipseArch -vm "${jvm}" -properties ${propertyFile} "${@}" > results/consolelogs/${testedPlatform}_consolelog.txt
fi
|