zeek/testing/btest/zeek-aux/zeek-archiver/custom-delimiter.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

12 lines
387 B
Text

# @TEST-DOC: Use a custom delimiter in the resulting logs.
# @TEST-EXEC: bash %INPUT
. "${SCRIPTS}/zeek-aux/zeek-archiver-common.sh"
log_in=test_2020-07-16-09-43-10_2020-07-16-09-43-10_.log
log_out=test.09:43:10-09:43:10.log
echo hello > "$(queue_dir)/${log_in}"
zeek-archiver -1 -v -d _ "$(queue_dir)" "$(archive_dir)"
test "$(gunzip <$(archive_date_dir)/${log_out}.gz)" == "hello"