From 4207c2da5670a3e0766fb9080698942f024c7614 Mon Sep 17 00:00:00 2001 From: Martin Hierholzer <martin.hierholzer@desy.de> Date: Tue, 1 Jun 2021 10:53:33 +0200 Subject: [PATCH] [wip #7982] extend tests for StatusMonitor (interface with StatusAggregator) --- tests/executables_src/testStatusModule.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/executables_src/testStatusModule.cc b/tests/executables_src/testStatusModule.cc index 0b5b989c..578c07b2 100644 --- a/tests/executables_src/testStatusModule.cc +++ b/tests/executables_src/testStatusModule.cc @@ -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(); -- GitLab