test/sun/security/tools/policytool/UsePolicy.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


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


  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 system!"
  66     exit 1;
  67     ;;
  68 esac
  69 
  70 # the test code
  71 
  72 echo "HELLO!"
  73 
  74 ${TESTJAVA}${FS}bin${FS}policytool
  75 
  76 exit $?
  77