test/java/util/Calendar/GenericTimeZoneNamesTest.sh

Print this page




  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 # TODO: The purpose of ja-JP is to make sure the fallback for generic
  36 # names works. Remove ja-JP when adding generic names to localized
  37 # resources.
  38 if ! ${TESTJAVA}/bin/java -esa -cp "${TESTCLASSES}" GenericTimeZoneNamesTest en-US ja-JP; then
  39     STATUS=1
  40 fi
  41 
  42 echo "Locale providers: CLDR"
  43 if ! ${TESTJAVA}/bin/java -esa -cp "${TESTCLASSES}" -Djava.locale.providers=CLDR GenericTimeZoneNamesTest en-US; then
  44    STATUS=1
  45 fi
  46 exit ${STATUS}
  47 


  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 # TODO: The purpose of ja-JP is to make sure the fallback for generic
  36 # names works. Remove ja-JP when adding generic names to localized
  37 # resources.
  38 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" GenericTimeZoneNamesTest en-US ja-JP; then
  39     STATUS=1
  40 fi
  41 
  42 echo "Locale providers: CLDR"
  43 if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" -Djava.locale.providers=CLDR GenericTimeZoneNamesTest en-US; then
  44    STATUS=1
  45 fi
  46 exit ${STATUS}
  47