16 lines
515 B
Plaintext
16 lines
515 B
Plaintext
# Verify the source file still exists and the destination wasn't created
|
|
# (or removed) when the compression command fails.
|
|
# @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
|
|
log_out=test.09:43:10-09:43:10.log
|
|
|
|
echo hello > "$(queue_dir)/${log_in}"
|
|
zeek-archiver -1 -v --compress=false,/bin/false "$(queue_dir)" "$(archive_dir)"
|
|
|
|
if [[ ! -e "$(queue_dir)/${log_in}" ]] || [[ -e "$(archive_date_dir)/${log_out}.false" ]] ; then
|
|
exit 1
|
|
fi
|