From 86277507645a6074aad3c3de798e454646586051 Mon Sep 17 00:00:00 2001 From: kitlo Date: Thu, 24 May 2018 07:08:48 -0400 Subject: Bug 532933 - Add new test configuration that runs with Java 10 Change-Id: I7287a2911f4881826d2539eec135592e626148b0 Signed-off-by: kitlo --- .../linuxjava10/platformSpecific.properties | 42 +++++++++++++ .../sdk.tests/testConfigs/linuxjava10/testAll.sh | 68 ++++++++++++++++++++++ production/testScripts/invokeTestsJSON.xml | 2 +- production/testScripts/runTests2.xml | 6 +- 4 files changed, 114 insertions(+), 4 deletions(-) create mode 100644 production/testScripts/configuration/sdk.tests/testConfigs/linuxjava10/platformSpecific.properties create mode 100644 production/testScripts/configuration/sdk.tests/testConfigs/linuxjava10/testAll.sh diff --git a/production/testScripts/configuration/sdk.tests/testConfigs/linuxjava10/platformSpecific.properties b/production/testScripts/configuration/sdk.tests/testConfigs/linuxjava10/platformSpecific.properties new file mode 100644 index 000000000..6577527a8 --- /dev/null +++ b/production/testScripts/configuration/sdk.tests/testConfigs/linuxjava10/platformSpecific.properties @@ -0,0 +1,42 @@ + +# This properties file contains items that are specific to the platform being tested, +# Typically includes items dependent on exact OS, architecture, and location of files. +# (Historically, this info used to be contained in several files, such as 'vm.properties', +# testing.properties, etc.) + +# This value is computed by scripts, but there may be need or opportunity +# to denote "extra data" if set here? (But, other changes will be +# needed to be fully functional, since indexer, web pages also depend +# on this value. +# testedPlatform=linux.gtk.x86_64_8.0 + +# This is the VM to use to run the tests, if one prefers +# to use a different one from the one that stared the whole process. +jvm=/shared/common/java/oracle/jdk-10-ga_x64/bin/java + +# TODO: can also list VMs to use for specific execution environments + +# executable for ant /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 " DOWNLOAD_HOST: ${DOWNLOAD_HOST}" +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}" +echo " ANT_OPTS: ${ANT_OPTS}" + +#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 + diff --git a/production/testScripts/invokeTestsJSON.xml b/production/testScripts/invokeTestsJSON.xml index a857f6f74..55633a0dd 100644 --- a/production/testScripts/invokeTestsJSON.xml +++ b/production/testScripts/invokeTestsJSON.xml @@ -79,7 +79,7 @@ + value="ep${eclipseStreamMajor}${eclipseStreamMinor}${buildType}-unit-cen64-gtk3-java10" /> diff --git a/production/testScripts/runTests2.xml b/production/testScripts/runTests2.xml index 3702bf3a1..9a91aea0f 100644 --- a/production/testScripts/runTests2.xml +++ b/production/testScripts/runTests2.xml @@ -286,7 +286,7 @@ unless="testPlatform"> + value="linuxjava10"> + arg2="java10" /> + arg2="linuxjava10" />