3322N/A# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. 3322N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3322N/A# This code is free software; you can redistribute it and/or modify it 3322N/A# under the terms of the GNU General Public License version 2 only, as 3322N/A# published by the Free Software Foundation. 3322N/A# This code is distributed in the hope that it will be useful, but WITHOUT 3322N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3322N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3322N/A# version 2 for more details (a copy is included in the LICENSE file that 3322N/A# You should have received a copy of the GNU General Public License version 3322N/A# 2 along with this work; if not, write to the Free Software Foundation, 3322N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3322N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3322N/A# @summary Test for when private transport library outside jdk 3322N/A#Call this from anywhere to fail the test with an error message 3322N/A# usage: fail "reason why the test failed" 3322N/A { echo "The test failed :-(" 3322N/A#Call this from anywhere to pass the test with a message 3322N/A# usage: pass "reason why the test passed if applicable" 3322N/A { echo "The test passed!!!" 3322N/A# The beginning of the script proper 3322N/Aif [ -z
"${TESTJAVA}" ] ;
then 3322N/A # TESTJAVA is not set, so the test is running stand-alone. 3322N/A # TESTJAVA holds the path to the root directory of the build of the JDK 3322N/A # to be tested. That is, any java files run explicitly in this shell 3322N/A # should use TESTJAVA in the path to the java interpreter. 3322N/A # So, we'll set this to the JDK spec'd on the command line. If none 3322N/A # is given on the command line, tell the user that and use a default. # THIS IS THE JDK BEING TESTED. # Get flags being sent to debuggee # Figure out what the libarch path is if [
"${d64}" !=
"" ] ;
then if [
"${d64}" !=
"" ] ;
then echo "FAILURE: Unknown uname -p: " `uname -p` # This is going onto PATH and cygwin needs the form # /cygdrive/j/x..... for that. echo "FAILURE: Unknown uname -s: " `uname -s` # Create private transport library echo "Setup private transport library by copying an existing one and renaming" # make sure we can find libraries in current directory PATH=
"${PATH}${sep}${libdir}" # make sure we can find libraries in current directory if [
"${LD_LIBRARY_PATH}" =
"" ] ;
then # make sure we can find libraries in current directory if [
"${LD_LIBRARY_PATH}" =
"" ] ;
then echo "cannot find dt_socket in ${libloc} for ${private_transport}" fail "cannot find dt_socket in ${libloc} for ${private_transport}" CP=
"-classpath \"${TESTCLASSES}\"" | sed -e 's#/#\\\\\\\\#g' -e 's/\.dll//'` | sed -e 's#/#\\\\\\\\#g' -e 's/\.dll//'` echo "test status for ${DEBUGGERFLAGS} was: $status" fail "unspecified test failure" pass "found private transport library"