< prev index next >

test/java/io/Serializable/resolveClass/consTest/run.sh

Print this page
rev 1541 : 8003890: corelibs test scripts should pass TESTVMOPTS
Reviewed-by: chegar, alanb
Contributed-by: Mark Sheppard <mark.sheppard@oracle.com>


  27 #          not interfere with serialization's class resolution mechanism.
  28 
  29 if [ "${TESTJAVA}" = "" ]
  30 then
  31         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  32 exit 1
  33 fi
  34 
  35 if [ "${TESTSRC}" = "" ]
  36 then
  37         TESTSRC="."
  38 fi
  39 
  40 set -ex
  41 
  42 rm -f *.class *.jar
  43 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Boot.java
  44 ${TESTJAVA}/bin/jar cf boot.jar *.class
  45 rm -f *.class
  46 ${TESTJAVA}/bin/javac -classpath boot.jar -d . ${TESTSRC}/Test.java
  47 ${TESTJAVA}/bin/java -Xbootclasspath/a:boot.jar Test
  48 rm -f *.class *.jar


  27 #          not interfere with serialization's class resolution mechanism.
  28 
  29 if [ "${TESTJAVA}" = "" ]
  30 then
  31         echo "TESTJAVA not set.  Test cannot execute.  Failed."
  32 exit 1
  33 fi
  34 
  35 if [ "${TESTSRC}" = "" ]
  36 then
  37         TESTSRC="."
  38 fi
  39 
  40 set -ex
  41 
  42 rm -f *.class *.jar
  43 ${TESTJAVA}/bin/javac -d . ${TESTSRC}/Boot.java
  44 ${TESTJAVA}/bin/jar cf boot.jar *.class
  45 rm -f *.class
  46 ${TESTJAVA}/bin/javac -classpath boot.jar -d . ${TESTSRC}/Test.java
  47 ${TESTJAVA}/bin/java ${TESTVMOPTS} -Xbootclasspath/a:boot.jar Test
  48 rm -f *.class *.jar
< prev index next >