equal
deleted
inserted
replaced
21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
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 |
22 # or visit www.oracle.com if you need additional information or have any |
23 # questions. |
23 # questions. |
24 # |
24 # |
25 |
25 |
26 |
|
27 if [ "${TESTSRC}" = "" ] |
26 if [ "${TESTSRC}" = "" ] |
28 then |
27 then |
29 echo "TESTSRC not set. Test cannot execute. Failed." |
28 echo "TESTSRC not set. Test cannot execute. Failed." |
30 exit 1 |
29 exit 1 |
31 fi |
30 fi |
36 echo "TESTJAVA not set. Test cannot execute. Failed." |
35 echo "TESTJAVA not set. Test cannot execute. Failed." |
37 exit 1 |
36 exit 1 |
38 fi |
37 fi |
39 echo "TESTJAVA=${TESTJAVA}" |
38 echo "TESTJAVA=${TESTJAVA}" |
40 |
39 |
|
40 if [ "${COMPILEJAVA}" = "" ] |
|
41 then |
|
42 COMPILEJAVA="${TESTJAVA}" |
|
43 fi |
|
44 echo "COMPILEJAVA=${COMPILEJAVA}" |
|
45 |
41 if [ "${TESTCLASSES}" = "" ] |
46 if [ "${TESTCLASSES}" = "" ] |
42 then |
47 then |
43 echo "TESTCLASSES not set. Test cannot execute. Failed." |
48 echo "TESTCLASSES not set. Test cannot execute. Failed." |
44 exit 1 |
49 exit 1 |
45 fi |
50 fi |
46 |
51 |
47 JAVAC="${TESTJAVA}/bin/javac -g" |
52 JAVAC="${COMPILEJAVA}/bin/javac -g" |
48 JAR="${TESTJAVA}/bin/jar" |
53 JAR="${COMPILEJAVA}/bin/jar" |
49 |
54 |
50 cp ${TESTSRC}/InstrumentationHandoff.java InstrumentationHandoff.java |
55 cp ${TESTSRC}/InstrumentationHandoff.java InstrumentationHandoff.java |
51 ${JAVAC} InstrumentationHandoff.java |
56 ${JAVAC} ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} InstrumentationHandoff.java |
52 ${JAR} cvfm $1.jar ${TESTSRC}/$1.mf InstrumentationHandoff.class |
57 ${JAR} ${TESTTOOLVMOPTS} cvfm $1.jar ${TESTSRC}/$1.mf InstrumentationHandoff.class |
53 rm -f InstrumentationHandoff.class InstrumentationHandoff.java |
58 rm -f InstrumentationHandoff.class InstrumentationHandoff.java |