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:
Claude
2026-11-03 14:41:46 +00:00
committed by Dennis Klein
parent 6a55bf1d55
commit 5da5a35b4d
4 changed files with 48 additions and 114 deletions

View File

@@ -21,6 +21,7 @@
#include <helper/Sync.h>
#include <helper/Transport.h>
#include <helper/TransportParam.h>
#include <gtest/gtest.h>
#include <atomic>
@@ -414,45 +415,29 @@ TEST(RegionsSizeMismatch, shmem)
RegionsSizeMismatch();
}
TEST(Cache, zeromq)
using Regions = test::TransportTest;
TEST_P(Regions, Cache)
{
RegionsCache("zeromq", "region_cache");
RegionsCache(GetParam().transport, "region_cache");
}
TEST(Cache, shmem)
TEST_P(Regions, EventSubscriptions)
{
RegionsCache("shmem", "region_cache");
RegionEventSubscriptions(GetParam().transport, false);
}
TEST(EventSubscriptions, zeromq)
TEST_P(Regions, Callbacks)
{
RegionEventSubscriptions("zeromq", false);
RegionCallbacks(GetParam().transport, "region_callbacks");
}
TEST(EventSubscriptions, shmem)
TEST_P(Regions, CallbackDuringDestruction)
{
RegionEventSubscriptions("shmem", false);
RegionCallbackCallsTransportDuringDestruction(GetParam().transport, "region_callback_during_destruction");
}
TEST(Callbacks, zeromq)
{
RegionCallbacks("zeromq", "region_callbacks");
}
TEST(Callbacks, shmem)
{
RegionCallbacks("shmem", "region_callbacks");
}
TEST(CallbackDuringDestruction, zeromq)
{
RegionCallbackCallsTransportDuringDestruction("zeromq", "region_callback_during_destruction");
}
TEST(CallbackDuringDestruction, shmem)
{
RegionCallbackCallsTransportDuringDestruction("shmem", "region_callback_during_destruction");
}
INSTANTIATE_TEST_SUITE_P(, Regions, test::BasicTransports(), test::TransportParamName());
TEST(LockOrder, shmem)
{