From 6fde1da288dd73c7fcdccc07b4810fb1a257714b Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 3 Nov 2026 14:01:18 +0000 Subject: [PATCH] fix(test): run protocol and poller devices on the tested transport - the Pair, PushPull, ReqRep, PubSub and Poller tests started the test devices without --transport - the devices used the default transport (zeromq), also in the tests for shmem; the shm options on the command line had no effect - 8 tests named *shmem* tested zeromq only - pass --transport to each device Co-Authored-By: Claude Opus 5.5 --- test/poller/_poller.cxx | 2 ++ test/protocols/_pair.cxx | 2 ++ test/protocols/_pub_sub.cxx | 3 +++ test/protocols/_push_pull.cxx | 2 ++ test/protocols/_req_rep.cxx | 3 +++ 5 files changed, 12 insertions(+) diff --git a/test/poller/_poller.cxx b/test/poller/_poller.cxx index 1291d09f..b3b322ab 100644 --- a/test/poller/_poller.cxx +++ b/test/poller/_poller.cxx @@ -37,6 +37,7 @@ auto RunPoller(string transport, int pollType) -> void cmd << runTestDevice << " --id pollout_"<< transport << " --control static" + << " --transport " << transport << " --color false" << " --shm-monitor true" << " --session " << session @@ -51,6 +52,7 @@ auto RunPoller(string transport, int pollType) -> void cmd << runTestDevice << " --id pollin_" << transport << " --control static" + << " --transport " << transport << " --color false" << " --shm-monitor true" << " --session " << session diff --git a/test/protocols/_pair.cxx b/test/protocols/_pair.cxx index 42d41ee4..86587052 100644 --- a/test/protocols/_pair.cxx +++ b/test/protocols/_pair.cxx @@ -34,6 +34,7 @@ auto RunPair(const string& transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id pairleft_" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session @@ -49,6 +50,7 @@ auto RunPair(const string& transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id pairright_" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session diff --git a/test/protocols/_pub_sub.cxx b/test/protocols/_pub_sub.cxx index 99951190..c19941e7 100644 --- a/test/protocols/_pub_sub.cxx +++ b/test/protocols/_pub_sub.cxx @@ -39,6 +39,7 @@ auto RunPubSub(string transport) -> void cmd << runTestDevice << " --id pub_" << transport << " --control static" + << " --transport " << transport << " --session " << session << " --color false" << " --channel-config name=data,type=pub,method=bind,address=" << dataAddress @@ -52,6 +53,7 @@ auto RunPubSub(string transport) -> void cmd << runTestDevice << " --id sub_1" << transport << " --control static" + << " --transport " << transport << " --session " << session << " --color false" << " --channel-config name=data,type=sub,method=connect,address=" << dataAddress @@ -65,6 +67,7 @@ auto RunPubSub(string transport) -> void cmd << runTestDevice << " --id sub_2" << transport << " --control static" + << " --transport " << transport << " --session " << session << " --color false" << " --channel-config name=data,type=sub,method=connect,address=" << dataAddress diff --git a/test/protocols/_push_pull.cxx b/test/protocols/_push_pull.cxx index 940e0880..6feafb3b 100644 --- a/test/protocols/_push_pull.cxx +++ b/test/protocols/_push_pull.cxx @@ -34,6 +34,7 @@ auto RunPushPull(string transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id push_" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session @@ -49,6 +50,7 @@ auto RunPushPull(string transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id pull_" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session diff --git a/test/protocols/_req_rep.cxx b/test/protocols/_req_rep.cxx index 1d128f85..30fb8761 100644 --- a/test/protocols/_req_rep.cxx +++ b/test/protocols/_req_rep.cxx @@ -34,6 +34,7 @@ auto RunReqRep(string transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id rep_" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session @@ -49,6 +50,7 @@ auto RunReqRep(string transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id req_1" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session @@ -64,6 +66,7 @@ auto RunReqRep(string transport, const string& extraDeviceCmdArgs) -> void cmd << runTestDevice << " --id req_2" << transport << " --control static" + << " --transport " << transport << " --shm-monitor true" << " --shm-segment-size 100000000" << " --session " << session