1 # |
|
2 # Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. |
|
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 # |
|
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. |
|
22 # |
|
23 |
|
24 # @test |
|
25 # @bug 6706974 |
|
26 # @summary Add krb5 test infrastructure |
|
27 # @run shell/timeout=300 basic.sh |
|
28 # |
|
29 |
|
30 if [ "${TESTSRC}" = "" ] ; then |
|
31 TESTSRC="." |
|
32 fi |
|
33 if [ "${TESTJAVA}" = "" ] ; then |
|
34 echo "TESTJAVA not set. Test cannot execute." |
|
35 echo "FAILED!!!" |
|
36 exit 1 |
|
37 fi |
|
38 |
|
39 # set platform-dependent variables |
|
40 OS=`uname -s` |
|
41 case "$OS" in |
|
42 Windows_* ) |
|
43 FS="\\" |
|
44 SEP=";" |
|
45 ;; |
|
46 CYGWIN* ) |
|
47 FS="/" |
|
48 SEP=";" |
|
49 ;; |
|
50 * ) |
|
51 FS="/" |
|
52 SEP=":" |
|
53 ;; |
|
54 esac |
|
55 |
|
56 ${TESTJAVA}${FS}bin${FS}javac -XDignore.symbol.file -d . \ |
|
57 ${TESTSRC}${FS}BasicKrb5Test.java \ |
|
58 ${TESTSRC}${FS}KDC.java \ |
|
59 ${TESTSRC}${FS}OneKDC.java \ |
|
60 ${TESTSRC}${FS}Action.java \ |
|
61 ${TESTSRC}${FS}Context.java \ |
|
62 || exit 10 |
|
63 |
|
64 # Add $TESTSRC to classpath so that customized nameservice can be used |
|
65 J="${TESTJAVA}${FS}bin${FS}java -cp $TESTSRC${SEP}. BasicKrb5Test" |
|
66 |
|
67 $J || exit 100 |
|
68 $J des-cbc-crc || exit 1 |
|
69 $J des-cbc-md5 || exit 3 |
|
70 $J des3-cbc-sha1 || exit 16 |
|
71 $J aes128-cts || exit 17 |
|
72 $J aes256-cts || exit 18 |
|
73 $J rc4-hmac || exit 23 |
|
74 |
|
75 exit 0 |
|