Changeset 278 for trunk/openjdk/jdk/test/sun/tools
- Timestamp:
- Mar 26, 2011, 8:39:20 PM (14 years ago)
- Location:
- trunk/openjdk
- Files:
-
- 71 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/openjdk
- Property svn:ignore
-
old new 1 1 build 2 build-product-release
-
-
Property svn:mergeinfo
set to
/branches/vendor/oracle/openjdk6/b22 merged eligible /branches/vendor/oracle/openjdk6/current merged eligible
- Property svn:ignore
-
trunk/openjdk/jdk/test/sun/tools/common/ApplicationSetup.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, 22 # CA 95054 USA or visit www.sun.com if you need additional information or 23 # have any questions. 24 # 25 26 27 # Support function to start and stop a given application 28 29 # Starts a given application as background process, usage: 30 # startApplication <class> [args...] 31 # 32 # Waits for application to print something to indicate it is running 33 # (and initialized). Output is directed to ${TESTCLASSES}/Application.out. 34 # Sets $pid to be the process-id of the application. 35 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 27 # Support functions to start, stop, wait for or kill a given SimpleApplication 28 29 # Starts a given app as background process, usage: 30 # startApplication <class> port-file [args...] 31 # 32 # The following variables are set: 33 # 34 # appJavaPid - application's Java pid 35 # appOtherPid - pid associated with the app other than appJavaPid 36 # appPidList - all pids associated with the app 37 # appOutput - file containing stdout and stderr from the app 38 # 39 # Waits for at least one line of output from the app to indicate 40 # that it is up and running. 41 # 36 42 startApplication() 37 43 { 38 OUTPUTFILE=${TESTCLASSES}/Application.out 39 ${JAVA} $1 $2 $3 $4 $5 $6 > ${OUTPUTFILE} & 40 pid="$!" 41 42 # MKS creates an intermediate shell to launch ${JAVA} so 43 # ${pid} is not the actual pid. We have put in a small sleep 44 # to give the intermediate shell process time to launch the 45 # "java" process. 46 if [ "$OS" = "Windows" ]; then 47 sleep 2 48 realpid=`ps -o pid,ppid,comm|grep ${pid}|grep "java"|cut -c1-6` 49 pid=${realpid} 44 appOutput="${TESTCLASSES}/Application.out" 45 46 ${JAVA} -classpath "${TESTCLASSES}" "$@" > "$appOutput" 2>&1 & 47 appJavaPid="$!" 48 appOtherPid= 49 appPidList="$appJavaPid" 50 51 echo "INFO: waiting for $1 to initialize..." 52 _cnt=0 53 while true; do 54 # if the app doesn't start then the JavaTest/JTREG timeout will 55 # kick in so this isn't really a endless loop 56 sleep 1 57 out=`tail -1 "$appOutput"` 58 if [ -n "$out" ]; then 59 # we got some output from the app so it's running 60 break 61 fi 62 _cnt=`expr $_cnt + 1` 63 echo "INFO: waited $_cnt second(s) ..." 64 done 65 unset _cnt 66 67 if $isWindows; then 68 # Windows requires special handling 69 appOtherPid="$appJavaPid" 70 71 if $isCygwin; then 72 appJavaPid=`ps -p "$appOtherPid" \ 73 | sed -n ' 74 # See if $appOtherPid is in PID column; there are sometimes 75 # non-blanks in column 1 (I and S observed so far) 76 /^.'"${PATTERN_WS}${PATTERN_WS}*${appOtherPid}${PATTERN_WS}"'/{ 77 # strip PID column 78 s/^.'"${PATTERN_WS}${PATTERN_WS}*${appOtherPid}${PATTERN_WS}${PATTERN_WS}"'*// 79 # strip PPID column 80 s/^[1-9][0-9]*'"${PATTERN_WS}${PATTERN_WS}"'*// 81 # strip PGID column 82 s/^[1-9][0-9]*'"${PATTERN_WS}${PATTERN_WS}"'*// 83 # strip everything after WINPID column 84 s/'"${PATTERN_WS}"'.*// 85 p 86 q 87 } 88 '` 89 echo "INFO: Cygwin pid=$appOtherPid maps to Windows pid=$appJavaPid" 90 else 91 # show PID, PPID and COMM columns only 92 appJavaPid=`ps -o pid,ppid,comm \ 93 | sed -n ' 94 # see if appOtherPid is in either PID or PPID columns 95 /'"${PATTERN_WS}${appOtherPid}${PATTERN_WS}"'/{ 96 # see if this is a java command 97 /java'"${PATTERN_EOL}"'/{ 98 # strip leading white space 99 s/^'"${PATTERN_WS}${PATTERN_WS}"'*// 100 # strip everything after the first word 101 s/'"${PATTERN_WS}"'.*// 102 # print the pid and we are done 103 p 104 q 105 } 106 } 107 '` 108 echo "INFO: MKS shell pid=$appOtherPid; Java pid=$appJavaPid" 109 fi 110 111 if [ -z "$appJavaPid" ]; then 112 echo "ERROR: could not find app's Java pid." >&2 113 killApplication 114 exit 2 115 fi 116 appPidList="$appOtherPid $appJavaPid" 50 117 fi 51 52 echo "Waiting for Application to initialize..." 53 attempts=0 54 while true; do 55 sleep 1 56 out=`tail -1 ${OUTPUTFILE}` 57 if [ ! -z "$out" ]; then 58 break 59 fi 60 attempts=`expr $attempts + 1` 61 echo "Waiting $attempts second(s) ..." 62 done 63 64 echo "Application is process $pid" 65 } 66 67 # Stops an application by invoking the given class and argument, usage: 68 # stopApplication <class> <argument> 118 119 echo "INFO: $1 is process $appJavaPid" 120 echo "INFO: $1 output is in $appOutput" 121 } 122 123 124 # Stops a simple application by invoking ShutdownSimpleApplication 125 # class with a specific port-file, usage: 126 # stopApplication port-file 127 # 128 # Note: When this function returns, the SimpleApplication (or a subclass) 129 # may still be running because the application has not yet reached the 130 # shutdown check. 131 # 69 132 stopApplication() 70 133 { 71 $JAVA -classpath "${TESTCLASSES}" $1 $2 72 } 73 134 $JAVA -classpath "${TESTCLASSES}" ShutdownSimpleApplication $1 135 } 136 137 138 # Wait for a simple application to stop running. 139 # 140 waitForApplication() { 141 if [ $isWindows = false ]; then 142 # non-Windows is easy; just one process 143 echo "INFO: waiting for $appJavaPid" 144 set +e 145 wait "$appJavaPid" 146 set -e 147 148 elif $isCygwin; then 149 # Cygwin pid and not the Windows pid 150 echo "INFO: waiting for $appOtherPid" 151 set +e 152 wait "$appOtherPid" 153 set -e 154 155 else # implied isMKS 156 # MKS has intermediate shell and Java process 157 echo "INFO: waiting for $appJavaPid" 158 159 # appJavaPid can be empty if pid search in startApplication() failed 160 if [ -n "$appJavaPid" ]; then 161 # only need to wait for the Java process 162 set +e 163 wait "$appJavaPid" 164 set -e 165 fi 166 fi 167 } 168 169 170 # Kills a simple application by sending a SIGTERM to the appropriate 171 # process(es); on Windows SIGQUIT (-9) is used. 172 # 173 killApplication() 174 { 175 if [ $isWindows = false ]; then 176 # non-Windows is easy; just one process 177 echo "INFO: killing $appJavaPid" 178 set +e 179 kill -TERM "$appJavaPid" # try a polite SIGTERM first 180 sleep 2 181 # send SIGQUIT (-9) just in case SIGTERM didn't do it 182 # but don't show any complaints 183 kill -QUIT "$appJavaPid" > /dev/null 2>&1 184 wait "$appJavaPid" 185 set -e 186 187 elif $isCygwin; then 188 # Cygwin pid and not the Windows pid 189 echo "INFO: killing $appOtherPid" 190 set +e 191 kill -9 "$appOtherPid" 192 wait "$appOtherPid" 193 set -e 194 195 else # implied isMKS 196 # MKS has intermediate shell and Java process 197 echo "INFO: killing $appPidList" 198 set +e 199 kill -9 $appPidList 200 set -e 201 202 # appJavaPid can be empty if pid search in startApplication() failed 203 if [ -n "$appJavaPid" ]; then 204 # only need to wait for the Java process 205 set +e 206 wait "$appJavaPid" 207 set -e 208 fi 209 fi 210 } -
trunk/openjdk/jdk/test/sun/tools/common/CommonSetup.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 26 26 27 # Common setup for tool tests .27 # Common setup for tool tests and other tests that use jtools. 28 28 # Checks that TESTJAVA, TESTSRC, and TESTCLASSES environment variables are set. 29 # Creates the following for use by the tool tests 30 # JAVA java launcher 31 # JSTACK jstack utility 32 # JMAP jmap utility 33 # JINFO jinfo utility 34 # JHAT jhat utility 35 # PS path separator (";" or ":") 36 # OS operating system 29 # 30 # Creates the following constants for use by the caller: 31 # JAVA - java launcher 32 # JHAT - jhat utility 33 # JINFO - jinfo utility 34 # JMAP - jmap utility 35 # JPS - jps utility 36 # JSTACK - jstack utility 37 # OS - operating system name 38 # PATTERN_EOL - grep or sed end-of-line pattern 39 # PATTERN_WS - grep or sed whitespace pattern 40 # PS - path separator (";" or ":") 41 # 42 # Sets the following variables: 43 # 44 # isCygwin - true if environment is Cygwin 45 # isMKS - true if environment is MKS 46 # isLinux - true if OS is Linux 47 # isSolaris - true if OS is Solaris 48 # isWindows - true if OS is Windows 37 49 38 50 39 if [ "${TESTJAVA}" = "" ] 40 then 41 echo "TESTJAVA not set. Test cannot execute. Failed." 51 if [ -z "${TESTJAVA}" ]; then 52 echo "ERROR: TESTJAVA not set. Test cannot execute. Failed." 42 53 exit 1 43 54 fi 44 45 if [ "${TESTSRC}" = "" ] 46 then 47 echo "TESTSRC not set. Test cannot execute. Failed." 55 56 if [ -z "${TESTSRC}" ]; then 57 echo "ERROR: TESTSRC not set. Test cannot execute. Failed." 48 58 exit 1 49 59 fi 50 51 if [ "${TESTCLASSES}" = "" ] 52 then 53 echo "TESTCLASSES not set. Test cannot execute. Failed." 60 61 if [ -z "${TESTCLASSES}" ]; then 62 echo "ERROR: TESTCLASSES not set. Test cannot execute. Failed." 54 63 exit 1 55 64 fi 56 65 66 # only enable these after checking the expected incoming env variables 67 set -eu 68 57 69 JAVA="${TESTJAVA}/bin/java" 70 JHAT="${TESTJAVA}/bin/jhat" 71 JINFO="${TESTJAVA}/bin/jinfo" 72 JMAP="${TESTJAVA}/bin/jmap" 73 JPS="${TESTJAVA}/bin/jps" 58 74 JSTACK="${TESTJAVA}/bin/jstack" 59 JMAP="${TESTJAVA}/bin/jmap" 60 JINFO="${TESTJAVA}/bin/jinfo" 61 JHAT="${TESTJAVA}/bin/jhat" 75 76 isCygwin=false 77 isMKS=false 78 isLinux=false 79 isSolaris=false 80 isUnknownOS=false 81 isWindows=false 62 82 63 83 OS=`uname -s` 64 84 85 # start with some UNIX like defaults 86 PATTERN_EOL='$' 87 # blank and tab 88 PATTERN_WS='[ ]' 89 PS=":" 90 65 91 case "$OS" in 92 CYGWIN* ) 93 OS="Windows" 94 PATTERN_EOL='[ 95 ]*$' 96 # blank and tab 97 PATTERN_WS='[ \t]' 98 isCygwin=true 99 isWindows=true 100 ;; 101 Linux ) 102 OS="Linux" 103 isLinux=true 104 ;; 105 SunOS ) 106 OS="Solaris" 107 isSolaris=true 108 ;; 66 109 Windows* ) 110 OS="Windows" 111 PATTERN_EOL='[ 112 ]*$' 67 113 PS=";" 68 OS="Windows"114 isWindows=true 69 115 ;; 70 116 * ) 71 PS=":"117 isUnknownOS=true 72 118 ;; 73 119 esac 74 -
trunk/openjdk/jdk/test/sun/tools/common/ShutdownSimpleApplication.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 24 24 /* 25 * Used to shutdown SimpleApplication (or a subclass). The argument to 26 * this class is the name of a file that contains the TCP port number 27 * on which SimpleApplication (or a subclass) is listening. 25 28 * 26 * 27 * Used to shutdown SimpleApplication. The argument to this class is28 * the TCP port number where SimpleApplication is listening.29 * Note: When this program returns, the SimpleApplication (or a subclass) 30 * may still be running because the application has not yet reached the 31 * shutdown check. 29 32 */ 30 33 import java.net.Socket; … … 36 39 public static void main(String args[]) throws Exception { 37 40 41 if (args.length != 1) { 42 throw new RuntimeException("Usage: ShutdownSimpleApplication" + 43 " port-file"); 44 } 45 38 46 // read the (TCP) port number from the given file 39 47 … … 43 51 int n = fis.read(b); 44 52 if (n < 1) { 45 throw new RuntimeException("Empty file");53 throw new RuntimeException("Empty port-file"); 46 54 } 47 55 fis.close(); 48 56 49 57 String str = new String(b, 0, n, "UTF-8"); 50 System.out.println(" Port number of application is: " + str);58 System.out.println("INFO: Port number of SimpleApplication: " + str); 51 59 int port = Integer.parseInt(str); 52 60 53 61 // Now connect to the port (which will shutdown application) 54 62 55 System.out.println("Connecting to port " + port + 56 " to shutdown Application ..."); 63 System.out.println("INFO: Connecting to port " + port + 64 " to shutdown SimpleApplication ..."); 65 System.out.flush(); 57 66 58 67 Socket s = new Socket(); 59 68 s.connect( new InetSocketAddress(port) ); 60 69 s.close(); 70 71 System.out.println("INFO: done connecting to SimpleApplication."); 72 System.out.flush(); 73 74 System.exit(0); 61 75 } 62 76 } -
trunk/openjdk/jdk/test/sun/tools/common/SimpleApplication.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 24 24 /* 25 * A simple application used by unit tests. The first argument to this 26 * class is the name of a file to which a TCP port number can be written. 25 27 * 26 * 27 * A simple application used for tool unit tests. It does nothing else28 * bind to a TCP port and wait for a shutdown message.28 * By default, this class does nothing other than bind to a TCP port, 29 * write the TCP port number to a file, and wait for an incoming connection 30 * in order to complete the application shutdown protocol. 29 31 */ 30 32 import java.net.Socket; … … 34 36 35 37 public class SimpleApplication { 36 public static void main(String args[]) throws Exception { 38 private static SimpleApplication myApp; // simple app or a subclass 39 private static String myAppName; // simple app name 40 private static int myPort; // coordination port # 41 private static ServerSocket mySS; // coordination socket 42 43 // protected so a subclass can extend it; not public so creation is 44 // limited. 45 protected SimpleApplication() { 46 // save simple app (or subclass) name for messages 47 myAppName = getClass().getName(); 48 } 49 50 // return the simple application (or a subclass) 51 final public static SimpleApplication getMyApp() { 52 return myApp; 53 } 54 55 // set the simple application (for use by a subclass) 56 final public static void setMyApp(SimpleApplication _myApp) { 57 myApp = _myApp; 58 } 59 60 // execute the application finish protocol 61 final public void doMyAppFinish(String[] args) throws Exception { 62 System.out.println("INFO: " + myAppName + " is waiting on port: " + 63 myPort); 64 System.out.flush(); 65 66 // wait for test harness to connect 67 Socket s = mySS.accept(); 68 s.close(); 69 mySS.close(); 70 71 System.out.println("INFO: " + myAppName + " is shutting down."); 72 System.out.flush(); 73 } 74 75 // execute the application start protocol 76 final public void doMyAppStart(String[] args) throws Exception { 77 if (args.length < 1) { 78 throw new RuntimeException("Usage: " + myAppName + 79 " port-file [arg(s)]"); 80 } 81 37 82 // bind to a random port 38 ServerSocket ss= new ServerSocket(0);39 int port = ss.getLocalPort();83 mySS = new ServerSocket(0); 84 myPort = mySS.getLocalPort(); 40 85 41 86 // Write the port number to the given file 42 87 File f = new File(args[0]); 43 88 FileOutputStream fos = new FileOutputStream(f); 44 fos.write( Integer.toString( port).getBytes("UTF-8") );89 fos.write( Integer.toString(myPort).getBytes("UTF-8") ); 45 90 fos.close(); 46 91 47 System.out.println("Application waiting on port: " + port); 92 System.out.println("INFO: " + myAppName + " created socket on port: " + 93 myPort); 94 System.out.flush(); 95 } 96 97 // execute the app work (subclass can override this) 98 public void doMyAppWork(String[] args) throws Exception { 99 } 100 101 public static void main(String[] args) throws Exception { 102 if (myApp == null) { 103 // create myApp since a subclass hasn't done so 104 myApp = new SimpleApplication(); 105 } 106 107 myApp.doMyAppStart(args); // do the app start protocol 108 109 System.out.println("INFO: " + myAppName + " is calling doMyAppWork()"); 110 System.out.flush(); 111 myApp.doMyAppWork(args); // do the app work 112 System.out.println("INFO: " + myAppName + " returned from" + 113 " doMyAppWork()"); 48 114 System.out.flush(); 49 115 50 // wait for test harness to connect 51 Socket s = ss.accept(); 52 s.close(); 53 ss.close(); 116 myApp.doMyAppFinish(args); // do the app finish protocol 54 117 55 System. out.println("Application shutdown.");118 System.exit(0); 56 119 } 57 120 } -
trunk/openjdk/jdk/test/sun/tools/jconsole/ImmutableResourceTest.java
r2 r278 1 1 /* 2 * Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jconsole/ImmutableResourceTest.sh
r2 r278 1 1 # 2 # Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jconsole/ResourceCheckTest.java
r2 r278 1 1 /* 2 * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jconsole/ResourceCheckTest.sh
r2 r278 1 1 # 2 # Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jhat/HatHeapDump1Test.java
r2 r278 1 1 /* 2 * Copyright 2005-2007 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, 2007, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jhat/HatRun.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jhat/HelloWorld.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jhat/ParseTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 33 33 34 34 . ${TESTSRC}/../common/CommonSetup.sh 35 . ${TESTSRC}/../common/ApplicationSetup.sh 35 36 # all return statuses are checked in this test 37 set +e 38 39 failed=0 36 40 37 41 DUMPFILE="minimal.bin" -
trunk/openjdk/jdk/test/sun/tools/jinfo/Basic.sh
r2 r278 2 2 3 3 # 4 # Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 36 36 . ${TESTSRC}/../common/ApplicationSetup.sh 37 37 38 # Start application (send output to shutdown.port)38 # Start application and use PORTFILE for coordination 39 39 PORTFILE="${TESTCLASSES}"/shutdown.port 40 startApplication \ 41 -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}" 40 startApplication SimpleApplication "${PORTFILE}" 41 42 # all return statuses are checked in this test 43 set +e 42 44 43 45 failed=0 44 46 45 if [ "$OS" != "Windows"]; then47 if [ $isWindows = false ]; then 46 48 # -sysprops option 47 ${JINFO} -sysprops $ pid49 ${JINFO} -sysprops $appJavaPid 48 50 if [ $? != 0 ]; then failed=1; fi 49 51 50 52 # -flags option 51 ${JINFO} -flags $ pid53 ${JINFO} -flags $appJavaPid 52 54 if [ $? != 0 ]; then failed=1; fi 53 55 54 56 # no option 55 ${JINFO} $ pid57 ${JINFO} $appJavaPid 56 58 if [ $? != 0 ]; then failed=1; fi 57 59 … … 60 62 61 63 # -flag option 62 ${JINFO} -flag +PrintGC $ pid64 ${JINFO} -flag +PrintGC $appJavaPid 63 65 if [ $? != 0 ]; then failed=1; fi 64 66 65 ${JINFO} -flag -PrintGC $ pid67 ${JINFO} -flag -PrintGC $appJavaPid 66 68 if [ $? != 0 ]; then failed=1; fi 67 69 68 ${JINFO} -flag PrintGC $ pid70 ${JINFO} -flag PrintGC $appJavaPid 69 71 if [ $? != 0 ]; then failed=1; fi 70 72 71 if [ "$OS" = "SunOS" ]; then73 if $isSolaris; then 72 74 73 ${JINFO} -flag +ExtendedDTraceProbes $ pid75 ${JINFO} -flag +ExtendedDTraceProbes $appJavaPid 74 76 if [ $? != 0 ]; then failed=1; fi 75 77 76 ${JINFO} -flag -ExtendedDTraceProbes $ pid78 ${JINFO} -flag -ExtendedDTraceProbes $appJavaPid 77 79 if [ $? != 0 ]; then failed=1; fi 78 80 79 ${JINFO} -flag ExtendedDTraceProbes $ pid81 ${JINFO} -flag ExtendedDTraceProbes $appJavaPid 80 82 if [ $? != 0 ]; then failed=1; fi 81 83 82 84 fi 83 85 84 stopApplication ShutdownSimpleApplication "${PORTFILE}" 86 set -e 87 88 stopApplication "${PORTFILE}" 89 waitForApplication 85 90 86 91 exit $failed 87 -
trunk/openjdk/jdk/test/sun/tools/jmap/Basic.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 36 36 . ${TESTSRC}/../common/ApplicationSetup.sh 37 37 38 # Start application (send output to shutdown.port)38 # Start application and use PORTFILE for coordination 39 39 PORTFILE="${TESTCLASSES}"/shutdown.port 40 startApplication \ 41 -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}" 40 startApplication SimpleApplication "${PORTFILE}" 41 42 # all return statuses are checked in this test 43 set +e 42 44 43 45 failed=0 44 46 45 47 # -histo[:live] option 46 ${JMAP} -histo $ pid48 ${JMAP} -histo $appJavaPid 47 49 if [ $? != 0 ]; then failed=1; fi 48 50 49 ${JMAP} -histo:live $ pid51 ${JMAP} -histo:live $appJavaPid 50 52 if [ $? != 0 ]; then failed=1; fi 51 53 52 54 # -dump option 53 p=`expr $pid` 54 DUMPFILE="java_pid${p}.hprof" 55 ${JMAP} -dump:format=b,file=${DUMPFILE} $pid 55 DUMPFILE="java_pid${appJavaPid}.hprof" 56 ${JMAP} -dump:format=b,file=${DUMPFILE} $appJavaPid 56 57 if [ $? != 0 ]; then failed=1; fi 57 58 … … 64 65 65 66 # -dump:live option 66 ${JMAP} -dump:live,format=b,file=${DUMPFILE} $ pid67 ${JMAP} -dump:live,format=b,file=${DUMPFILE} $appJavaPid 67 68 if [ $? != 0 ]; then failed=1; fi 68 69 … … 72 73 73 74 # dump file is large so remove it 74 rm ${DUMPFILE}75 rm -f ${DUMPFILE} 75 76 76 stopApplication ShutdownSimpleApplication "${PORTFILE}" 77 set -e 78 79 stopApplication "${PORTFILE}" 80 waitForApplication 77 81 78 82 exit $failed 79 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-Defaults.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-V_2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-Vm_2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvm.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvml.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-Vvml_2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-help.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-l_1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-l_2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-lm.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-m.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-m_2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-q.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-v_1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jps/jps-vm_1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/CheckEngine.java
r2 r278 1 1 /* 2 * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 * accompanied this code). 23 23 * … … 26 26 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 27 27 * 28 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,29 * CA 95054 USA or visit www.sun.com if you need additional information or30 * have anyquestions.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 31 */ 32 32 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/Hello.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/common.sh
r2 r278 1 1 # 2 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 … … 44 44 PS=";" 45 45 FS="\\" 46 # MKS diff deals with trailing CRs automatically 47 golden_diff="diff" 48 ;; 49 CYGWIN*) 50 PS=":" 51 FS="/" 52 # Cygwin diff needs to be told to ignore trailing CRs 53 golden_diff="diff --strip-trailing-cr" 46 54 ;; 47 55 *) 48 56 PS=":" 49 57 FS="/" 58 # Assume any other platform doesn't have the trailing CR stuff 59 golden_diff="diff" 50 60 ;; 51 61 esac -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-DTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-argsTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-cpTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-eTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 43 43 ${JRUNSCRIPT} -e "println('hello')" > jrunscript-eTest.out 2>&1 44 44 45 diff jrunscript-eTest.out ${TESTSRC}/dash-e.out45 $golden_diff jrunscript-eTest.out ${TESTSRC}/dash-e.out 46 46 if [ $? != 0 ] 47 47 then … … 56 56 ${JRUNSCRIPT} -l js -e "println('hello')" > jrunscript-eTest.out 2>&1 57 57 58 diff jrunscript-eTest.out ${TESTSRC}/dash-e.out58 $golden_diff jrunscript-eTest.out ${TESTSRC}/dash-e.out 59 59 if [ $? != 0 ] 60 60 then -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-fTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 43 43 ${JRUNSCRIPT} -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1 44 44 45 diff jrunscript-fTest.out ${TESTSRC}/dash-f.out45 $golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out 46 46 if [ $? != 0 ] 47 47 then … … 57 57 ${JRUNSCRIPT} -l js -f ${TESTSRC}/hello.js > jrunscript-fTest.out 2>&1 58 58 59 diff jrunscript-fTest.out ${TESTSRC}/dash-f.out59 $golden_diff jrunscript-fTest.out ${TESTSRC}/dash-f.out 60 60 if [ $? != 0 ] 61 61 then -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscript-helpTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 -
trunk/openjdk/jdk/test/sun/tools/jrunscript/jrunscriptTest.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 50 50 EOF 51 51 52 diff jrunscriptTest.out ${TESTSRC}/repl.out52 $golden_diff jrunscriptTest.out ${TESTSRC}/repl.out 53 53 if [ $? != 0 ] 54 54 then … … 68 68 EOF 69 69 70 diff jrunscriptTest.out ${TESTSRC}/repl.out70 $golden_diff jrunscriptTest.out ${TESTSRC}/repl.out 71 71 if [ $? != 0 ] 72 72 then -
trunk/openjdk/jdk/test/sun/tools/jstack/Basic.sh
r2 r278 2 2 3 3 # 4 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 … … 36 36 . ${TESTSRC}/../common/ApplicationSetup.sh 37 37 38 # Start application (send output to shutdown.port)38 # Start application and use PORTFILE for coordination 39 39 PORTFILE="${TESTCLASSES}"/shutdown.port 40 startApplication \ 41 -classpath "${TESTCLASSES}" SimpleApplication "${PORTFILE}" 40 startApplication SimpleApplication "${PORTFILE}" 41 42 # all return statuses are checked in this test 43 set +e 42 44 43 45 failed=0 44 46 45 47 # normal 46 $JSTACK $ pid 2>&148 $JSTACK $appJavaPid 2>&1 47 49 if [ $? != 0 ]; then failed=1; fi 48 50 49 51 # long 50 $JSTACK -l $ pid 2>&152 $JSTACK -l $appJavaPid 2>&1 51 53 if [ $? != 0 ]; then failed=1; fi 52 54 53 stopApplication ShutdownSimpleApplication "${PORTFILE}" 55 set -e 56 57 stopApplication "${PORTFILE}" 58 waitForApplication 54 59 55 60 exit $failed 56 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatClassOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatCompilerOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatFileURITest1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcCapacityOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcCauseOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcNewCapacityOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcNewOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOldCapacityOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOldOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatGcPermCapacityOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatHelp.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts3.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatLineCounts4.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatOptions1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatPrintCompilationOutput1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatSnap1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatSnap2.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstat/jstatTimeStamp1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdDefaults.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdExternalRegistry.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdPort.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdServerName.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/jstatd/jstatdUsage1.sh
r2 r278 1 1 # 2 # Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23 -
trunk/openjdk/jdk/test/sun/tools/native2ascii/Native2AsciiTests.sh
r2 r278 2 2 3 3 # 4 # Copyright 2002-2005 Sun Microsystems, Inc. All Rights Reserved.4 # Copyright (c) 2002, 2005, Oracle and/or its affiliates. All rights reserved. 5 5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6 6 # … … 19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 20 # 21 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,22 # CA 95054 USA or visit www.sun.com if you need additional information or23 # have anyquestions.21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 24 # 25 25 -
trunk/openjdk/jdk/test/sun/tools/native2ascii/NativeErrors.java
r2 r278 1 1 /* 2 * Copyright 1998-1999 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 1998, 1999, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/native2ascii/resources/ImmutableResourceTest.java
r2 r278 1 1 /* 2 * Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 * … … 17 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 * 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 * CA 95054 USA or visit www.sun.com if you need additional information or21 * have anyquestions.19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 22 */ 23 23 -
trunk/openjdk/jdk/test/sun/tools/native2ascii/resources/ImmutableResourceTest.sh
r2 r278 1 1 # 2 # Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.2 # Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. 3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 4 # … … 17 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 18 # 19 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,20 # CA 95054 USA or visit www.sun.com if you need additional information or21 # have anyquestions.19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 # or visit www.oracle.com if you need additional information or have any 21 # questions. 22 22 # 23 23
Note:
See TracChangeset
for help on using the changeset viewer.