test/java/util/PluggableLocale/ExecTest.sh

Print this page




 103 
 104 if [ $result -eq 0 ]
 105 then
 106   echo "Compilation of the test case was successful."
 107 else
 108   echo "Compilation of the test case failed."
 109   # Cleanup
 110   rm -f ${TESTCLASSES}${FS}$2*.class
 111   rm -f ${TESTCLASSES}${FS}fooprovider.jar
 112   rm -f ${TESTCLASSES}${FS}barprovider.jar
 113   exit $result
 114 fi
 115 
 116 # security options
 117 if [ "$3" != "" ]
 118 then
 119   SECURITYOPTS="-Djava.security.manager -Djava.security.policy=${TESTSRC}${FS}$3"
 120 fi
 121 
 122 # run
 123 RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${SECURITYOPTS} -classpath ${CLASSPATHARG} $2 "
 124 
 125 echo ${RUNCMD}
 126 ${RUNCMD}
 127 result=$?
 128 
 129 if [ $result -eq 0 ]
 130 then
 131   echo "Execution successful"
 132 else
 133   echo "Execution of the test case failed."
 134 fi
 135 
 136 # Cleanup
 137 rm -f ${TESTCLASSES}${FS}$2*.class
 138 rm -f ${TESTCLASSES}${FS}fooprovider.jar
 139 rm -f ${TESTCLASSES}${FS}barprovider.jar
 140 
 141 exit $result


 103 
 104 if [ $result -eq 0 ]
 105 then
 106   echo "Compilation of the test case was successful."
 107 else
 108   echo "Compilation of the test case failed."
 109   # Cleanup
 110   rm -f ${TESTCLASSES}${FS}$2*.class
 111   rm -f ${TESTCLASSES}${FS}fooprovider.jar
 112   rm -f ${TESTCLASSES}${FS}barprovider.jar
 113   exit $result
 114 fi
 115 
 116 # security options
 117 if [ "$3" != "" ]
 118 then
 119   SECURITYOPTS="-Djava.security.manager -Djava.security.policy=${TESTSRC}${FS}$3"
 120 fi
 121 
 122 # run
 123 RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${SECURITYOPTS} -classpath ${CLASSPATHARG} -Djava.locale.providers=JRE,SPI $2 "
 124 
 125 echo ${RUNCMD}
 126 ${RUNCMD}
 127 result=$?
 128 
 129 if [ $result -eq 0 ]
 130 then
 131   echo "Execution successful"
 132 else
 133   echo "Execution of the test case failed."
 134 fi
 135 
 136 # Cleanup
 137 rm -f ${TESTCLASSES}${FS}$2*.class
 138 rm -f ${TESTCLASSES}${FS}fooprovider.jar
 139 rm -f ${TESTCLASSES}${FS}barprovider.jar
 140 
 141 exit $result