< prev index next >

test/jdk/sun/security/tools/keytool/i18n.sh

Print this page
rev 48460 : 8194869: [TESTBUG][aix, s390] Adapt tests to platforms.
Reviewed-by: mbaesken, simonis


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


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