test/sun/security/tools/jarsigner/AlgOptions.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 # @run shell AlgOptions.sh
  30 #
  31 
  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     CP="${FS}bin${FS}cp -f"
  54     ;;
  55   CYGWIN* )
  56     NULL=/dev/null
  57     PS=";"
  58     FS="/"
  59     CP="cp -f"
  60     ;;
  61   Windows_* )
  62     NULL=NUL
  63     PS=";"
  64     FS="\\"
  65     CP="cp -f"
  66     ;;
  67   * )
  68     echo "Unrecognized operating system!"
  69     exit 1;




  29 # @run shell AlgOptions.sh
  30 #
  31 
  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     CP="${FS}bin${FS}cp -f"
  54     ;;
  55   CYGWIN* )
  56     NULL=/dev/null
  57     PS=";"
  58     FS="/"
  59     CP="cp -f"
  60     ;;
  61   Windows_* )
  62     NULL=NUL
  63     PS=";"
  64     FS="\\"
  65     CP="cp -f"
  66     ;;
  67   * )
  68     echo "Unrecognized operating system!"
  69     exit 1;