equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
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 |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. |
7 # published by the Free Software Foundation. |
21 # questions. |
21 # questions. |
22 # |
22 # |
23 |
23 |
24 # @test |
24 # @test |
25 # @bug 5038659 |
25 # @bug 5038659 |
|
26 # @library /test/lib |
26 # @summary Enable PKCS#11 KeyStore for SunPKCS11-Solaris |
27 # @summary Enable PKCS#11 KeyStore for SunPKCS11-Solaris |
27 # |
28 # |
28 # @run shell Solaris.sh |
29 # @run shell Solaris.sh |
29 |
30 |
30 # To run by hand: |
31 # To run by hand: |
136 |
137 |
137 if [ "${RECOMPILE}" = "yes" ] ; then |
138 if [ "${RECOMPILE}" = "yes" ] ; then |
138 cd ${TESTCLASSES} |
139 cd ${TESTCLASSES} |
139 ${RM} *.class |
140 ${RM} *.class |
140 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \ |
141 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} \ |
141 -classpath ${TESTSRC}${FS}..${PS}${TESTSRC}${FS}loader.jar \ |
142 -classpath ${TESTSRC}${FS}..${PS}${TESTSRC}${FS}loader.jar \ |
142 -d ${TESTCLASSES} \ |
143 -d ${TESTCLASSES} \ |
143 ${TESTSRC}${FS}Basic.java \ |
144 ${TESTSRC}${FS}..${FS}..${FS}..${FS}..${FS}..${FS}lib${FS}jdk${FS}test${FS}lib${FS}artifacts${FS}*.java \ |
144 ${TESTSRC}${FS}..${FS}PKCS11Test.java |
145 ${TESTSRC}${FS}Basic.java \ |
|
146 ${TESTSRC}${FS}..${FS}PKCS11Test.java |
145 fi |
147 fi |
146 |
148 |
147 # run test |
149 # run test |
148 |
150 |
149 cd ${TESTSRC} |
151 cd ${TESTSRC} |
150 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \ |
152 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} \ |
151 -classpath ${TESTCLASSES}${PS}${TESTSRC}${FS}loader.jar \ |
153 -classpath ${TESTCLASSES}${PS}${TESTSRC}${FS}loader.jar${PS}${CPAPPEND} \ |
152 -DDIR=${TESTSRC}${FS}BasicData${FS} \ |
154 -DDIR=${TESTSRC}${FS}BasicData${FS} \ |
153 -DCUSTOM_P11_CONFIG=${TESTSRC}${FS}BasicData${FS}p11-solaris.txt \ |
155 -DCUSTOM_P11_CONFIG=${TESTSRC}${FS}BasicData${FS}p11-solaris.txt \ |
154 -DNO_DEFAULT=true \ |
156 -DNO_DEFAULT=true \ |
155 -DNO_DEIMOS=true \ |
157 -DNO_DEIMOS=true \ |
156 -DTOKEN=solaris \ |
158 -DTOKEN=solaris \ |