Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

13 lines
433 B
Plaintext

# Verify log name metadata behavior: check that suffixes get applied correctly.
# @TEST-EXEC: bash %INPUT
. "$SCRIPTS/zeek-archiver-common.sh"
log_in=test__2020-07-16-09-43-10__2020-07-16-09-43-10__log_suffix=logger-test__.log
log_out=test.09:43:10-09:43:10-logger-test.log
echo hello > "$(queue_dir)/${log_in}"
zeek-archiver -1 -v "$(queue_dir)" "$(archive_dir)"
test "$(gunzip <"$(archive_date_dir)/${log_out}.gz")" == "hello"