test/com/sun/tools/attach/ProviderTests.sh

Print this page




  28 # @build ProviderTest SimpleProvider
  29 # @run shell ProviderTests.sh
  30 
  31 if [ "${TESTSRC}" = "" ]
  32 then
  33   echo "TESTSRC not set.  Test cannot execute.  Failed."
  34   exit 1
  35 fi
  36 
  37 . ${TESTSRC}/CommonSetup.sh
  38 
  39 echo "Creating JAR file ..."
  40 
  41 $JAR -cf ${TESTCLASSES}/SimpleProvider.jar \
  42     -C ${TESTCLASSES} SimpleProvider.class \
  43     -C ${TESTCLASSES} SimpleVirtualMachine.class \
  44     -C "${TESTSRC}" META-INF/services/com.sun.tools.attach.spi.AttachProvider
  45 
  46 echo "Running test ..."
  47 
  48 $JAVA -classpath \
  49   "${TESTCLASSES}${PS}${TESTCLASSES}/SimpleProvider.jar${PS}${TESTJAVA}/lib/tools.jar" \
  50   ProviderTest
  51 


  28 # @build ProviderTest SimpleProvider
  29 # @run shell ProviderTests.sh
  30 
  31 if [ "${TESTSRC}" = "" ]
  32 then
  33   echo "TESTSRC not set.  Test cannot execute.  Failed."
  34   exit 1
  35 fi
  36 
  37 . ${TESTSRC}/CommonSetup.sh
  38 
  39 echo "Creating JAR file ..."
  40 
  41 $JAR -cf ${TESTCLASSES}/SimpleProvider.jar \
  42     -C ${TESTCLASSES} SimpleProvider.class \
  43     -C ${TESTCLASSES} SimpleVirtualMachine.class \
  44     -C "${TESTSRC}" META-INF/services/com.sun.tools.attach.spi.AttachProvider
  45 
  46 echo "Running test ..."
  47 
  48 $JAVA ${TESTVMOPTS} -classpath \
  49   "${TESTCLASSES}${PS}${TESTCLASSES}/SimpleProvider.jar${PS}${TESTJAVA}/lib/tools.jar" \
  50   ProviderTest
  51