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

Print this page




  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."
  76     exit 0
  77 fi
  78 else
  79     echo "Received the expected debug output."
  80     exit 0
  81 fi


  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} ${TESTJAVAOPTS} -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."
  76     exit 0
  77 fi
  78 else
  79     echo "Received the expected debug output."
  80     exit 0
  81 fi