1#!/usr/bin/env bash 2 3echo "command line as passed into $(basename ${0}): ${*}" 4echo "command line (quoted) as passed into $(basename ${0}): ${@}" 5 6# This file, localBuildProperties.shsource, should never exist or be needed for production machine, 7# but allows an easy way for a "local user" to provide this file 8# somewhere on the search path ($HOME/bin is common), 9# and it will be included here, thus can provide "override values" 10# to those defined by defaults for production machine., 11# such as for jvm 12source localBuildProperties.shsource 2>/dev/null 13 14if [[ -z "${propertyFile}" ]] 15then 16 echo "expect property file as environment variable for production runs" 17 exit 1 18fi 19 20if [[ -z "${jvm}" ]] 21then 22 echo "expect jvm as environment variable for production runs" 23 exit 1 24fi 25if [[ -z "${testedPlatform}" ]] 26then 27 echo "expect testedPlatform as environment variable for production runs" 28 exit 1 29fi 30 31echo "PWD: $PWD" 32# in production tests, should already be set by runTests2.xml, so 33# we set to an old version here, to make obvious if not. 34export jvm=${jvm:-/shared/common/jdk-1.6.x86_64/jre/bin/java} 35 36# production machine is x86_64, but some local setups may be 32 bit and will need to provide 37# this value in localBuildProperties.shsource. ( 38eclipseArch=${eclipseArch:-x86_64} 39 40# production.properties is used in production tests, 41# need to override on local setups to specify appropriate vm (usually same as jvm). 42# see bug 388269 43export propertyFile=${propertyFile:-platformSpecific.properties} 44 45# in product tests, should be set by runTests2.xml, 46# so we use "vm value", "x.0" at end, to make obvious if that's not working. 47export testedPlatform=${testedPlatform:-linux.gtk.x86_64_x.0} 48 49echo "=== properties in testAll.sh" 50echo " DOWNLOAD_HOST: ${DOWNLOAD_HOST}" 51echo " jvm in testAll: ${jvm}" 52echo " extdir in testAll (if any): ${extdir}" 53echo " propertyFile in testAll: ${propertyFile}" 54echo " buildId in testAll: ${buildId}" 55echo " testedPlatform: ${testedPlatform}" 56echo " ANT_OPTS: ${ANT_OPTS}" 57 58#execute command to run tests 59/bin/chmod 755 runtests.sh 60/bin/mkdir -p results/consolelogs 61 62if [[ -n "${extdir}" ]] 63then 64 ./runtests.sh -os linux -ws gtk -arch $eclipseArch -extdirprop "${extdir}" -vm "${jvm}" -properties ${propertyFile} "${@}" > results/consolelogs/${testedPlatform}_consolelog.txt 65else 66 ./runtests.sh -os linux -ws gtk -arch $eclipseArch -vm "${jvm}" -properties ${propertyFile} "${@}" > results/consolelogs/${testedPlatform}_consolelog.txt 67fi 68 69