mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 00:31:14 +00:00
58 lines
1.7 KiB
C++
58 lines
1.7 KiB
C++
/********************************************************************************
|
|
* Copyright (C) 2019 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 <TestEnvironment.h>
|
|
#include <fairlogger/Logger.h>
|
|
#include <fairmq/sdk/DDSEnvironment.h>
|
|
#include <fairmq/sdk/DDSInfo.h>
|
|
#include <fairmq/sdk/DDSSession.h>
|
|
#include <gtest/gtest.h>
|
|
|
|
namespace {
|
|
|
|
auto session_test() -> void
|
|
{
|
|
fair::Logger::SetConsoleSeverity("debug");
|
|
fair::Logger::DefineVerbosity("user1",
|
|
fair::VerbositySpec::Make(fair::VerbositySpec::Info::timestamp_us,
|
|
fair::VerbositySpec::Info::severity));
|
|
fair::Logger::SetVerbosity("user1");
|
|
fair::Logger::SetConsoleColor();
|
|
|
|
fair::mq::sdk::DDSEnvironment env(CMAKE_CURRENT_BINARY_DIR);
|
|
LOG(debug) << env;
|
|
{
|
|
fair::mq::sdk::DDSSession session(env);
|
|
LOG(debug) << session;
|
|
session.SubmitAgents(5);
|
|
session.SubmitAgents(5);
|
|
}
|
|
{
|
|
fair::mq::sdk::DDSSession session(env);
|
|
LOG(debug) << session;
|
|
session.SubmitAgents(5);
|
|
}
|
|
{
|
|
fair::mq::sdk::DDSSession session(env);
|
|
LOG(debug) << session;
|
|
session.SubmitAgents(5);
|
|
}
|
|
}
|
|
|
|
TEST(DDS, Session)
|
|
{
|
|
session_test();
|
|
}
|
|
|
|
TEST(DDS, Session2)
|
|
{
|
|
session_test();
|
|
}
|
|
|
|
} // namespace
|