mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
Test: Add new testsuite SDK
This commit is contained in:
committed by
Dennis Klein
parent
1a93da5be0
commit
90496c89fe
57
test/sdk/_dds.cxx
Normal file
57
test/sdk/_dds.cxx
Normal file
@@ -0,0 +1,57 @@
|
||||
/********************************************************************************
|
||||
* 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
|
Reference in New Issue
Block a user