zeek/auxil/zeekctl/testing/command/status-timefmt.test
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

23 lines
563 B
Plaintext

# Test that the status command can output status with an alternate time format
# as specified with the timefmt zeekctl option.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: TEST_DIFF_CANONIFIER="$SCRIPTS/diff-status-output --time | $SCRIPTS/diff-remove-timestamps-yyyy-mm-dd" btest-diff out
. zeekctl-test-setup
while read line; do installfile $line; done << EOF
etc/zeekctl.cfg__no_email
etc/node.cfg__cluster
bin/zeek__test
EOF
echo "timefmt=%Y-%m-%d" >> $ZEEKCTL_INSTALL_PREFIX/etc/zeekctl.cfg
zeekctl install
zeekctl start
zeekctl status > out
zeekctl stop