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) { ...@@ -40,6 +40,10 @@ BOOST_AUTO_TEST_CASE(testMaxMonitor) {
std::cout << "testMaxMonitor" << std::endl; std::cout << "testMaxMonitor" << std::endl;
TestApplication<ctk::MaxMonitor<double_t>> app; 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; ctk::TestFacility test;
test.runApplication(); test.runApplication();
//app.cs.dump(); //app.cs.dump();
...@@ -180,6 +184,10 @@ BOOST_AUTO_TEST_CASE(testMinMonitor) { ...@@ -180,6 +184,10 @@ BOOST_AUTO_TEST_CASE(testMinMonitor) {
TestApplication<ctk::MinMonitor<uint>> app; 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; ctk::TestFacility test;
test.runApplication(); test.runApplication();
//app.dumpConnections(); //app.dumpConnections();
...@@ -323,6 +331,10 @@ BOOST_AUTO_TEST_CASE(testRangeMonitor) { ...@@ -323,6 +331,10 @@ BOOST_AUTO_TEST_CASE(testRangeMonitor) {
std::cout << "testRangeMonitor" << std::endl; std::cout << "testRangeMonitor" << std::endl;
TestApplication<ctk::RangeMonitor<int>> app; 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; ctk::TestFacility test;
test.runApplication(); test.runApplication();
//app.dumpConnections(); //app.dumpConnections();
...@@ -542,6 +554,10 @@ BOOST_AUTO_TEST_CASE(testExactMonitor) { ...@@ -542,6 +554,10 @@ BOOST_AUTO_TEST_CASE(testExactMonitor) {
std::cout << "testExactMonitor" << std::endl; std::cout << "testExactMonitor" << std::endl;
TestApplication<ctk::ExactMonitor<float>> app; 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; ctk::TestFacility test;
test.runApplication(); test.runApplication();
//app.dumpConnections(); //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