jdk/test/com/sun/jdi/PrivateTransportTest.sh
author ykantser
Tue, 01 Jul 2014 21:23:54 +0200
changeset 25217 2d687ea8608a
parent 23057 c67ddf10398e
permissions -rw-r--r--
8048892: TEST_BUG: shell script tests need to be change to not use retired @debuggeeVMOptions mechanism Reviewed-by: sla, jbachorik
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
#!/bin/ksh -p
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
#
20201
50cc2d25a60b 8020552: [launcher] changes to support removal of Solaris 32-bit distribution
ksrini
parents: 14342
diff changeset
     4
# Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
# This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
# under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
# published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
# accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
#
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
# questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
#   @test       PrivateTransportTest.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
#   @bug        6225664 6220618
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
#   @summary    Test for when private transport library outside jdk
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
#   @author     Kelly O'Hair
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
#   @run compile -g HelloWorld.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
#   @run shell PrivateTransportTest.sh
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
# Beginning of subroutines:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
status=1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
#Call this from anywhere to fail the test with an error message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
# usage: fail "reason why the test failed"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
fail() 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 { echo "The test failed :-("
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
   echo "$*" 1>&2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
   echo "exit status was $status"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
   exit $status
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 } #end of fail()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
#Call this from anywhere to pass the test with a message
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
# usage: pass "reason why the test passed if applicable"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
pass() 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 { echo "The test passed!!!"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
   echo "$*" 1>&2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
   exit 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 } #end of pass()
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
# end of subroutines
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
# The beginning of the script proper
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
TARGETCLASS="HelloWorld"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
if [ -z "${TESTJAVA}" ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
   # TESTJAVA is not set, so the test is running stand-alone.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
   # TESTJAVA holds the path to the root directory of the build of the JDK
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
   # to be tested.  That is, any java files run explicitly in this shell
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
   # should use TESTJAVA in the path to the java interpreter.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
   # So, we'll set this to the JDK spec'd on the command line.  If none
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
   # is given on the command line, tell the user that and use a default.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
   # THIS IS THE JDK BEING TESTED.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
   if [ -n "$1" ] ; then
23057
c67ddf10398e 8036132: Tab characters in test/com/sun/jdi files
sla
parents: 22602
diff changeset
    70
         TESTJAVA=$1
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
      else
23057
c67ddf10398e 8036132: Tab characters in test/com/sun/jdi files
sla
parents: 22602
diff changeset
    72
         TESTJAVA=$JAVA_HOME
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
   fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
   TESTSRC=.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
   TESTCLASSES=.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
   #Deal with .class files:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
   ${TESTJAVA}/bin/javac -d ${TESTCLASSES} \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
            -classpath "${TESTCLASSES}" -g \
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
            ${TARGETCLASS}.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
echo "JDK under test is: $TESTJAVA"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
# Get flags being sent to debuggee
25217
2d687ea8608a 8048892: TEST_BUG: shell script tests need to be change to not use retired @debuggeeVMOptions mechanism
ykantser
parents: 23057
diff changeset
    85
DEBUGGEEFLAGS=$TESTVMOPTS $TESTJAVAOPTS
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
# Figure out what the libarch path is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
os=`uname -s`
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
jreloc=${TESTJAVA}/jre
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
if [ ! -d ${jreloc} ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    jreloc=${TESTJAVA}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
libdir=${TESTCLASSES}
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
9018
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
    97
is_windows=false
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
    98
is_cygwin=false
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
case `uname -s` in 
22602
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   100
  SunOS|Linux|AIX)
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    xx=`find ${jreloc}/lib -name libdt_socket.so`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
    libloc=`dirname ${xx}`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    ;;
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   104
  Darwin)
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   105
    libloc=${jreloc}/lib
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   106
    ;;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
  Windows*)
9018
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   108
    is_windows=true
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    libloc=${jreloc}/bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    sep=';'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
  CYGWIN*)
9018
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   113
    is_windows=true
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   114
    is_cygwin=true
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    libloc=${jreloc}/bin
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    sep=':'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
    # This is going onto PATH and cygwin needs the form
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    # /cygdrive/j/x..... for that.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    libdir=`cygpath -u "$TESTCLASSES"`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
  *)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    echo "FAILURE:  Unknown uname -s: " `uname -s`
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
    ;;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
esac
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
# Create private transport library
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
echo "Setup private transport library by copying an existing one and renaming"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
private_transport=private_dt_socket
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
if [ -f ${libloc}/dt_socket.dll ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    fullpath=${libdir}/${private_transport}.dll
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
    rm -f ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    echo cp ${libloc}/dt_socket.dll ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    cp ${libloc}/dt_socket.dll ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    # make sure we can find libraries in current directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    PATH="${PATH}${sep}${libdir}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    export PATH
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
    echo PATH=${PATH}
12047
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   140
elif [ -f ${libloc}/libdt_socket.dylib ]; then
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   141
    fullpath=${libdir}/lib${private_transport}.dylib
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   142
    rm -f ${fullpath}
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   143
    echo cp ${libloc}/libdt_socket.dylib ${fullpath}
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   144
    cp ${libloc}/libdt_socket.dylib ${fullpath}
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   145
    # make sure we can find libraries in current directory
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   146
    if [ "${LD_LIBRARY_PATH}" = "" ] ; then
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   147
        LD_LIBRARY_PATH=${libdir}
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   148
    else
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   149
        LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libdir}
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   150
    fi
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   151
    export LD_LIBRARY_PATH
320a714614e9 7113349: Initial changeset for Macosx port to jdk
michaelm
parents: 9018
diff changeset
   152
    echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
elif [ -f ${libloc}/libdt_socket.so ] ; then
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
    fullpath=${libdir}/lib${private_transport}.so
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    rm -f ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    echo cp ${libloc}/libdt_socket.so ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
    cp ${libloc}/libdt_socket.so ${fullpath}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
    # make sure we can find libraries in current directory
22602
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   159
    if [ "$os" = "AIX" ] ; then
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   160
        if [ "${LIBPATH}" = "" ] ; then
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   161
            LIBPATH=${libdir}
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   162
        else
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   163
            LIBPATH=${LIBPATH}:${libdir}
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   164
        fi
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   165
        export LIBPATH
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   166
        echo LIBPATH=${LIBPATH}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
    else
22602
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   168
        if [ "${LD_LIBRARY_PATH}" = "" ] ; then
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   169
            LD_LIBRARY_PATH=${libdir}
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   170
        else
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   171
            LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${libdir}
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   172
        fi
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   173
        export LD_LIBRARY_PATH
0d9a07b0d7e9 8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents: 20201
diff changeset
   174
        echo LD_LIBRARY_PATH=${LD_LIBRARY_PATH}
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
else 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    echo "cannot find dt_socket in ${libloc} for ${private_transport}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    fail "cannot find dt_socket in ${libloc} for ${private_transport}"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
CP="-classpath \"${TESTCLASSES}\""
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
#
9018
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   184
if [ "$is_windows" = "true" ]; then
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   185
    if [ "$is_cygwin" = "true" ]; then
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   186
        win_fullpath=`cygpath -m "$fullpath" \
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   187
            | sed -e 's#/#\\\\\\\\#g' -e 's/\.dll//'`
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   188
    else
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   189
        win_fullpath=`echo "$fullpath" \
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   190
            | sed -e 's#/#\\\\\\\\#g' -e 's/\.dll//'`
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   191
    fi
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   192
    DEBUGGEEFLAGS="$DEBUGGEEFLAGS -agentlib:jdwp=transport=${win_fullpath},server=y,suspend=n"
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   193
else
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   194
    DEBUGGEEFLAGS="$DEBUGGEEFLAGS -agentlib:jdwp=transport=${private_transport},server=y,suspend=n"
29184ade5361 7030400: 3/4 PrivateTransportTest.sh needs adjustment to work with 7003964
dcubed
parents: 5506
diff changeset
   195
fi
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
               
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
echo ${TESTJAVA}/bin/java ${DEBUGGEEFLAGS} ${CP} ${TARGETCLASS}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
eval ${TESTJAVA}/bin/java ${DEBUGGEEFLAGS} ${CP} ${TARGETCLASS}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
status=$?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
echo "test status for ${DEBUGGERFLAGS} was: $status"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
if [ $status -ne 0 ] ; then 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
    fail "unspecified test failure"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
    exit 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
pass "found private transport library"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
exit 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208