From b32e39e19858120785b045d54acc4557cde2d929 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Tue, 20 Jan 2015 12:26:14 -0800 Subject: Test suite: Add verbosity to the HTTP2 test. We should probably do the same for the other decryption tests but we're having issues with HTTP2 right now. Change-Id: I8e8f5da200a29a5ca1cddb39c082bb7ee12d1eaf Reviewed-on: https://code.wireshark.org/review/6686 Reviewed-by: Anders Broman --- test/suite-decryption.sh | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) (limited to 'test') diff --git a/test/suite-decryption.sh b/test/suite-decryption.sh index 25daff2684..bc8eb1c0b7 100755 --- a/test/suite-decryption.sh +++ b/test/suite-decryption.sh @@ -187,17 +187,28 @@ decryption_step_ikev1_certs() { # HTTP2 (HPACK) decryption_step_http2() { - env $TS_DC_ENV $TSHARK $TS_DC_ARGS \ - -Tfields -e http2.header.value \ - -d tcp.port==3000,http2 \ - -r "$CAPTURE_DIR/packet-h2-14_headers.pcapng" \ - | grep "nghttp2" > /dev/null 2>&1 - RETURNVALUE=$? - if [ ! $RETURNVALUE -eq $EXIT_OK ]; then - test_step_failed "Failed to decode HTTP2 HPACK" - return - fi - test_step_ok + env $TS_DC_ENV $TSHARK $TS_DC_ARGS \ + -Tfields -e http2.header.value \ + -d tcp.port==3000,http2 \ + -r "$CAPTURE_DIR/packet-h2-14_headers.pcapng" \ + > ./testout.txt + grep "nghttp2" ./testout.txt > /dev/null 2>&1 + RETURNVALUE=$? + if [ ! $RETURNVALUE -eq $EXIT_OK ]; then + env $TS_DC_ENV $TSHARK $TS_DC_ARGS \ + -V \ + -d tcp.port==3000,http2 \ + -r "$CAPTURE_DIR/packet-h2-14_headers.pcapng" \ + > ./testout2.txt + echo + echo "Test output:" + cat ./testout.txt + echo "Verbose output:" + cat ./testout2.txt + test_step_failed "Failed to decode HTTP2 HPACK" + return + fi + test_step_ok } -- cgit v1.2.3