mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00

This (1) fixes an issue where signature files supplied on the command line wouldn't pass through the hooks, and (2) prepares for allowing hooks to supply the content of a signature file directly.
19 lines
562 B
Text
19 lines
562 B
Text
# @TEST-EXEC: ${DIST}/auxil/zeek-aux/plugin-support/init-plugin -u . Demo Hooks
|
|
# @TEST-EXEC: cp -r %DIR/hooks-plugin/* .
|
|
# @TEST-EXEC: ./configure --zeek-dist=${DIST} && make
|
|
# @TEST-EXEC: ZEEK_PLUGIN_ACTIVATE="Demo::Hooks" ZEEK_PLUGIN_PATH=`pwd` zeek -b -r $TRACES/http/get.trace %INPUT s1.sig 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
@unload base/misc/version
|
|
@load base/init-default
|
|
|
|
@load-sigs s2
|
|
|
|
@TEST-START-FILE s1.sig
|
|
# Just empty.
|
|
@TEST-END-FILE
|
|
|
|
@TEST-START-FILE s2.sig
|
|
# Just empty.
|
|
@TEST-END-FILE
|
|
|