author | prr |
Tue, 01 Jul 2014 10:20:56 -0700 | |
changeset 25211 | 2476da7d73bf |
parent 23010 | 6dadb192ad81 |
child 41580 | cc479488428c |
permissions | -rw-r--r-- |
2 | 1 |
# |
23010
6dadb192ad81
8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
lana
parents:
22602
diff
changeset
|
2 |
# Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
# |
|
5 |
# This code is free software; you can redistribute it and/or modify it |
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
|
7 |
# published by the Free Software Foundation. |
|
8 |
# |
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
13 |
# accompanied this code). |
|
14 |
# |
|
15 |
# You should have received a copy of the GNU General Public License version |
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
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. |
|
2 | 22 |
# |
23 |
||
24 |
# |
|
25 |
# @test |
|
26 |
# @bug 6370923 |
|
27 |
# @summary SecretKeyFactory failover does not work |
|
28 |
# @author Brad R. Wetmore |
|
29 |
# |
|
30 |
||
31 |
if [ "${TESTJAVA}" = "" ] |
|
32 |
then |
|
33 |
echo "TESTJAVA not set. Test cannot execute. Failed." |
|
34 |
exit 1 |
|
35 |
fi |
|
36 |
echo "TESTJAVA=${TESTJAVA}" |
|
37 |
||
15254
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
38 |
if [ "${COMPILEJAVA}" = "" ]; then |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
39 |
COMPILEJAVA="${TESTJAVA}" |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
40 |
fi |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
41 |
echo "COMPILEJAVA=${COMPILEJAVA}" |
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
42 |
|
2 | 43 |
if [ "${TESTSRC}" = "" ] |
44 |
then |
|
45 |
TESTSRC="." |
|
46 |
fi |
|
47 |
echo "TESTSRC=${TESTSRC}" |
|
48 |
||
49 |
||
50 |
if [ "${TESTCLASSES}" = "" ] |
|
51 |
then |
|
52 |
TESTCLASSES="." |
|
53 |
fi |
|
54 |
echo "TESTCLASSES=${TESTCLASSES}" |
|
55 |
||
56 |
# set platform-dependent variables |
|
57 |
OS=`uname -s` |
|
58 |
case "$OS" in |
|
22602
0d9a07b0d7e9
8028537: PPC64: Updated the JDK regression tests to run on AIX
simonis
parents:
15254
diff
changeset
|
59 |
SunOS | Linux | Darwin | AIX ) |
2 | 60 |
NULL=/dev/null |
61 |
PS=":" |
|
62 |
FS="/" |
|
63 |
;; |
|
3433 | 64 |
CYGWIN* ) |
65 |
NULL=/dev/null |
|
66 |
PS=";" |
|
67 |
FS="/" |
|
68 |
;; |
|
2 | 69 |
Windows* ) |
70 |
NULL=NUL |
|
71 |
PS=";" |
|
72 |
FS="\\" |
|
73 |
;; |
|
74 |
* ) |
|
75 |
echo "Unrecognized system!" |
|
76 |
exit 1; |
|
77 |
;; |
|
78 |
esac |
|
79 |
||
15254
3997a6f357cb
8005978: shell tests need to use the $COMPILEJDK for javac, jar and other tools
alanb
parents:
14786
diff
changeset
|
80 |
${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \ |
2 | 81 |
-d . \ |
3433 | 82 |
-classpath "${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar" \ |
2 | 83 |
${TESTSRC}${FS}FailOverTest.java |
84 |
||
85 |
if [ $? -ne 0 ]; then |
|
86 |
exit 1 |
|
87 |
fi |
|
88 |
||
89 |
${TESTJAVA}${FS}bin${FS}java \ |
|
14786
a9f61e0cbe61
8003890: corelibs test scripts should pass TESTVMOPTS
chegar
parents:
14342
diff
changeset
|
90 |
${TESTVMOPTS} \ |
3433 | 91 |
-classpath "${TESTSRC}${FS}P1.jar${PS}${TESTSRC}${FS}P2.jar${PS}." \ |
2 | 92 |
FailOverTest |
93 |
result=$? |
|
94 |
||
95 |
if [ $result -eq 0 ] |
|
96 |
then |
|
97 |
echo "Passed" |
|
98 |
else |
|
99 |
echo "Failed" |
|
100 |
fi |
|
101 |
exit $result |