mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
20 lines
482 B
Text
20 lines
482 B
Text
# @TEST-EXEC: zeek -b -r $TRACES/ticks-dns-1hr.pcap %INPUT > out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
global runs = 0;
|
|
|
|
event test(schedule_time: time)
|
|
{
|
|
print fmt("[%D] Test was scheduled at %D for %D", network_time(),
|
|
schedule_time, current_event_time());
|
|
}
|
|
|
|
event new_connection(c: connection)
|
|
{
|
|
local nt = network_time();
|
|
print fmt(">> Run %s (%D)", runs, nt);
|
|
schedule 30 mins { test(nt) };
|
|
schedule 15 mins { test(nt) };
|
|
print fmt("<< Run %s (%D)", runs, nt);
|
|
++runs;
|
|
}
|