< prev index next >

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

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


  74     TOKEN=$2
  75     TEST=$3
  76 elif [ $# = '2' ] ; then
  77     TOKEN=$1
  78     TEST=$2
  79 else
  80     TOKEN="nss"
  81     TEST="basic"
  82 fi
  83 
  84 DEBUG=sunpkcs11,pkcs11keystore
  85 
  86 echo RECOMPILE=${RECOMPILE}
  87 echo TOKEN=${TOKEN}
  88 echo TEST=${TEST}
  89 echo DEBUG=${DEBUG}
  90 echo ""
  91 
  92 OS=`uname -s`
  93 case "$OS" in
  94   SunOS )
  95     ARCH=`isainfo`
  96     case "$ARCH" in
  97       sparc* )
  98         FS="/"
  99         PS=":"
 100         CP="${FS}bin${FS}cp"
 101         CHMOD="${FS}bin${FS}chmod"
 102         ;;
 103       i[3-6]86 )
 104         FS="/"
 105         PS=":"
 106         CP="${FS}bin${FS}cp"
 107         CHMOD="${FS}bin${FS}chmod"
 108         ;;
 109       amd64* )
 110         FS="/"
 111         PS=":"
 112         CP="${FS}bin${FS}cp"
 113         CHMOD="${FS}bin${FS}chmod"
 114         ;;
 115       * )
 116 #     ?itanium? )
 117 #     amd64* )
 118         echo "Unsupported System: Solaris ${ARCH}"
 119         exit 0;
 120         ;;
 121     esac
 122     ;;
 123   Linux )
 124     ARCH=`uname -m`
 125     case "$ARCH" in
 126       i[3-6]86 ) 
 127         FS="/"
 128         PS=":"
 129         CP="${FS}bin${FS}cp"
 130         CHMOD="${FS}bin${FS}chmod"
 131         ;;
 132       * )
 133 #     ia64 )
 134 #     x86_64 )
 135         echo "Unsupported System: Linux ${ARCH}"
 136         exit 0;
 137         ;;
 138     esac
 139     ;;
 140   Windows* )  
 141     FS="\\"
 142     PS=";"


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


  74     TOKEN=$2
  75     TEST=$3
  76 elif [ $# = '2' ] ; then
  77     TOKEN=$1
  78     TEST=$2
  79 else
  80     TOKEN="nss"
  81     TEST="basic"
  82 fi
  83 
  84 DEBUG=sunpkcs11,pkcs11keystore
  85 
  86 echo RECOMPILE=${RECOMPILE}
  87 echo TOKEN=${TOKEN}
  88 echo TEST=${TEST}
  89 echo DEBUG=${DEBUG}
  90 echo ""
  91 
  92 OS=`uname -s`
  93 case "$OS" in





























  94   Linux )
  95     ARCH=`uname -m`
  96     case "$ARCH" in
  97       i[3-6]86 ) 
  98         FS="/"
  99         PS=":"
 100         CP="${FS}bin${FS}cp"
 101         CHMOD="${FS}bin${FS}chmod"
 102         ;;
 103       * )
 104 #     ia64 )
 105 #     x86_64 )
 106         echo "Unsupported System: Linux ${ARCH}"
 107         exit 0;
 108         ;;
 109     esac
 110     ;;
 111   Windows* )  
 112     FS="\\"
 113     PS=";"


< prev index next >