author | serb |
Tue, 12 Nov 2013 20:24:25 +0400 | |
changeset 21596 | 0e3a39f29dbc |
parent 14786 | a9f61e0cbe61 |
child 23010 | 6dadb192ad81 |
permissions | -rw-r--r-- |
5506 | 1 |
# Copyright (c) 2003, 2008, Oracle and/or its affiliates. All rights reserved. |
1315
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
2 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
3 |
# |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
4 |
# This code is free software; you can redistribute it and/or modify it |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
5 |
# under the terms of the GNU General Public License version 2 only, as |
21596 | 6 |
# published by the Free Software Foundation. |
1315
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
7 |
# |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
8 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
9 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
10 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
11 |
# version 2 for more details (a copy is included in the LICENSE file that |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
12 |
# accompanied this code). |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
13 |
# |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
14 |
# You should have received a copy of the GNU General Public License version |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
15 |
# 2 along with this work; if not, write to the Free Software Foundation, |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
16 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
17 |
# |
5506 | 18 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 |
# or visit www.oracle.com if you need additional information or have any |
|
20 |
# questions. |
|
1315
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
21 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
22 |
# @test |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
23 |
# @bug 6466476 |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
24 |
# @summary Compatibility test for the old JDK ID mapping and Olson IDs |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
25 |
# @build OldIDMappingTest |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
26 |
# @run shell OldIDMappingTest.sh |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
27 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
28 |
: ${TESTJAVA:=${JAVA_HOME}} |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
29 |
: ${TESTCLASSES:="`pwd`"} |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
30 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
31 |
JAVA="${TESTJAVA}/bin/java" |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
32 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
33 |
STATUS=0 |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
34 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
35 |
# Expecting the new (Olson compatible) mapping (default) |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
36 |
for I in "" " " no No NO false False FALSE Hello |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
37 |
do |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
38 |
if [ x"$I" != x ]; then |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
39 |
D="-Dsun.timezone.ids.oldmapping=${I}" |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
40 |
fi |
14786
a9f61e0cbe61
8003890: corelibs test scripts should pass TESTVMOPTS
chegar
parents:
5506
diff
changeset
|
41 |
if ! ${JAVA} ${D} ${TESTVMOPTS} -cp ${TESTCLASSES} OldIDMappingTest -new; then |
1315
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
42 |
STATUS=1 |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
43 |
fi |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
44 |
done |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
45 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
46 |
# Expecting the old mapping |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
47 |
for I in true True TRUE yes Yes YES |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
48 |
do |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
49 |
if [ "x$I" != x ]; then |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
50 |
D="-Dsun.timezone.ids.oldmapping=${I}" |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
51 |
fi |
14786
a9f61e0cbe61
8003890: corelibs test scripts should pass TESTVMOPTS
chegar
parents:
5506
diff
changeset
|
52 |
if ! ${JAVA} ${D} ${TESTVMOPTS} -cp ${TESTCLASSES} OldIDMappingTest -old; then |
1315
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
53 |
STATUS=1 |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
54 |
fi |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
55 |
done |
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
56 |
|
ad5950a1098c
6466476: (tz) Introduction of tzdata2005r can introduce incompatility issues with some JDK1.1 3-letter TZ Ids
peytoia
parents:
diff
changeset
|
57 |
exit ${STATUS} |