equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
3 # |
3 # |
4 # Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved. |
4 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 # |
6 # |
7 # This code is free software; you can redistribute it and/or modify it |
7 # This code is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License version 2 only, as |
8 # under the terms of the GNU General Public License version 2 only, as |
9 # published by the Free Software Foundation. |
9 # published by the Free Software Foundation. |
41 # |
41 # |
42 startApplication() |
42 startApplication() |
43 { |
43 { |
44 appOutput="${TESTCLASSES}/Application.out" |
44 appOutput="${TESTCLASSES}/Application.out" |
45 |
45 |
46 ${JAVA} -XX:+UsePerfData -classpath "${TESTCLASSES}" "$@" > "$appOutput" 2>&1 & |
46 ${JAVA} -XX:+UsePerfData -classpath "${TESTCLASSPATH:-${TESTCLASSES}}" "$@" > "$appOutput" 2>&1 & |
47 appJavaPid="$!" |
47 appJavaPid="$!" |
48 appOtherPid= |
48 appOtherPid= |
49 appPidList="$appJavaPid" |
49 appPidList="$appJavaPid" |
50 |
50 |
51 echo "INFO: waiting for $1 to initialize..." |
51 echo "INFO: waiting for $1 to initialize..." |
129 # may still be running because the application has not yet reached the |
129 # may still be running because the application has not yet reached the |
130 # shutdown check. |
130 # shutdown check. |
131 # |
131 # |
132 stopApplication() |
132 stopApplication() |
133 { |
133 { |
134 $JAVA -XX:+UsePerfData -classpath "${TESTCLASSES}" ShutdownSimpleApplication $1 |
134 $JAVA -XX:+UsePerfData -classpath "${TESTCLASSPATH:-${TESTCLASSES}}" ShutdownSimpleApplication $1 |
135 } |
135 } |
136 |
136 |
137 |
137 |
138 # Wait for a simple application to stop running. |
138 # Wait for a simple application to stop running. |
139 # |
139 # |