< prev index next >

test/jdk/sun/security/pkcs11/KeyStore/SecretKeysBasic.sh

Print this page
rev 59383 : [mq]: final
   1 #
   2 # Copyright (c) 2008, 2018, 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 #


  45 if [ "${TESTCLASSES}" = "" ] ; then
  46     TESTCLASSES=`pwd`
  47 fi
  48 if [ "${TESTJAVA}" = "" ] ; then
  49     JAVAC_CMD=`which javac`
  50     TESTJAVA=`dirname $JAVAC_CMD`/..
  51 fi
  52 echo TESTSRC=${TESTSRC}
  53 echo TESTCLASSES=${TESTCLASSES}
  54 echo TESTJAVA=${TESTJAVA}
  55 echo CPAPPEND=${CPAPPEND}
  56 echo ""
  57 
  58 #DEBUG=sunpkcs11,pkcs11keystore
  59 
  60 echo DEBUG=${DEBUG}
  61 echo ""
  62 
  63 OS=`uname -s`
  64 case "$OS" in
  65   SunOS )
  66     FS="/"
  67     PS=":"
  68     OS_VERSION=`uname -r`
  69     case "${OS_VERSION}" in
  70       5.1* )
  71         SOFTTOKEN_DIR=${TESTCLASSES}
  72         export SOFTTOKEN_DIR
  73         TOKENS="nss solaris"
  74         ;;
  75       * )
  76         # SunPKCS11-Solaris Test only runs on Solaris 5.10 and later
  77         TOKENS="nss"
  78         ;;
  79     esac
  80     ;;
  81   Windows_* )
  82     FS="\\"
  83     PS=";"
  84     TOKENS="nss"
  85     ;;
  86   CYGWIN* )
  87     FS="/"
  88     PS=";"
  89     TOKENS="nss"
  90     ;;
  91   * )
  92     FS="/"
  93     PS=":"
  94     TOKENS="nss"
  95     ;;
  96 esac
  97 
  98 CP="cp -f"
  99 RM="rm -rf"
 100 MKDIR="mkdir -p"


   1 #
   2 # Copyright (c) 2008, 2020, 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 #


  45 if [ "${TESTCLASSES}" = "" ] ; then
  46     TESTCLASSES=`pwd`
  47 fi
  48 if [ "${TESTJAVA}" = "" ] ; then
  49     JAVAC_CMD=`which javac`
  50     TESTJAVA=`dirname $JAVAC_CMD`/..
  51 fi
  52 echo TESTSRC=${TESTSRC}
  53 echo TESTCLASSES=${TESTCLASSES}
  54 echo TESTJAVA=${TESTJAVA}
  55 echo CPAPPEND=${CPAPPEND}
  56 echo ""
  57 
  58 #DEBUG=sunpkcs11,pkcs11keystore
  59 
  60 echo DEBUG=${DEBUG}
  61 echo ""
  62 
  63 OS=`uname -s`
  64 case "$OS" in
















  65   Windows_* )
  66     FS="\\"
  67     PS=";"
  68     TOKENS="nss"
  69     ;;
  70   CYGWIN* )
  71     FS="/"
  72     PS=";"
  73     TOKENS="nss"
  74     ;;
  75   * )
  76     FS="/"
  77     PS=":"
  78     TOKENS="nss"
  79     ;;
  80 esac
  81 
  82 CP="cp -f"
  83 RM="rm -rf"
  84 MKDIR="mkdir -p"


< prev index next >