comparison test/runtime/7162488/Test7162488.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 f3a4ee95783b
children de6a9e811145
comparison
equal deleted inserted replaced
8830:7ca101eef24a 8831:04d6d4322c6a
27 # @summary VM not printing unknown -XX options 27 # @summary VM not printing unknown -XX options
28 # @run shell Test7162488.sh 28 # @run shell Test7162488.sh
29 # 29 #
30 30
31 if [ "${TESTSRC}" = "" ] 31 if [ "${TESTSRC}" = "" ]
32 then TESTSRC=. 32 then
33 TESTSRC=${PWD}
34 echo "TESTSRC not set. Using "${TESTSRC}" as default"
33 fi 35 fi
34 36 echo "TESTSRC=${TESTSRC}"
35 if [ "${TESTJAVA}" = "" ] 37 ## Adding common setup Variables for running shell tests.
36 then 38 . ${TESTSRC}/../../test_env.sh
37 PARENT=`dirname \`which java\``
38 TESTJAVA=`dirname ${PARENT}`
39 printf "TESTJAVA not set, selecting " ${TESTJAVA}
40 printf " If this is incorrect, try setting the variable manually.\n"
41 fi
42
43 # set platform-dependent variables
44 OS=`uname -s`
45 case "$OS" in
46 Windows_* )
47 FS="\\"
48 ;;
49 * )
50 FS="/"
51 ;;
52 esac
53 39
54 JAVA=${TESTJAVA}${FS}bin${FS}java 40 JAVA=${TESTJAVA}${FS}bin${FS}java
55 41
56 # 42 #
57 # Just run with an option we are confident will not be recognized, 43 # Just run with an option we are confident will not be recognized,