test/java/util/PluggableLocale/ExecTest.sh

Print this page




 107     -XDignore.symbol.file -d . -classpath ${CLASSPATHARG} $2.java"
 108 echo ${COMPILE}
 109 ${COMPILE}
 110 result=$?
 111 
 112 if [ $result -eq 0 ]
 113 then
 114   echo "Compilation of the test case was successful."
 115 else
 116   echo "Compilation of the test case failed."
 117   # Cleanup
 118   rm -f ${TESTCLASSES}${FS}$2*.class
 119   rm -f ${TESTCLASSES}${FS}fooprovider.jar
 120   rm -f ${TESTCLASSES}${FS}barprovider.jar
 121   exit $result
 122 fi
 123 
 124 # run
 125 if [ "$3" = "true" ]
 126 then
 127   RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Djava.ext.dirs=${EXTDIRS} $2 "
 128 else
 129   RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -classpath ${CLASSPATHARG} $2 "
 130 fi
 131 
 132 echo ${RUNCMD}
 133 ${RUNCMD}
 134 result=$?
 135 
 136 if [ $result -eq 0 ]
 137 then
 138   echo "Execution successful"
 139 else
 140   echo "Execution of the test case failed."
 141 fi
 142 
 143 # Cleanup
 144 rm -f ${TESTCLASSES}${FS}$2*.class
 145 rm -f ${TESTCLASSES}${FS}fooprovider.jar
 146 rm -f ${TESTCLASSES}${FS}barprovider.jar
 147 
 148 exit $result


 107     -XDignore.symbol.file -d . -classpath ${CLASSPATHARG} $2.java"
 108 echo ${COMPILE}
 109 ${COMPILE}
 110 result=$?
 111 
 112 if [ $result -eq 0 ]
 113 then
 114   echo "Compilation of the test case was successful."
 115 else
 116   echo "Compilation of the test case failed."
 117   # Cleanup
 118   rm -f ${TESTCLASSES}${FS}$2*.class
 119   rm -f ${TESTCLASSES}${FS}fooprovider.jar
 120   rm -f ${TESTCLASSES}${FS}barprovider.jar
 121   exit $result
 122 fi
 123 
 124 # run
 125 if [ "$3" = "true" ]
 126 then
 127   RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${TESTJAVAOPTS} -Djava.ext.dirs=${EXTDIRS} $2 "
 128 else
 129   RUNCMD="${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} ${TESTJAVAOPTS} -classpath ${CLASSPATHARG} $2 "
 130 fi
 131 
 132 echo ${RUNCMD}
 133 ${RUNCMD}
 134 result=$?
 135 
 136 if [ $result -eq 0 ]
 137 then
 138   echo "Execution successful"
 139 else
 140   echo "Execution of the test case failed."
 141 fi
 142 
 143 # Cleanup
 144 rm -f ${TESTCLASSES}${FS}$2*.class
 145 rm -f ${TESTCLASSES}${FS}fooprovider.jar
 146 rm -f ${TESTCLASSES}${FS}barprovider.jar
 147 
 148 exit $result