< prev index next >

jdk/test/com/sun/jdi/ImmutableResourceTest.sh

Print this page




  82    # THIS IS THE JDK BEING TESTED.
  83    if [ -n "$1" ] ; then
  84           TESTJAVA=$1
  85       else
  86           TESTJAVA=$JAVA_HOME
  87    fi
  88    TESTSRC=.
  89    TESTCLASSES=.
  90    #Deal with .class files:
  91 fi
  92 #
  93 echo "JDK under test is: $TESTJAVA"
  94 #
  95 CP="-classpath ${TESTCLASSES}"
  96 #
  97 env
  98 #
  99 set -vx
 100 #
 101 # Compile test class
 102 ${TESTJAVA}/bin/javac -XaddExports:jdk.jdi/com.sun.tools.example.debug.tty=ALL-UNNAMED \
 103    -d "${TESTCLASSES}" ${CP} -g "${TESTSRC}"/"${TARGETCLASS}".java
 104 #
 105 # Run the test class, again with the classpath we need:
 106 ${TESTJAVA}/bin/java -XaddExports:jdk.jdi/com.sun.tools.example.debug.tty=ALL-UNNAMED \
 107     ${CP} ${TARGETCLASS}
 108 status=$?
 109 echo "test status was: $status"
 110 if [ $status -eq "0" ];
 111    then pass ""
 112 
 113    else fail "unspecified test failure"
 114 fi


  82    # THIS IS THE JDK BEING TESTED.
  83    if [ -n "$1" ] ; then
  84           TESTJAVA=$1
  85       else
  86           TESTJAVA=$JAVA_HOME
  87    fi
  88    TESTSRC=.
  89    TESTCLASSES=.
  90    #Deal with .class files:
  91 fi
  92 #
  93 echo "JDK under test is: $TESTJAVA"
  94 #
  95 CP="-classpath ${TESTCLASSES}"
  96 #
  97 env
  98 #
  99 set -vx
 100 #
 101 # Compile test class
 102 ${TESTJAVA}/bin/javac --add-exports jdk.jdi/com.sun.tools.example.debug.tty=ALL-UNNAMED \
 103    -d "${TESTCLASSES}" ${CP} -g "${TESTSRC}"/"${TARGETCLASS}".java
 104 #
 105 # Run the test class, again with the classpath we need:
 106 ${TESTJAVA}/bin/java --add-exports jdk.jdi/com.sun.tools.example.debug.tty=ALL-UNNAMED \
 107     ${CP} ${TARGETCLASS}
 108 status=$?
 109 echo "test status was: $status"
 110 if [ $status -eq "0" ];
 111    then pass ""
 112 
 113    else fail "unspecified test failure"
 114 fi
< prev index next >