zeek/auxil/zeekctl/testing/helper/make-archive-name.test
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

18 lines
608 B
Plaintext

# Test that the make-archive-name script produces the expected output.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: btest-diff out1
# @TEST-EXEC: btest-diff out2
# @TEST-EXEC: btest-diff out3
. zeekctl-test-setup
makearchivename=$ZEEKCTL_INSTALL_PREFIX/share/zeekctl/scripts/make-archive-name
# Test with all arguments specified
${makearchivename} conn.log ascii 2013-12-30-23-39-31 2013-12-30-23-40-00 > out1
${makearchivename} zeekctltest.extension ascii 2013-01-02-00-03-05 2013-01-02-00-09-00 > out2
# Test without the last optional argument
${makearchivename} test.log ascii 2013-01-02-00-03-05 > out3