test/runtime/7110720/Test7110720.sh

Print this page
rev 4503 : 8009152: A number of jtreg tests need review/improvement
Summary: Added a new test_env.txt file to capture common shell variable. Added concept of COMPILEJAVA for use when TESTJAVA is a JRE. If COMPILEJAVA not set then TESTJAVA will be the default with assumption it is a JDK.
Reviewed-by: kvn, brutisso, coleenp

*** 10,36 **** # @summary improve VM configuration file loading # @run shell Test7110720.sh # if [ "${TESTSRC}" = "" ] - then TESTSRC=. - fi - - if [ "${TESTJAVA}" = "" ] then ! PARENT=`dirname \`which java\`` ! TESTJAVA=`dirname ${PARENT}` ! echo "TESTJAVA not set, selecting " ${TESTJAVA} ! echo "If this is incorrect, try setting the variable manually." fi - if [ "${TESTCLASSES}" = "" ] - then - echo "TESTCLASSES not set. Test cannot execute. Failed." - exit 1 - fi - # Jtreg sets TESTVMOPTS which may include -d64 which is # required to test a 64-bit JVM on some platforms. # If another test harness still creates HOME/JDK64BIT, # we can recognise that. --- 10,27 ---- # @summary improve VM configuration file loading # @run shell Test7110720.sh # if [ "${TESTSRC}" = "" ] then ! TESTSRC=${PWD} ! echo "TESTSRC not set. Using "${TESTSRC}" as default" fi + echo "TESTSRC=${TESTSRC}" + ## Adding common setup Variables for running shell tests. + . ${TESTSRC}/../../test_env.sh # Jtreg sets TESTVMOPTS which may include -d64 which is # required to test a 64-bit JVM on some platforms. # If another test harness still creates HOME/JDK64BIT, # we can recognise that.