mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Parallelize communication tests using btest TEST-PORT
This commit is contained in:
parent
7ec480f05d
commit
907297ba59
67 changed files with 299 additions and 230 deletions
|
@ -1,4 +1,4 @@
|
|||
# @TEST-SERIALIZE: comm
|
||||
# @TEST-PORT: BROKER_PORT
|
||||
#
|
||||
# @TEST-EXEC: btest-bg-run recv "bro -b ../recv.bro >recv.out"
|
||||
# @TEST-EXEC: btest-bg-run send "bro -b ../send.bro >send.out"
|
||||
|
@ -19,7 +19,7 @@ event bro_init()
|
|||
{
|
||||
Broker::subscribe("bro/event/my_topic");
|
||||
Broker::auto_publish("bro/event/my_topic", ping);
|
||||
Broker::peer("127.0.0.1");
|
||||
Broker::peer("127.0.0.1", to_port(getenv("BROKER_PORT")));
|
||||
}
|
||||
|
||||
function send_event()
|
||||
|
@ -63,7 +63,7 @@ event bro_init()
|
|||
{
|
||||
Broker::subscribe("bro/event/my_topic");
|
||||
Broker::auto_publish("bro/event/my_topic", pong);
|
||||
Broker::listen("127.0.0.1");
|
||||
Broker::listen("127.0.0.1", to_port(getenv("BROKER_PORT")));
|
||||
}
|
||||
|
||||
event Broker::peer_added(endpoint: Broker::EndpointInfo, msg: string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue