equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2006, 2012, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2006, 2009, 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. |
48 FS="/" |
48 FS="/" |
49 LIBNAME=libsoftokn3.so |
49 LIBNAME=libsoftokn3.so |
50 ARCH=`isainfo` |
50 ARCH=`isainfo` |
51 case "$ARCH" in |
51 case "$ARCH" in |
52 sparc* ) |
52 sparc* ) |
53 NSSDIR="/usr/lib/mps" |
53 PF="solaris-sparc" |
54 ;; |
54 ;; |
55 * ) |
55 * ) |
56 echo "Will not run test on: Solaris ${ARCH}" |
56 echo "Will not run test on: Solaris ${ARCH}" |
57 exit 0; |
57 exit 0; |
58 ;; |
58 ;; |
62 LIBNAME=libsoftokn3.so |
62 LIBNAME=libsoftokn3.so |
63 ARCH=`uname -m` |
63 ARCH=`uname -m` |
64 FS="/" |
64 FS="/" |
65 case "$ARCH" in |
65 case "$ARCH" in |
66 i[3-6]86 ) |
66 i[3-6]86 ) |
67 NSSDIR="/usr/lib" |
67 PF="linux-i586" |
68 ;; |
68 ;; |
69 * ) |
69 * ) |
70 echo "Will not run test on: Linux ${ARCH}" |
70 echo "Will not run test on: Linux ${ARCH}" |
71 exit 0; |
71 exit 0; |
72 ;; |
72 ;; |
89 |
89 |
90 chmod u+w key3.db |
90 chmod u+w key3.db |
91 chmod u+w cert8.db |
91 chmod u+w cert8.db |
92 |
92 |
93 echo | ${TESTJAVA}${FS}bin${FS}java -Dnss \ |
93 echo | ${TESTJAVA}${FS}bin${FS}java -Dnss \ |
94 -Dnss.lib=${NSSDIR}${FS}${LIBNAME} \ |
94 -Dnss.lib=${NSS}${FS}lib${FS}${PF}${FS}${LIBNAME} \ |
95 KeyToolTest |
95 KeyToolTest |
96 status=$? |
96 status=$? |
97 |
97 |
98 rm -f p11-nss.txt |
98 rm -f p11-nss.txt |
99 rm -f cert8.db |
99 rm -f cert8.db |