summaryrefslogtreecommitdiff
path: root/test/suite-decryption.sh
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-01-20 12:26:14 -0800
committerAnders Broman <a.broman58@gmail.com>2015-01-23 13:14:10 +0000
commitb32e39e19858120785b045d54acc4557cde2d929 (patch)
tree63a7dbe076aac8eeb47ecbfe9f3c7a8156ed96ec /test/suite-decryption.sh
parentf5c0bd2b765e98a43a545d9fe7b0174a53ae86e9 (diff)
downloadwireshark-b32e39e19858120785b045d54acc4557cde2d929.tar.gz
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 <a.broman58@gmail.com>
Diffstat (limited to 'test/suite-decryption.sh')
-rwxr-xr-xtest/suite-decryption.sh33
1 files changed, 22 insertions, 11 deletions
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
}