mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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.
This commit is contained in:
parent
7887451a66
commit
d7ba381d12
61 changed files with 311 additions and 326 deletions
|
@ -1,18 +1,18 @@
|
|||
# Test zeek-cut with ZEEK_CUT_TIMEFMT environment variable.
|
||||
# @TEST-DOC: Test zeek-cut with ZEEK_CUT_TIMEFMT environment variable.
|
||||
#
|
||||
|
||||
# Output local time with format from environment.
|
||||
# @TEST-EXEC: cat $LOGS/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -d > env-local
|
||||
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -d > env-local
|
||||
# @TEST-EXEC: btest-diff env-local
|
||||
|
||||
# Output UTC with format from environment.
|
||||
# @TEST-EXEC: cat $LOGS/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -u > env-utc
|
||||
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -u > env-utc
|
||||
# @TEST-EXEC: btest-diff env-utc
|
||||
|
||||
# The "-D" option overrides environment variable.
|
||||
# @TEST-EXEC: cat $LOGS/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -D "%H %M %y %m %d" > env-local-fmt
|
||||
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -D "%H %M %y %m %d" > env-local-fmt
|
||||
# @TEST-EXEC: btest-diff env-local-fmt
|
||||
|
||||
# The "-U" option overrides environment variable.
|
||||
# @TEST-EXEC: cat $LOGS/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -U "%H %M %y %m %d" > env-utc-fmt
|
||||
# @TEST-EXEC: cat ${ZEEK_AUX_LOGS}/conn.log | ZEEK_CUT_TIMEFMT="%H%M_%y%m%d" zeek-cut -U "%H %M %y %m %d" > env-utc-fmt
|
||||
# @TEST-EXEC: btest-diff env-utc-fmt
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue