mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 21:21:37 +00:00
- Add test::TransportParam with the transport, the expanded shm metadata flag and a name generator for INSTANTIATE_TEST_SUITE_P() - Turn the per-transport TEST() copies into TEST_P() suites; the poller and transfer tests now also run with the expanded shm metadata - Name the multipart suite PushPullMultipart (it shared PushPull) - Discover the tests with NO_PRETTY_VALUES, so the ctest names are Suite.Case/transport - The test names change, e.g. Pair.SingleMsg_MultiThreaded_ipc_shmem is now Pair.SingleMsg_MultiThreaded_ipc/shmem Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/********************************************************************************
|
|
* Copyright (C) 2018-2023 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
|
|
* *
|
|
* This software is distributed under the terms of the *
|
|
* GNU Lesser General Public Licence (LGPL) version 3, *
|
|
* copied verbatim in the file "LICENSE" *
|
|
********************************************************************************/
|
|
|
|
#include <helper/Devices.h>
|
|
#include <helper/Transport.h>
|
|
#include <helper/TransportParam.h>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <string>
|
|
|
|
namespace
|
|
{
|
|
|
|
using namespace std;
|
|
using namespace fair::mq::test;
|
|
|
|
using Pair = TransportTest;
|
|
|
|
TEST_P(Pair, SingleMsg_MultiThreaded_ipc)
|
|
{
|
|
auto const& transport = GetParam().transport;
|
|
IpcAddress const address("pair");
|
|
|
|
auto const results = RunDevices({
|
|
{"pairleft_" + transport, "name=data,type=pair,method=bind,address=" + address.str()},
|
|
{"pairright_" + transport, "name=data,type=pair,method=connect,address=" + address.str()},
|
|
}, RunOptions(transport, GetParam().DeviceArgs()));
|
|
|
|
for (auto const& result : results) {
|
|
EXPECT_TRUE(Succeeded(result, transport));
|
|
}
|
|
}
|
|
|
|
INSTANTIATE_TEST_SUITE_P(, Pair, AllTransports(), TransportParamName());
|
|
|
|
} // namespace
|