mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
btest/plugins/hooks: Run in bare mode
Motivation is basically the same as in 88bb527026
.
For plugin.hooks, one example is that adding a new option in the default script
changes the baseline due registration of change handlers. Also, the connection
record is printed in various places, resulting in churn when the default
scripts change.
This commit is contained in:
parent
4a8f868471
commit
07ac6fa074
2 changed files with 311 additions and 2449 deletions
File diff suppressed because one or more lines are too long
|
@ -3,9 +3,12 @@
|
|||
# @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 -r $TRACES/http/get.trace %INPUT s1.sig 2>&1 | $SCRIPTS/diff-remove-abspath | sort | uniq >output
|
||||
# @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
|
||||
|
||||
@load base/protocols/conn
|
||||
@load base/protocols/http
|
||||
|
||||
@load-sigs s2
|
||||
|
||||
@TEST-START-FILE s1.sig
|
||||
|
@ -16,3 +19,13 @@
|
|||
# Just empty.
|
||||
@TEST-END-FILE
|
||||
|
||||
# The built-in JavaScript plugin's __load__.zeek file uses cat() in its
|
||||
# __load__.zeek file, causing subtle baseline diffs as it is not enabled
|
||||
# on all platforms. Provide a mock file that is picked up before the
|
||||
# plugin's file due to `.` being first in ZEEKPATH. Sorry.
|
||||
@TEST-START-FILE Zeek_JavaScript/__load__.zeek
|
||||
module JavaScript;
|
||||
export {
|
||||
global files: vector of string;
|
||||
}
|
||||
@TEST-END-FILE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue