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.
15 lines
667 B
Text
15 lines
667 B
Text
# @TEST-DOC: Test zeek-cut time conversion with invalid log files.
|
|
#
|
|
|
|
# The "#types" log header line is missing.
|
|
# @TEST-EXEC-FAIL: grep -v '^#types' ${ZEEK_AUX_LOGS}/conn.log | zeek-cut -d 2> missing-types-header
|
|
# @TEST-EXEC: btest-diff missing-types-header
|
|
|
|
# All log header lines are missing.
|
|
# @TEST-EXEC: grep -v '^#' ${ZEEK_AUX_LOGS}/conn.log | zeek-cut -d > no-header-time
|
|
# @TEST-EXEC: btest-diff no-header-time
|
|
|
|
# Time field is invalid or out of range
|
|
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/invalid-time.log | zeek-cut -d > invalid-time-field 2> invalid-time-field.err
|
|
# @TEST-EXEC: btest-diff invalid-time-field
|
|
# @TEST-EXEC: btest-diff invalid-time-field.err
|