test/javax/script/ProviderTest.sh

Print this page




  28 # @build ProviderTest DummyScriptEngineFactory
  29 # @run shell ProviderTest.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}/dummy.jar \
  42     -C ${TESTCLASSES} DummyScriptEngine.class \
  43     -C ${TESTCLASSES} DummyScriptEngineFactory.class \
  44     -C "${TESTSRC}" META-INF/services/javax.script.ScriptEngineFactory
  45 
  46 echo "Running test ..."
  47 
  48 $JAVA -classpath \
  49   "${TESTCLASSES}${PS}${TESTCLASSES}/dummy.jar" \
  50   ProviderTest


  28 # @build ProviderTest DummyScriptEngineFactory
  29 # @run shell ProviderTest.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}/dummy.jar \
  42     -C ${TESTCLASSES} DummyScriptEngine.class \
  43     -C ${TESTCLASSES} DummyScriptEngineFactory.class \
  44     -C "${TESTSRC}" META-INF/services/javax.script.ScriptEngineFactory
  45 
  46 echo "Running test ..."
  47 
  48 $JAVA -Djava.awt.headless=true -classpath \
  49   "${TESTCLASSES}${PS}${TESTCLASSES}/dummy.jar" \
  50   ProviderTest