aboutsummaryrefslogtreecommitdiff
path: root/framework/Framework.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-07-18 16:21:16 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:16:42 +0100
commitc7d1503008e74496836f99d64c082d4c9ae8f1ca (patch)
tree0aad8f56fe4c9359b08476bc7e5577fd21c1f6fe /framework/Framework.cpp
parent81bf196a8ea44be9b42a9f9b6f8eca3f016c36e2 (diff)
downloadComputeLibrary-c7d1503008e74496836f99d64c082d4c9ae8f1ca.tar.gz
COMPMID-415: Build new validation
Change-Id: I7409693f40ba3941b9d90f28c5d292c376e185c5 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/80939 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'framework/Framework.cpp')
-rw-r--r--framework/Framework.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/framework/Framework.cpp b/framework/Framework.cpp
index 343168426c..f2ecff98f4 100644
--- a/framework/Framework.cpp
+++ b/framework/Framework.cpp
@@ -127,6 +127,31 @@ void Framework::pop_suite()
_test_suite_name.pop_back();
}
+void Framework::add_test_info(std::string info)
+{
+ _test_info.emplace_back(std::move(info));
+}
+
+void Framework::clear_test_info()
+{
+ _test_info.clear();
+}
+
+bool Framework::has_test_info() const
+{
+ return !_test_info.empty();
+}
+
+void Framework::print_test_info(std::ostream &os) const
+{
+ os << "CONTEXT:\n";
+
+ for(const auto &str : _test_info)
+ {
+ os << " " << str << "\n";
+ }
+}
+
void Framework::log_test_start(const std::string &test_name)
{
if(_printer != nullptr)