author | darcy |
Thu, 03 Dec 2009 18:19:10 -0800 | |
changeset 4347 | ab0a9f495844 |
parent 2584 | a89e7cabf6fd |
child 4503 | e0f798017197 |
permissions | -rw-r--r-- |
2584
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
1 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
2 |
# Copyright 2004-2005 Sun Microsystems, Inc. All Rights Reserved. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
4 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
8 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
13 |
# accompanied this code). |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
14 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
15 |
# You should have received a copy of the GNU General Public License version |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
18 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
19 |
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
20 |
# CA 95054 USA or visit www.sun.com if you need additional information or |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
21 |
# have any questions. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
22 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
23 |
# @test |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
24 |
# @bug 4811968 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
25 |
# @summary Serialization compatibility with old versions |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
26 |
# @author Weijun Wang |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
27 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
28 |
# set a few environment variables so that the shell-script can run stand-alone |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
29 |
# in the source directory |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
30 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
31 |
if [ "${TESTSRC}" = "" ] ; then |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
32 |
TESTSRC="." |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
33 |
fi |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
34 |
if [ "${TESTCLASSES}" = "" ] ; then |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
35 |
TESTCLASSES="." |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
36 |
fi |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
37 |
if [ "${TESTJAVA}" = "" ] ; then |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
38 |
echo "TESTJAVA not set. Test cannot execute." |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
39 |
echo "FAILED!!!" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
40 |
exit 1 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
41 |
fi |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
42 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
43 |
# set platform-dependent variables |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
44 |
PF="" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
45 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
46 |
OS=`uname -s` |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
47 |
case "$OS" in |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
48 |
SunOS ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
49 |
FS="/" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
50 |
ARCH=`isainfo` |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
51 |
case "$ARCH" in |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
52 |
sparc* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
53 |
PF="solaris-sparc" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
54 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
55 |
i[3-6]86 ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
56 |
PF="solaris-i586" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
57 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
58 |
amd64* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
59 |
PF="solaris-amd64" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
60 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
61 |
* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
62 |
echo "Unsupported System: Solaris ${ARCH}" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
63 |
exit 0; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
64 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
65 |
esac |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
66 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
67 |
Linux ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
68 |
ARCH=`uname -m` |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
69 |
FS="/" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
70 |
case "$ARCH" in |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
71 |
i[3-6]86 ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
72 |
PF="linux-i586" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
73 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
74 |
amd64* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
75 |
PF="linux-amd64" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
76 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
77 |
* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
78 |
echo "Unsupported System: Linux ${ARCH}" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
79 |
exit 0; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
80 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
81 |
esac |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
82 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
83 |
Windows* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
84 |
FS="\\" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
85 |
PF="windows-i586" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
86 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
87 |
# 'uname -m' does not give us enough information - |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
88 |
# should rely on $PROCESSOR_IDENTIFIER (as is done in Defs-windows.gmk), |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
89 |
# but JTREG does not pass this env variable when executing a shell script. |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
90 |
# |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
91 |
# execute test program - rely on it to exit if platform unsupported |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
92 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
93 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
94 |
* ) |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
95 |
echo "Unsupported System: ${OS}" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
96 |
exit 0; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
97 |
;; |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
98 |
esac |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
99 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
100 |
# the test code |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
101 |
|
4347
ab0a9f495844
6907177: Update jdk tests to remove unncessary -source and -target options
darcy
parents:
2584
diff
changeset
|
102 |
${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}SerialTest.java || exit 10 |
2584
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
103 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
104 |
OLDJAVA=" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
105 |
/java/re/j2se/1.6.0/latest/binaries/${PF} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
106 |
/java/re/j2se/1.5.0/latest/binaries/${PF} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
107 |
/java/re/j2se/1.4.2/latest/binaries/${PF} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
108 |
" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
109 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
110 |
SMALL=" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
111 |
0.0 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
112 |
1.1 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
113 |
2.2 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
114 |
1.2.3456 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
115 |
1.2.2147483647.4 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
116 |
1.2.268435456.4 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
117 |
" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
118 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
119 |
HUGE=" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
120 |
2.16.764.1.3101555394.1.0.100.2.1 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
121 |
1.2.2147483648.4 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
122 |
2.3.4444444444444444444444 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
123 |
1.2.888888888888888888.111111111111111.2222222222222.33333333333333333.44444444444444 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
124 |
" |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
125 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
126 |
for oid in ${SMALL}; do |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
127 |
echo ${oid} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
128 |
# new -> |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
129 |
${TESTJAVA}${FS}bin${FS}java SerialTest out ${oid} > tmp.oid.serial || exit 1 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
130 |
# -> new |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
131 |
${TESTJAVA}${FS}bin${FS}java SerialTest in ${oid} < tmp.oid.serial || exit 2 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
132 |
for oldj in ${OLDJAVA}; do |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
133 |
if [ -d ${oldj} ]; then |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
134 |
echo ${oldj} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
135 |
# -> old |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
136 |
${oldj}${FS}bin${FS}java SerialTest in ${oid} < tmp.oid.serial || exit 3 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
137 |
# old -> |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
138 |
${oldj}${FS}bin${FS}java SerialTest out ${oid} > tmp.oid.serial.old || exit 4 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
139 |
# -> new |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
140 |
${TESTJAVA}${FS}bin${FS}java SerialTest in ${oid} < tmp.oid.serial.old || exit 5 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
141 |
fi |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
142 |
done |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
143 |
done |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
144 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
145 |
for oid in ${HUGE}; do |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
146 |
echo ${oid} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
147 |
# new -> |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
148 |
${TESTJAVA}${FS}bin${FS}java SerialTest out ${oid} > tmp.oid.serial || exit 1 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
149 |
# -> new |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
150 |
${TESTJAVA}${FS}bin${FS}java SerialTest in ${oid} < tmp.oid.serial || exit 2 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
151 |
for oldj in ${OLDJAVA}; do |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
152 |
if [ -d ${oldj} ]; then |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
153 |
echo ${oldj} |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
154 |
# -> old |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
155 |
${oldj}${FS}bin${FS}java SerialTest badin < tmp.oid.serial || exit 3 |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
156 |
fi |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
157 |
done |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
158 |
done |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
159 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
160 |
rm -f tmp.oid.serial |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
161 |
rm -f tmp.oid.serial.old |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
162 |
rm -f SerialTest.class |
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
163 |
|
a89e7cabf6fd
4811968: ASN.1 (X509Certificate) implementations don't handle large OID components
weijun
parents:
diff
changeset
|
164 |
exit 0 |