test/tools/launcher/MultipleJRE.sh

Print this page




  20 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  21 # version 2 for more details (a copy is included in the LICENSE file that
  22 # accompanied this code).
  23 #
  24 # You should have received a copy of the GNU General Public License version
  25 # 2 along with this work; if not, write to the Free Software Foundation,
  26 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  27 #
  28 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  29 # or visit www.oracle.com if you need additional information or have any
  30 # questions.
  31 #
  32 
  33 # Verify directory context variables are set
  34 if [ "${TESTJAVA}" = "" ]
  35 then
  36   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  37   exit 1
  38 fi
  39 




  40 if [ "${TESTSRC}" = "" ]
  41 then
  42   echo "TESTSRC not set.  Test cannot execute.  Failed."
  43   exit 1
  44 fi
  45 
  46 if [ "${TESTCLASSES}" = "" ]
  47 then
  48   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  49   exit 1
  50 fi
  51 
  52 JAVAEXE="$TESTJAVA/bin/java ${TESTVMOPTS}"
  53 JAVA="$TESTJAVA/bin/java ${TESTVMOPTS} -classpath $TESTCLASSES"
  54 JAR="$TESTJAVA/bin/jar"
  55 OS=`uname -s`;
  56 
  57 #
  58 # Tests whether we are on windows (true) or not.
  59 #
  60 IsWindows() {
  61     case "$OS" in
  62         Windows* | CYGWIN* )
  63             printf "true"
  64         ;;
  65         * )
  66             printf "false"
  67         ;;
  68     esac
  69 }
  70 
  71 #
  72 # Shell routine to test for the proper rejection of syntactically incorrect
  73 # version specifications.
  74 #




  20 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  21 # version 2 for more details (a copy is included in the LICENSE file that
  22 # accompanied this code).
  23 #
  24 # You should have received a copy of the GNU General Public License version
  25 # 2 along with this work; if not, write to the Free Software Foundation,
  26 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  27 #
  28 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  29 # or visit www.oracle.com if you need additional information or have any
  30 # questions.
  31 #
  32 
  33 # Verify directory context variables are set
  34 if [ "${TESTJAVA}" = "" ]
  35 then
  36   echo "TESTJAVA not set.  Test cannot execute.  Failed."
  37   exit 1
  38 fi
  39 
  40 if [ "${COMPILEJAVA}" = "" ]; then
  41   COMPILEJAVA="${TESTJAVA}"
  42 fi
  43 
  44 if [ "${TESTSRC}" = "" ]
  45 then
  46   echo "TESTSRC not set.  Test cannot execute.  Failed."
  47   exit 1
  48 fi
  49 
  50 if [ "${TESTCLASSES}" = "" ]
  51 then
  52   echo "TESTCLASSES not set.  Test cannot execute.  Failed."
  53   exit 1
  54 fi
  55 
  56 JAVAEXE="$TESTJAVA/bin/java ${TESTVMOPTS}"
  57 JAVA="$TESTJAVA/bin/java ${TESTVMOPTS} -classpath $TESTCLASSES"
  58 JAR="$COMPILEJAVA/bin/jar ${TESTTOOLVMOPTS}"
  59 OS=`uname -s`;
  60 
  61 #
  62 # Tests whether we are on windows (true) or not.
  63 #
  64 IsWindows() {
  65     case "$OS" in
  66         Windows* | CYGWIN* )
  67             printf "true"
  68         ;;
  69         * )
  70             printf "false"
  71         ;;
  72     esac
  73 }
  74 
  75 #
  76 # Shell routine to test for the proper rejection of syntactically incorrect
  77 # version specifications.
  78 #