Skip to content
Snippets Groups Projects
Commit 4207c2da authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

[wip #7982] extend tests for StatusMonitor (interface with StatusAggregator)

parent 37e5bcc6
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,10 @@ BOOST_AUTO_TEST_CASE(testMaxMonitor) {
std::cout << "testMaxMonitor" << std::endl;
TestApplication<ctk::MaxMonitor<double_t>> app;
// check that the reserved StatusOutput tag is present at the output, required for StatusAggregator integration
auto tags = ctk::VariableNetworkNode(app.monitor.status).getTags();
BOOST_CHECK(tags.find(ctk::StatusOutput::tagStatusOutput) != tags.end());
ctk::TestFacility test;
test.runApplication();
//app.cs.dump();
......@@ -180,6 +184,10 @@ BOOST_AUTO_TEST_CASE(testMinMonitor) {
TestApplication<ctk::MinMonitor<uint>> app;
// check that the reserved StatusOutput tag is present at the output, required for StatusAggregator integration
auto tags = ctk::VariableNetworkNode(app.monitor.status).getTags();
BOOST_CHECK(tags.find(ctk::StatusOutput::tagStatusOutput) != tags.end());
ctk::TestFacility test;
test.runApplication();
//app.dumpConnections();
......@@ -323,6 +331,10 @@ BOOST_AUTO_TEST_CASE(testRangeMonitor) {
std::cout << "testRangeMonitor" << std::endl;
TestApplication<ctk::RangeMonitor<int>> app;
// check that the reserved StatusOutput tag is present at the output, required for StatusAggregator integration
auto tags = ctk::VariableNetworkNode(app.monitor.status).getTags();
BOOST_CHECK(tags.find(ctk::StatusOutput::tagStatusOutput) != tags.end());
ctk::TestFacility test;
test.runApplication();
//app.dumpConnections();
......@@ -542,6 +554,10 @@ BOOST_AUTO_TEST_CASE(testExactMonitor) {
std::cout << "testExactMonitor" << std::endl;
TestApplication<ctk::ExactMonitor<float>> app;
// check that the reserved StatusOutput tag is present at the output, required for StatusAggregator integration
auto tags = ctk::VariableNetworkNode(app.monitor.status).getTags();
BOOST_CHECK(tags.find(ctk::StatusOutput::tagStatusOutput) != tags.end());
ctk::TestFacility test;
test.runApplication();
//app.dumpConnections();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment