mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +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.
19 lines
591 B
Text
19 lines
591 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/wikipedia.trace %INPUT
|
|
# @TEST-EXEC: btest-diff stats.log
|
|
|
|
@load policy/misc/stats
|
|
|
|
event load_sample(samples: load_sample_info, CPU: interval, dmem: int)
|
|
{
|
|
# This output not part of baseline as it varies, but guess this test
|
|
# should still exist to cover potential memory leaks.
|
|
print CPU;
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
# Various fields will be unstable for use in baseline, so use one that is.
|
|
local filter: Log::Filter = [$name="pkt-stats", $include=set("pkts_proc")];
|
|
Log::remove_filter(Stats::LOG, "default");
|
|
Log::add_filter(Stats::LOG, filter);
|
|
}
|