mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 04:28:20 +00:00
Remove loading of listen.bro in tests that do not need it
Removed the loading of "frameworks/communication/listen" from some tests that don't need that functionality. This is to avoid serializing these tests.
This commit is contained in:
parent
361a5dc2d8
commit
e9102f3de4
3 changed files with 6 additions and 3 deletions
|
@ -9,9 +9,10 @@
|
||||||
1.2.3.4 Intel::ADDR source1 this host is bad http://some-data-distributor.com/1
|
1.2.3.4 Intel::ADDR source1 this host is bad http://some-data-distributor.com/1
|
||||||
# @TEST-END-FILE
|
# @TEST-END-FILE
|
||||||
|
|
||||||
@load frameworks/communication/listen
|
|
||||||
@load frameworks/intel/do_expire
|
@load frameworks/intel/do_expire
|
||||||
|
|
||||||
|
redef exit_only_after_terminate = T;
|
||||||
|
|
||||||
redef Intel::read_files += { "../intel.dat" };
|
redef Intel::read_files += { "../intel.dat" };
|
||||||
redef enum Intel::Where += { SOMEWHERE };
|
redef enum Intel::Where += { SOMEWHERE };
|
||||||
redef Intel::item_expiration = 9sec;
|
redef Intel::item_expiration = 9sec;
|
||||||
|
@ -44,6 +45,8 @@ event do_it()
|
||||||
|
|
||||||
if ( runs < 6 )
|
if ( runs < 6 )
|
||||||
schedule 3sec { do_it() };
|
schedule 3sec { do_it() };
|
||||||
|
else
|
||||||
|
terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
event Intel::match(s: Intel::Seen, items: set[Intel::Item])
|
event Intel::match(s: Intel::Seen, items: set[Intel::Item])
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
192.168.128.0/18 Intel::SUBNET source1 this subnetwork might be baaad http://some-data-distributor.com/5
|
192.168.128.0/18 Intel::SUBNET source1 this subnetwork might be baaad http://some-data-distributor.com/5
|
||||||
# @TEST-END-FILE
|
# @TEST-END-FILE
|
||||||
|
|
||||||
@load frameworks/communication/listen
|
redef exit_only_after_terminate = T;
|
||||||
|
|
||||||
redef Intel::read_files += { "../intel.dat" };
|
redef Intel::read_files += { "../intel.dat" };
|
||||||
redef enum Intel::Where += { SOMEWHERE };
|
redef enum Intel::Where += { SOMEWHERE };
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
192.168.1.1 Intel::ADDR source1 this host is just plain baaad http://some-data-distributor.com/1
|
192.168.1.1 Intel::ADDR source1 this host is just plain baaad http://some-data-distributor.com/1
|
||||||
# @TEST-END-FILE
|
# @TEST-END-FILE
|
||||||
|
|
||||||
@load frameworks/communication/listen
|
redef exit_only_after_terminate = T;
|
||||||
|
|
||||||
redef Intel::read_files += { "../intel.dat" };
|
redef Intel::read_files += { "../intel.dat" };
|
||||||
redef enum Intel::Where += { SOMEWHERE };
|
redef enum Intel::Where += { SOMEWHERE };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue