mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

- Use `-b` most everywhere, it will save time. - Start some intel tests upon the input file being fully read instead of at an arbitrary time. - Improve termination condition for some sumstats/cluster tests. - Filter uninteresting output from some supervisor tests. - Test for `notice_policy.log` is no longer needed.
23 lines
476 B
Text
23 lines
476 B
Text
# @TEST-EXEC: zeek -b -C -r $TRACES/var-services-std-ports.trace %INPUT >output
|
|
# @TEST-EXEC: btest-diff output
|
|
|
|
function inform_me(s: set[string], idx: string): interval
|
|
{
|
|
print fmt("expired %s", idx);
|
|
return 0secs;
|
|
}
|
|
|
|
global s: set[string] &create_expire=1secs &expire_func=inform_me;
|
|
|
|
event zeek_init()
|
|
{
|
|
add s["i"];
|
|
add s["am"];
|
|
add s["here"];
|
|
}
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
add s[fmt("%s", c$id)];
|
|
print s;
|
|
}
|