mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Initial move of zeek-aux btests and related files to zeek btest dir
This commit is contained in:
parent
c05da53275
commit
7887451a66
148 changed files with 0 additions and 0 deletions
18
testing/btest/zeek-aux/zeek-cut/time-fmt-env.test
Normal file
18
testing/btest/zeek-aux/zeek-cut/time-fmt-env.test
Normal file
|
@ -0,0 +1,18 @@
|
|||
# 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: 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: 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: 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: btest-diff env-utc-fmt
|
Loading…
Add table
Add a link
Reference in a new issue