zeek/testing/btest/zeek-aux/zeek-cut/time-bad-logs.test
Tim Wojtulewicz d7ba381d12 Adapt zeek-aux btests to zeek structure
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.
2025-09-11 13:00:53 -07:00

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