mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00

This updates Baselines, changes paths to scripts and log files, adds TEST-DOC annotations, and various other cleanups that make the zeek-aux tests more like the rest of the zeek tests.
38 lines
2 KiB
Text
38 lines
2 KiB
Text
# @TEST-DOC: Test zeek-cut with -c and -C options.
|
|
#
|
|
|
|
# Show first header for one log file.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | zeek-cut -c > one-1st-nocols
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff one-1st-nocols
|
|
|
|
# Show all headers for one log file.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | zeek-cut -C > one-all-nocols
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff one-all-nocols
|
|
|
|
# Show first header for two log files.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/test.log | zeek-cut -c uid ts > two-1st-withcols
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff two-1st-withcols
|
|
|
|
# Show all headers for two log files.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/test.log | zeek-cut -C uid ts > two-all-withcols
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff two-all-withcols
|
|
|
|
# Show all headers for two logs (-C overrides -c).
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/test.log | zeek-cut -c -C uid ts > both-c-opts-all
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff both-c-opts-all
|
|
|
|
# Show first header for two logs (-c overrides -C).
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/test.log | zeek-cut -C -c uid ts > both-c-opts-one
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff both-c-opts-one
|
|
|
|
# Log files use different field separators.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/conncomma.log | zeek-cut -C proto uid > nondefault-separator
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff nondefault-separator
|
|
|
|
# Column order changes between two log files.
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/conntimelast.log | zeek-cut -C > different-col-order
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff different-col-order
|
|
|
|
# Column order changes between two log files (and don't show all columns).
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log ${ZEEK_AUX_LOGS}/conntimelast.log | zeek-cut -C ts uid > different-col-order-some
|
|
# @TEST-EXEC: TEST_DIFF_CANONIFIER= btest-diff different-col-order-some
|