mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

Redirecting both to the same file can show platform-specific differences (e.g. Alpine), likely due to different buffering defaults.
12 lines
545 B
Text
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
|