< prev index next >

jdk/test/javax/imageio/plugins/external_plugin_tests/TestClassPathPlugin.sh

Print this page




  69   ;;
  70 esac
  71 
  72 # expect to find SimpReader via jar on classpath.
  73 # Will be treated as a regular jar.
  74 echo "Test classpath jar .. "
  75 $JAVA  -cp ${TESTDIR}${CPSEP}${PLUGINDIR}/simp.jar simptest.TestSIMPPlugin
  76 if [ $? -ne 0 ]; then
  77     exception=1
  78       echo "Classpath test failed: exception thrown!"
  79 fi
  80 echo "Test classpath jar with security manager .."
  81 $JAVA -Djava.security.manager -cp .${CPSEP}${TESTDIR}${CPSEP}${PLUGINDIR}/simp.jar simptest.TestSIMPPlugin
  82 if [ $? -ne 0 ]; then
  83     exception=1
  84     echo "Classpath + SecurityManager test failed: exception thrown!"
  85 fi
  86 
  87 # expect to find SimpReader on module path
  88 echo "Test modular jar .. "
  89 $JAVA -mp $PLUGINDIR -cp $TESTDIR simptest.TestSIMPPlugin
  90 
  91 if [ $? -ne 0 ]; then
  92     exception=1
  93     echo "modular jar test failed: exception thrown!"
  94 fi
  95 
  96 echo "Test modular jar with security manager .."
  97 $JAVA -Djava.security.manager -mp $PLUGINDIR -cp $TESTDIR simptest.TestSIMPPlugin
  98 if [ $? -ne 0 ]; then
  99     exception=1
 100     echo "modular jar with security manager test failed: exception thrown!"
 101 fi
 102 
 103 if [ $exception -ne 0 ]; then
 104     echo "TEST FAILED"
 105     exit 1
 106 fi
 107 exit 0


  69   ;;
  70 esac
  71 
  72 # expect to find SimpReader via jar on classpath.
  73 # Will be treated as a regular jar.
  74 echo "Test classpath jar .. "
  75 $JAVA  -cp ${TESTDIR}${CPSEP}${PLUGINDIR}/simp.jar simptest.TestSIMPPlugin
  76 if [ $? -ne 0 ]; then
  77     exception=1
  78       echo "Classpath test failed: exception thrown!"
  79 fi
  80 echo "Test classpath jar with security manager .."
  81 $JAVA -Djava.security.manager -cp .${CPSEP}${TESTDIR}${CPSEP}${PLUGINDIR}/simp.jar simptest.TestSIMPPlugin
  82 if [ $? -ne 0 ]; then
  83     exception=1
  84     echo "Classpath + SecurityManager test failed: exception thrown!"
  85 fi
  86 
  87 # expect to find SimpReader on module path
  88 echo "Test modular jar .. "
  89 $JAVA --module-path $PLUGINDIR -cp $TESTDIR simptest.TestSIMPPlugin
  90 
  91 if [ $? -ne 0 ]; then
  92     exception=1
  93     echo "modular jar test failed: exception thrown!"
  94 fi
  95 
  96 echo "Test modular jar with security manager .."
  97 $JAVA -Djava.security.manager --module-path $PLUGINDIR -cp $TESTDIR simptest.TestSIMPPlugin
  98 if [ $? -ne 0 ]; then
  99     exception=1
 100     echo "modular jar with security manager test failed: exception thrown!"
 101 fi
 102 
 103 if [ $exception -ne 0 ]; then
 104     echo "TEST FAILED"
 105     exit 1
 106 fi
 107 exit 0
< prev index next >