author | tidu |
Wed, 29 Jun 2016 23:29:07 -0700 | |
changeset 39316 | 3042646f9b7b |
parent 24116 | 9f9b4ba34aad |
permissions | -rw-r--r-- |
2179
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
1 |
# |
14342
8435a30053c1
7197491: update copyright year to match last edit in jdk8 jdk repository
alanb
parents:
12047
diff
changeset
|
2 |
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. |
2179
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
4 |
# |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
8 |
# |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
13 |
# accompanied this code). |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
14 |
# |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
15 |
# You should have received a copy of the GNU General Public License version |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
18 |
# |
5506 | 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. |
|
2179
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
22 |
# |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
23 |
|
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
24 |
# @test |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
25 |
# @bug 6813402 |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
26 |
# @summary keytool cannot -printcert entries without extensions |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
27 |
# |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
28 |
# @run shell NoExtNPE.sh |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
29 |
|
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
30 |
# set a few environment variables so that the shell-script can run stand-alone |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
31 |
# in the source directory |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
32 |
if [ "${TESTSRC}" = "" ] ; then |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
33 |
TESTSRC="." |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
34 |
fi |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
35 |
|
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
36 |
if [ "${TESTJAVA}" = "" ] ; then |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
37 |
echo "TESTJAVA not set. Test cannot execute." |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
38 |
echo "FAILED!!!" |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
39 |
exit 1 |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
40 |
fi |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
41 |
|
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
42 |
# set platform-dependent variables |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
43 |
OS=`uname -s` |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
44 |
case "$OS" in |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
45 |
SunOS ) |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
46 |
FILESEP="/" |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
47 |
;; |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
48 |
Linux ) |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
49 |
FILESEP="/" |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
50 |
;; |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
51 |
Darwin ) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
52 |
FILESEP="/" |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
53 |
;; |
22602
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
14342
diff
changeset
|
54 |
AIX ) |
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
14342
diff
changeset
|
55 |
PATHSEP=":" |
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
14342
diff
changeset
|
56 |
FILESEP="/" |
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
14342
diff
changeset
|
57 |
;; |
3433 | 58 |
CYGWIN* ) |
59 |
FILESEP="/" |
|
60 |
;; |
|
2179
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
61 |
Windows* ) |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
62 |
FILESEP="\\" |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
63 |
;; |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
64 |
* ) |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
65 |
echo "Unrecognized system!" |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
66 |
exit 1; |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
67 |
;; |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
68 |
esac |
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
69 |
|
24116
9f9b4ba34aad
8040321: keytool and jarsigner tests doesn't pass though VM tools to tools
weijun
parents:
22602
diff
changeset
|
70 |
${TESTJAVA}${FILESEP}bin${FILESEP}keytool ${TESTTOOLVMOPTS} \ |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
71 |
-list -v \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
72 |
-keystore ${TESTSRC}${FILESEP}CloneKeyAskPassword.jks \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
5506
diff
changeset
|
73 |
-storepass test123 |
2179
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
74 |
|
e172c13ca87a
6813402: keytool cannot -printcert entries without extensions
weijun
parents:
diff
changeset
|
75 |
exit $? |