test/sun/security/tools/policytool/SaveAs.sh

Print this page
rev 7285 : 8015274: TEST_BUG: Step2: After selecting 'View Warning Log', it is empty instead of FileNotFound.
8015276: TEST_BUG: The 'ptool.test' can't be saved in the 'tmp' folder.
8016158: Instruction is not clear on how to use keytool to create JKS store in case


  35 if [ "${TESTSRC}" = "" ] ; then
  36   TESTSRC="."
  37 fi
  38 if [ "${TESTCLASSES}" = "" ] ; then
  39   TESTCLASSES="."
  40 fi
  41 if [ "${TESTJAVA}" = "" ] ; then
  42   echo "TESTJAVA not set.  Test cannot execute."
  43   echo "FAILED!!!"
  44   exit 1
  45 fi
  46 
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux | Darwin )
  51     NULL=/dev/null
  52     PS=":"
  53     FS="/"
  54     ;;





  55   Windows* )
  56     NULL=NUL
  57     PS=";"
  58     FS="\\"
  59     ;;
  60   * )
  61     echo "Unrecognized system!"
  62     exit 1;
  63     ;;
  64 esac
  65 
  66 # the test code
  67 
  68 echo "HELLO!"
  69 
  70 ${TESTJAVA}${FS}bin${FS}policytool
  71 
  72 exit $?
  73 


  35 if [ "${TESTSRC}" = "" ] ; then
  36   TESTSRC="."
  37 fi
  38 if [ "${TESTCLASSES}" = "" ] ; then
  39   TESTCLASSES="."
  40 fi
  41 if [ "${TESTJAVA}" = "" ] ; then
  42   echo "TESTJAVA not set.  Test cannot execute."
  43   echo "FAILED!!!"
  44   exit 1
  45 fi
  46 
  47 # set platform-dependent variables
  48 OS=`uname -s`
  49 case "$OS" in
  50   SunOS | Linux | Darwin )
  51     NULL=/dev/null
  52     PS=":"
  53     FS="/"
  54     ;;
  55   CYGWIN* )
  56     NULL=/dev/null
  57     PS=";"
  58     FS="/"
  59     ;;
  60   Windows* )
  61     NULL=NUL
  62     PS=";"
  63     FS="\\"
  64     ;;
  65   * )
  66     echo "Unrecognized system!"
  67     exit 1;
  68     ;;
  69 esac
  70 
  71 # the test code
  72 
  73 echo "HELLO!"
  74 
  75 ${TESTJAVA}${FS}bin${FS}policytool
  76 
  77 exit $?
  78