7078816: /test/sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failure
Reviewed-by: alanb
This commit is contained in:
parent
fb01d942c3
commit
f769f7067f
@ -25,6 +25,8 @@
|
|||||||
# @bug 6599979
|
# @bug 6599979
|
||||||
# @summary Ensure that re-assigning the alias works
|
# @summary Ensure that re-assigning the alias works
|
||||||
#
|
#
|
||||||
|
# @library ..
|
||||||
|
# @build SecretKeysBasic
|
||||||
# @run shell SecretKeysBasic.sh
|
# @run shell SecretKeysBasic.sh
|
||||||
#
|
#
|
||||||
# To run by hand:
|
# To run by hand:
|
||||||
@ -43,10 +45,9 @@ fi
|
|||||||
if [ "${TESTCLASSES}" = "" ] ; then
|
if [ "${TESTCLASSES}" = "" ] ; then
|
||||||
TESTCLASSES=`pwd`
|
TESTCLASSES=`pwd`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if running by hand on windows, change this to appropriate value
|
|
||||||
if [ "${TESTJAVA}" = "" ] ; then
|
if [ "${TESTJAVA}" = "" ] ; then
|
||||||
TESTJAVA="/net/shimmer/export/valeriep/jdk7/build/solaris-sparc"
|
JAVAC_CMD=`which javac`
|
||||||
|
TESTJAVA=`dirname $JAVAC_CMD`/..
|
||||||
fi
|
fi
|
||||||
echo TESTSRC=${TESTSRC}
|
echo TESTSRC=${TESTSRC}
|
||||||
echo TESTCLASSES=${TESTCLASSES}
|
echo TESTCLASSES=${TESTCLASSES}
|
||||||
@ -63,19 +64,41 @@ case "$OS" in
|
|||||||
SunOS )
|
SunOS )
|
||||||
FS="/"
|
FS="/"
|
||||||
PS=":"
|
PS=":"
|
||||||
SCCS="${FS}usr${FS}ccs${FS}bin${FS}sccs"
|
OS_VERSION=`uname -r`
|
||||||
CP="${FS}bin${FS}cp -f"
|
case "${OS_VERSION}" in
|
||||||
RM="${FS}bin${FS}rm -rf"
|
5.1* )
|
||||||
MKDIR="${FS}bin${FS}mkdir -p"
|
SOFTTOKEN_DIR=${TESTCLASSES}
|
||||||
CHMOD="${FS}bin${FS}chmod"
|
export SOFTTOKEN_DIR
|
||||||
|
TOKENS="nss solaris"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
# SunPKCS11-Solaris Test only runs on Solaris 5.10 and later
|
||||||
|
TOKENS="nss"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
Windows_* )
|
||||||
|
FS="\\"
|
||||||
|
PS=";"
|
||||||
|
TOKENS="nss"
|
||||||
|
;;
|
||||||
|
CYGWIN* )
|
||||||
|
FS="/"
|
||||||
|
PS=";"
|
||||||
|
TOKENS="nss"
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
echo "Unsupported System ${OS} - Test only runs on Solaris"
|
FS="/"
|
||||||
exit 0;
|
PS=":"
|
||||||
|
TOKENS="nss"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
TOKENS="nss solaris"
|
CP="cp -f"
|
||||||
|
RM="rm -rf"
|
||||||
|
MKDIR="mkdir -p"
|
||||||
|
CHMOD="chmod"
|
||||||
|
|
||||||
STATUS=0
|
STATUS=0
|
||||||
for token in ${TOKENS}
|
for token in ${TOKENS}
|
||||||
do
|
do
|
||||||
@ -91,18 +114,6 @@ then
|
|||||||
USED_FILE_LIST="${TESTCLASSES}${FS}cert8.db ${TESTCLASSES}${FS}key3.db"
|
USED_FILE_LIST="${TESTCLASSES}${FS}cert8.db ${TESTCLASSES}${FS}key3.db"
|
||||||
elif [ ${token} = "solaris" ]
|
elif [ ${token} = "solaris" ]
|
||||||
then
|
then
|
||||||
OS_VERSION=`uname -r`
|
|
||||||
case "${OS_VERSION}" in
|
|
||||||
5.1* )
|
|
||||||
SOFTTOKEN_DIR=${TESTCLASSES}
|
|
||||||
export SOFTTOKEN_DIR
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
echo "Unsupported Version ${OS_VERSION} - Test only runs on Solaris"
|
|
||||||
exit 0;
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# copy keystore into write-able location
|
# copy keystore into write-able location
|
||||||
if [ -d ${TESTCLASSES}${FS}pkcs11_softtoken ]
|
if [ -d ${TESTCLASSES}${FS}pkcs11_softtoken ]
|
||||||
then
|
then
|
||||||
@ -127,12 +138,6 @@ then
|
|||||||
USED_FILE_LIST="${TESTCLASSES}${FS}pkcs11_softtoken"
|
USED_FILE_LIST="${TESTCLASSES}${FS}pkcs11_softtoken"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd ${TESTCLASSES}
|
|
||||||
${TESTJAVA}${FS}bin${FS}javac \
|
|
||||||
-classpath ${TESTCLASSES} \
|
|
||||||
-d ${TESTCLASSES} \
|
|
||||||
${TESTSRC}${FS}SecretKeysBasic.java
|
|
||||||
|
|
||||||
# run test
|
# run test
|
||||||
cd ${TESTSRC}
|
cd ${TESTSRC}
|
||||||
${TESTJAVA}${FS}bin${FS}java \
|
${TESTJAVA}${FS}bin${FS}java \
|
||||||
|
Loading…
Reference in New Issue
Block a user