Project
Loading...
Searching...
No Matches
test_ExternalFairMQDeviceProxy.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#include <catch_amalgamated.hpp>
14#include <string>
15
16using namespace o2::framework;
17
18TEST_CASE("ExternalFairMQDeviceProxy")
19{
22 {}, "type=sub,method=connect,address=tcp://localhost:10000,rateLogging=1", f);
23 spec.labels.emplace_back(DataProcessorLabel{"input-proxy"});
24 REQUIRE(spec.name == "testSource");
25 REQUIRE(spec.inputs.size() == 0);
26 REQUIRE(spec.options.size() == 2);
27 REQUIRE(spec.options[1].name == "channel-config");
28 REQUIRE(spec.options[1].defaultValue.get<const char*>() == std::string("name=testSource,type=sub,method=connect,address=tcp://localhost:10000,rateLogging=1"));
29 REQUIRE(spec.options[0].name == "ready-state-policy");
30 REQUIRE(spec.options[0].defaultValue.get<const char*>() == std::string{"keep"});
31}
GLdouble f
Definition glcorearb.h:310
Defining PrimaryVertex explicitly as messageable.
Definition TFIDInfo.h:20
DataProcessorSpec specifyExternalFairMQDeviceProxy(char const *label, std::vector< OutputSpec > const &outputs, const char *defaultChannelConfig, InjectorFunction converter, uint64_t minSHM=0, bool sendTFcounter=false, bool doInjectMissingData=false, unsigned int doPrintSizes=0)
TEST_CASE("test_prepareArguments")
std::function< bool(TimingInfo &, ServiceRegistryRef const &services, fair::mq::Parts &inputs, ChannelRetriever, size_t newTimesliceId, bool &stop)> InjectorFunction
A label that can be associated to a DataProcessorSpec.
std::vector< DataProcessorLabel > labels