/******************************************************************************** * Copyright (C) 2017 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 #include #include #include namespace { using namespace std; using namespace fair::mq::test; auto RunReqRep(string const& transport, string const& extraArgs) -> void { IpcAddress const address("req_rep"); auto const results = RunDevices({ {"rep_" + transport, "name=data,type=rep,method=bind,address=" + address.str()}, {"req_1_" + transport, "name=data,type=req,method=connect,address=" + address.str()}, {"req_2_" + transport, "name=data,type=req,method=connect,address=" + address.str()}, }, RunOptions(transport, extraArgs)); for (auto const& result : results) { EXPECT_TRUE(Succeeded(result, transport)); } } TEST(ReqRep, zeromq) { RunReqRep("zeromq", ""); } TEST(ReqRep, shmem) { RunReqRep("shmem", ""); } TEST(ReqRep, shmem_expanded_metadata) { RunReqRep("shmem", "--shm-metadata-msg-size 2048"); } } // namespace