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

16 lines
455 B
Plaintext

# Test that a plugin can add content to the zeekctl-config.zeek file.
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: btest-diff out
. zeekctl-test-setup
while read line; do installfile $line; done << EOF
plugins/zeekctlconfigtest.py $ZEEKCTL_INSTALL_PYTHON_DIR/zeekctl/plugins --new
EOF
zeekctlconfig=$ZEEKCTL_INSTALL_PREFIX/spool/installed-scripts-do-not-touch/auto/zeekctl-config.zeek
zeekctl install
sed -n '/Begin code from/,$p' ${zeekctlconfig} > out