test/sun/security/tools/keytool/StandardAlgName.sh

Print this page
rev 8975 : 8028537: PPC64: Updated the JDK regression tests to run on AIX
Reviewed-by: alanb
Contributed-by: luchsh@linux.vnet.ibm.com, spoole@linux.vnet.ibm.com, volker.simonis@gmail.com


  29 # @author Andrew Fan
  30 #
  31 # @run shell/timeout=240 StandardAlgName.sh
  32 # set a few environment variables so that the shell-script can run stand-alone
  33 # in the source directory
  34 if [ "${TESTSRC}" = "" ] ; then
  35   TESTSRC="."
  36 fi
  37 if [ "${TESTCLASSES}" = "" ] ; then
  38   TESTCLASSES="."
  39 fi
  40 if [ "${TESTJAVA}" = "" ] ; then
  41   echo "TESTJAVA not set.  Test cannot execute."
  42   echo "FAILED!!!"
  43   exit 1
  44 fi
  45 
  46 # set platform-dependent variables
  47 OS=`uname -s`
  48 case "$OS" in
  49   SunOS | Linux | Darwin )
  50     NULL=/dev/null
  51     PS=":"
  52     FS="/"
  53     ;;
  54   CYGWIN* )
  55     NULL=/dev/null
  56     PS=";"
  57     FS="/"
  58     ;;
  59   Windows_* )
  60     NULL=NUL
  61     PS=";"
  62     FS="\\"
  63     ;;
  64   * )
  65     echo "Unrecognized operating system!"
  66     exit 1;
  67     ;;
  68 esac
  69 




  29 # @author Andrew Fan
  30 #
  31 # @run shell/timeout=240 StandardAlgName.sh
  32 # set a few environment variables so that the shell-script can run stand-alone
  33 # in the source directory
  34 if [ "${TESTSRC}" = "" ] ; then
  35   TESTSRC="."
  36 fi
  37 if [ "${TESTCLASSES}" = "" ] ; then
  38   TESTCLASSES="."
  39 fi
  40 if [ "${TESTJAVA}" = "" ] ; then
  41   echo "TESTJAVA not set.  Test cannot execute."
  42   echo "FAILED!!!"
  43   exit 1
  44 fi
  45 
  46 # set platform-dependent variables
  47 OS=`uname -s`
  48 case "$OS" in
  49   SunOS | Linux | Darwin | AIX )
  50     NULL=/dev/null
  51     PS=":"
  52     FS="/"
  53     ;;
  54   CYGWIN* )
  55     NULL=/dev/null
  56     PS=";"
  57     FS="/"
  58     ;;
  59   Windows_* )
  60     NULL=NUL
  61     PS=";"
  62     FS="\\"
  63     ;;
  64   * )
  65     echo "Unrecognized operating system!"
  66     exit 1;
  67     ;;
  68 esac
  69