mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
test: parameterize the message, region, channel and option tests by transport
- Turn the per-transport TEST() copies into TEST_P() suites: Messages, ShmMessages, Regions, ConnectedPeers and Options - The test names change, e.g. Resize.shmem_expanded_metadata is now Messages.Resize/shmem_expanded_metadata Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <fairmq/TransportFactory.h>
|
||||
#include <helper/Sync.h>
|
||||
#include <helper/Transport.h>
|
||||
#include <helper/TransportParam.h>
|
||||
#include <gtest/gtest.h>
|
||||
#include <string>
|
||||
|
||||
@@ -120,14 +121,13 @@ auto testConnectedPeers(std::string const& transport)
|
||||
ASSERT_TRUE(test::WaitUntil([&] { return ch1.GetNumberOfConnectedPeers() == zero; }));
|
||||
}
|
||||
|
||||
TEST(Channel, GetNumberOfConnectedPeers_zeromq)
|
||||
using ConnectedPeers = test::TransportTest;
|
||||
|
||||
TEST_P(ConnectedPeers, Pair)
|
||||
{
|
||||
testConnectedPeers("zeromq");
|
||||
testConnectedPeers(GetParam().transport);
|
||||
}
|
||||
|
||||
TEST(Channel, GetNumberOfConnectedPeers_shmem)
|
||||
{
|
||||
testConnectedPeers("shmem");
|
||||
}
|
||||
INSTANTIATE_TEST_SUITE_P(, ConnectedPeers, test::BasicTransports(), test::TransportParamName());
|
||||
|
||||
} /* namespace */
|
||||
|
||||
Reference in New Issue
Block a user