mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
Merge topic/actor-system throug a squashed commit.
This commit is contained in:
parent
7a6f5020f6
commit
fe7e1ee7f0
466 changed files with 12559 additions and 9655 deletions
|
@ -9,7 +9,6 @@
|
|||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load base/utils/active-http
|
||||
@load base/frameworks/communication # let network-time run. otherwise there are no heartbeats...
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
global c: count = 0;
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
@TEST-START-FILE dirtest.bro
|
||||
|
||||
@load base/utils/dir
|
||||
@load base/frameworks/communication # let network-time run. otherwise there are no heartbeats...
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
global c: count = 0;
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
@TEST-START-FILE exectest.bro
|
||||
|
||||
@load base/utils/exec
|
||||
@load base/frameworks/communication # let network-time run. otherwise there are no heartbeats...
|
||||
redef exit_only_after_terminate = T;
|
||||
|
||||
global c: count = 0;
|
||||
|
|
57
testing/btest/scripts/base/utils/hash_hrw.bro
Normal file
57
testing/btest/scripts/base/utils/hash_hrw.bro
Normal file
|
@ -0,0 +1,57 @@
|
|||
# @TEST-EXEC: bro -b %INPUT > output
|
||||
# @TEST-EXEC: btest-diff output
|
||||
|
||||
@load base/utils/hash_hrw
|
||||
|
||||
local pool = HashHRW::Pool();
|
||||
local alice = HashHRW::Site($id=0, $user_data="alice");
|
||||
local bob = HashHRW::Site($id=1, $user_data="bob");
|
||||
local charlie = HashHRW::Site($id=2, $user_data="charlie");
|
||||
local dave = HashHRW::Site($id=3, $user_data="dave");
|
||||
local eve = HashHRW::Site($id=4, $user_data="eve");
|
||||
|
||||
print HashHRW::add_site(pool, alice);
|
||||
print HashHRW::add_site(pool, alice);
|
||||
print HashHRW::add_site(pool, bob);
|
||||
print HashHRW::add_site(pool, charlie);
|
||||
print HashHRW::add_site(pool, dave);
|
||||
print HashHRW::add_site(pool, eve);
|
||||
print HashHRW::rem_site(pool, charlie);
|
||||
print HashHRW::rem_site(pool, charlie);
|
||||
|
||||
print HashHRW::get_site(pool, "one");
|
||||
print HashHRW::get_site(pool, "two");
|
||||
print HashHRW::get_site(pool, "three");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "five");
|
||||
print HashHRW::get_site(pool, "six");
|
||||
print HashHRW::get_site(pool, 1);
|
||||
print HashHRW::get_site(pool, 2);
|
||||
print HashHRW::get_site(pool, 3);
|
||||
|
||||
print HashHRW::rem_site(pool, alice);
|
||||
|
||||
print HashHRW::get_site(pool, "one");
|
||||
print HashHRW::get_site(pool, "two");
|
||||
print HashHRW::get_site(pool, "three");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "five");
|
||||
print HashHRW::get_site(pool, "six");
|
||||
print HashHRW::get_site(pool, 1);
|
||||
print HashHRW::get_site(pool, 2);
|
||||
print HashHRW::get_site(pool, 3);
|
||||
|
||||
print HashHRW::add_site(pool, alice);
|
||||
|
||||
print HashHRW::get_site(pool, "one");
|
||||
print HashHRW::get_site(pool, "two");
|
||||
print HashHRW::get_site(pool, "three");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "four");
|
||||
print HashHRW::get_site(pool, "five");
|
||||
print HashHRW::get_site(pool, "six");
|
||||
print HashHRW::get_site(pool, 1);
|
||||
print HashHRW::get_site(pool, 2);
|
||||
print HashHRW::get_site(pool, 3);
|
Loading…
Add table
Add a link
Reference in a new issue