FairMQ: Add unit tests for PAIR channel type

This commit is contained in:
Dennis Klein
2018-02-14 16:28:26 +01:00
committed by Mohammad Al-Turany
parent 9b7841e89e
commit 72bc86f006
6 changed files with 272 additions and 0 deletions

View File

@@ -6,6 +6,8 @@
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#include "devices/TestPairLeft.cxx"
#include "devices/TestPairRight.cxx"
#include "devices/TestPollIn.cxx"
#include "devices/TestPollOut.cxx"
#include "devices/TestPub.cxx"
@@ -70,6 +72,14 @@ auto getDevice(const FairMQProgOptions& config) -> FairMQDevicePtr
{
return new PollIn;
}
else if (0 == id.find("pairleft_"))
{
return new PairLeft;
}
else if (0 == id.find("pairright_"))
{
return new PairRight;
}
else
{
cerr << "Don't know id '" << id << "'" << endl;