zeek/testing/btest/core/pcap/dumper.zeek
Jon Siwek 3e9ac00f21 Separate stdout from stderr in btest baselines
Redirecting both to the same file can show platform-specific differences
(e.g. Alpine), likely due to different buffering defaults.
2021-03-30 16:23:23 -07:00

12 lines
545 B
Text

# @TEST-REQUIRES: which hexdump
# @TEST-EXEC: zeek -b -r $TRACES/workshop_2011_browse.trace -w dump
# @TEST-EXEC: hexdump -C $TRACES/workshop_2011_browse.trace >1
# @TEST-EXEC: hexdump -C dump >2
# @TEST-EXEC: diff -U3 1 2 >diff.output || true
# Remove first two lines of diff since they may contain timestamps
# @TEST-EXEC: awk 'NR>2' diff.output >output
# Note that we're diff'ing the diff because there is an expected
# difference in the pcaps: namely, the snaplen setting stored in the
# global pcap header.
# @TEST-EXEC: btest-diff output