test/jdk/java/util/Calendar/NarrowNamesTest.sh
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 31263 jdk/test/java/util/Calendar/NarrowNamesTest.sh@a81a0af34ca0
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
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
#
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
     2
# Copyright (c) 2012, 2015, 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
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    25
# @bug 8000983 8008577
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    26
# @summary Unit test for narrow names support
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    27
# @build NarrowNamesTest
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    28
# @run shell NarrowNamesTest.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 narrow names.
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
for P in "JRE,SPI" "CLDR"
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    35
do
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    36
    echo "Locale providers: $P"
31263
a81a0af34ca0 8008577: Use CLDR Locale Data by Default
naoto
parents: 23010
diff changeset
    37
    if ! ${TESTJAVA}/bin/java -esa ${TESTVMOPTS} -cp "${TESTCLASSES}" -Djava.locale.providers="${P}" NarrowNamesTest ${P}; then
14765
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    38
        STATUS=1
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    39
    fi
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    40
done
0987999ed367 8000983: Support narrow display names for calendar fields
okutsu
parents:
diff changeset
    41
exit ${STATUS}