jdk/test/java/util/Calendar/GenericTimeZoneNamesTest.sh
author tschatzl
Wed, 23 Jul 2014 09:03:32 +0200
changeset 25889 221296ac4359
parent 23010 6dadb192ad81
child 36511 9d0388c6b336
permissions -rw-r--r--
8027959: Early reclamation of large objects in G1 Summary: Try to reclaim humongous objects at every young collection after doing a conservative estimate of its liveness. Reviewed-by: brutisso, mgerdin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     1
#
23010
6dadb192ad81 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents: 22262
diff changeset
     2
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     4
#
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     7
# published by the Free Software Foundation.
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     8
#
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    13
# accompanied this code).
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    14
#
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    18
#
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    21
# questions.
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    22
#
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    23
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    24
# @test
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    25
# @bug 8003267
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    26
# @summary Unit test for generic time zone names support
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    27
# @compile -XDignore.symbol.file GenericTimeZoneNamesTest.java
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    28
# @run shell GenericTimeZoneNamesTest.sh
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    29
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    30
# This test is locale data-dependent and assumes that both JRE and CLDR
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    31
# have the same geneic time zone names in English.
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    32
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    33
STATUS=0
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    34
echo "Locale providers: default"
22262
949654c1c30e 8025051: Update resource files for TimeZone display names
aefimov
parents: 21638
diff changeset
    35
if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" GenericTimeZoneNamesTest en-US; then
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    36
    STATUS=1
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    37
fi
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    38
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    39
echo "Locale providers: CLDR"
21638
d51c48db93d8 8028044: [TEST_BUG] Calendar shell tests do not pass TESTVMOPTS
alanb
parents: 14765
diff changeset
    40
if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" -Djava.locale.providers=CLDR GenericTimeZoneNamesTest en-US; then
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    41
   STATUS=1
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    42
fi
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    43
exit ${STATUS}
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    44