comparison test/runtime/7110720/Test7110720.sh @ 8831:04d6d4322c6a

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
author collins
date Wed, 27 Mar 2013 09:49:51 -0700
parents 83b6305a5638
children de6a9e811145
comparison
equal deleted inserted replaced
8830:7ca101eef24a 8831:04d6d4322c6a
10 # @summary improve VM configuration file loading 10 # @summary improve VM configuration file loading
11 # @run shell Test7110720.sh 11 # @run shell Test7110720.sh
12 # 12 #
13 13
14 if [ "${TESTSRC}" = "" ] 14 if [ "${TESTSRC}" = "" ]
15 then TESTSRC=. 15 then
16 TESTSRC=${PWD}
17 echo "TESTSRC not set. Using "${TESTSRC}" as default"
16 fi 18 fi
17 19 echo "TESTSRC=${TESTSRC}"
18 if [ "${TESTJAVA}" = "" ] 20 ## Adding common setup Variables for running shell tests.
19 then 21 . ${TESTSRC}/../../test_env.sh
20 PARENT=`dirname \`which java\``
21 TESTJAVA=`dirname ${PARENT}`
22 echo "TESTJAVA not set, selecting " ${TESTJAVA}
23 echo "If this is incorrect, try setting the variable manually."
24 fi
25
26 if [ "${TESTCLASSES}" = "" ]
27 then
28 echo "TESTCLASSES not set. Test cannot execute. Failed."
29 exit 1
30 fi
31 22
32 # Jtreg sets TESTVMOPTS which may include -d64 which is 23 # Jtreg sets TESTVMOPTS which may include -d64 which is
33 # required to test a 64-bit JVM on some platforms. 24 # required to test a 64-bit JVM on some platforms.
34 # If another test harness still creates HOME/JDK64BIT, 25 # If another test harness still creates HOME/JDK64BIT,
35 # we can recognise that. 26 # we can recognise that.