test/sun/security/ssl/com/sun/net/ssl/internal/ssl/EngineArgs/DebugReportsOneExtraByte.sh

Print this page




  34 OS=`uname -s`
  35 case "$OS" in
  36   SunOS | Linux | Darwin )
  37     PS=":"
  38     FS="/"
  39     ;;
  40   CYGWIN* )
  41     PS=";"
  42     FS="/"
  43     ;;
  44   Windows* )
  45     PS=";"
  46     FS="\\"
  47     ;;
  48   * )
  49     echo "Unrecognized system!"
  50     exit 1;
  51     ;;
  52 esac
  53 
  54 ${TESTJAVA}${FS}bin${FS}javac -d . ${TESTSRC}${FS}DebugReportsOneExtraByte.java

  55 
  56 STRING='main, WRITE: TLSv1 Application Data, length = 8'
  57 
  58 echo "Examining debug output for the string:"
  59 echo "${STRING}"
  60 echo "========="
  61 
  62 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Djavax.net.debug=all \
  63     -Dtest.src=${TESTSRC} \
  64     DebugReportsOneExtraByte 2>&1 | \
  65     grep "${STRING}"
  66 RETVAL=$?
  67 
  68 echo "========="
  69 
  70 if [ ${RETVAL} -ne 0 ]; then
  71     echo "Did NOT see the expected debug output."
  72     exit 1
  73 else
  74     echo "Received the expected debug output."


  34 OS=`uname -s`
  35 case "$OS" in
  36   SunOS | Linux | Darwin )
  37     PS=":"
  38     FS="/"
  39     ;;
  40   CYGWIN* )
  41     PS=";"
  42     FS="/"
  43     ;;
  44   Windows* )
  45     PS=";"
  46     FS="\\"
  47     ;;
  48   * )
  49     echo "Unrecognized system!"
  50     exit 1;
  51     ;;
  52 esac
  53 
  54 ${COMPILEJAVA}${FS}bin${FS}javac ${TESTJAVACOPTS} ${TESTTOOLVMOPTS} -d . \
  55     ${TESTSRC}${FS}DebugReportsOneExtraByte.java
  56 
  57 STRING='main, WRITE: TLSv1 Application Data, length = 8'
  58 
  59 echo "Examining debug output for the string:"
  60 echo "${STRING}"
  61 echo "========="
  62 
  63 ${TESTJAVA}${FS}bin${FS}java ${TESTVMOPTS} -Djavax.net.debug=all \
  64     -Dtest.src=${TESTSRC} \
  65     DebugReportsOneExtraByte 2>&1 | \
  66     grep "${STRING}"
  67 RETVAL=$?
  68 
  69 echo "========="
  70 
  71 if [ ${RETVAL} -ne 0 ]; then
  72     echo "Did NOT see the expected debug output."
  73     exit 1
  74 else
  75     echo "Received the expected debug output."