Add test for CaptureLoss::Too_Little_Traffic

This commit is contained in:
Vlad Grigorescu 2020-10-08 11:34:04 -05:00
parent 59620ed75d
commit c58cf69890
3 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# @TEST-EXEC: zeek -b -r $TRACES/dns53.pcap %INPUT
# @TEST-EXEC: btest-diff capture_loss.log
# @TEST-EXEC: btest-diff notice.log
@load misc/capture-loss
module CaptureLoss;
event zeek_init()
{
event take_measurement(network_time(), 0, 0);
}