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

* origin/topic/seth/zeek_init: Some more testing fixes. Update docs and tests for bro_(init|done) -> zeek_(init|done) Implement the zeek_init handler.
22 lines
280 B
Text
22 lines
280 B
Text
# @TEST-EXEC: bro -b %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
function assign(v: vector of any)
|
|
{
|
|
v[|v|] = |v|;
|
|
}
|
|
|
|
function append(v: vector of any)
|
|
{
|
|
v += |v|;
|
|
}
|
|
|
|
event zeek_init()
|
|
{
|
|
local v: vector of count;
|
|
assign(v);
|
|
assign(v);
|
|
append(v);
|
|
append(v);
|
|
print v;
|
|
}
|