mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 17:41:45 +00:00
Run FairMQ tests with both ZeroMQ and nanomsg
This commit is contained in:
@@ -17,13 +17,21 @@
|
||||
#include "FairMQLogger.h"
|
||||
#include "FairMQTestReq.h"
|
||||
|
||||
int main(int /*argc*/, char** /*argv*/)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
FairMQTestReq testReq;
|
||||
testReq.CatchSignals();
|
||||
testReq.SetTransport("zeromq");
|
||||
if (argc == 2)
|
||||
{
|
||||
testReq.SetTransport(argv[1]);
|
||||
}
|
||||
else
|
||||
{
|
||||
testReq.SetTransport("zeromq");
|
||||
}
|
||||
|
||||
reinit_logger(false);
|
||||
set_global_log_level(log_op::operation::GREATER_EQ_THAN, fairmq::NOLOG);
|
||||
|
||||
testReq.SetProperty(FairMQTestReq::Id, "testReq" + std::to_string(getpid()));
|
||||
|
||||
|
Reference in New Issue
Block a user