Run FairMQ tests with both ZeroMQ and nanomsg

This commit is contained in:
Alexey Rybalchenko
2016-05-31 10:19:32 +02:00
parent eb306a2c0d
commit 7062a3d280
11 changed files with 120 additions and 34 deletions

View File

@@ -17,13 +17,21 @@
#include "FairMQLogger.h"
#include "FairMQTestSub.h"
int main(int /*argc*/, char** /*argv*/)
int main(int argc, char** argv)
{
FairMQTestSub testSub;
testSub.CatchSignals();
testSub.SetTransport("zeromq");
if (argc == 2)
{
testSub.SetTransport(argv[1]);
}
else
{
testSub.SetTransport("zeromq");
}
reinit_logger(false);
set_global_log_level(log_op::operation::GREATER_EQ_THAN, fairmq::NOLOG);
testSub.SetProperty(FairMQTestSub::Id, "testSub_" + std::to_string(getpid()));