test/java/util/Calendar/GenericTimeZoneNamesTest.sh

Print this page




  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # @test
  25 # @bug 8003267
  26 # @summary Unit test for generic time zone names support
  27 # @compile -XDignore.symbol.file GenericTimeZoneNamesTest.java
  28 # @run shell GenericTimeZoneNamesTest.sh
  29 
  30 # This test is locale data-dependent and assumes that both JRE and CLDR
  31 # have the same geneic time zone names in English.
  32 
  33 STATUS=0
  34 echo "Locale providers: default"
  35 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" GenericTimeZoneNamesTest en-US; then
  36     STATUS=1
  37 fi
  38 
  39 echo "Locale providers: CLDR"
  40 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" -Djava.locale.providers=CLDR GenericTimeZoneNamesTest en-US; then
  41    STATUS=1
  42 fi
  43 exit ${STATUS}
  44 


  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #
  23 
  24 # @test
  25 # @bug 8003267
  26 # @summary Unit test for generic time zone names support
  27 # @compile -XDignore.symbol.file GenericTimeZoneNamesTest.java
  28 # @run shell GenericTimeZoneNamesTest.sh
  29 
  30 # This test is locale data-dependent and assumes that both JRE and CLDR
  31 # have the same geneic time zone names in English.
  32 
  33 STATUS=0
  34 echo "Locale providers: default"
  35 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} ${TESTJAVAOPTS} -cp "${TESTCLASSES}" GenericTimeZoneNamesTest en-US; then
  36     STATUS=1
  37 fi
  38 
  39 echo "Locale providers: CLDR"
  40 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} ${TESTJAVAOPTS} -cp "${TESTCLASSES}" -Djava.locale.providers=CLDR GenericTimeZoneNamesTest en-US; then
  41    STATUS=1
  42 fi
  43 exit ${STATUS}
  44