summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2020-01-30 09:45:14 +0100
committerTomasz Swierczek <t.swierczek@samsung.com>2020-01-30 11:37:40 +0100
commitf40b597d613e4296621ee4c6a5c1951bc3479fb1 (patch)
tree02491c08ef54d7c135d6c29972474f72f2f0d041
parent9a14623f4506cd3bbe6ad87b8be252c281c33209 (diff)
downloadcert-checker-submit/tizen_6.0_hotfix/20201102.192905.tar.gz
cert-checker-submit/tizen_6.0_hotfix/20201102.192905.tar.bz2
cert-checker-submit/tizen_6.0_hotfix/20201102.192905.zip
Change-Id: Ib05c9fdd7eb9f94a7226ae3ade32edccf5b1cac3
-rw-r--r--tests/colour_log_formatter.cpp14
-rw-r--r--tests/colour_log_formatter.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/colour_log_formatter.cpp b/tests/colour_log_formatter.cpp
index 4a9ea4f..dbf080c 100644
--- a/tests/colour_log_formatter.cpp
+++ b/tests/colour_log_formatter.cpp
@@ -124,6 +124,20 @@ colour_log_formatter::log_build_info(std::ostream &output)
//____________________________________________________________________________//
void
+colour_log_formatter::log_build_info(std::ostream &output, bool log_build_info)
+{
+ if (log_build_info)
+ output << "Platform: " << BOOST_PLATFORM << '\n'
+ << "Compiler: " << BOOST_COMPILER << '\n'
+ << "STL : " << BOOST_STDLIB << '\n';
+ output << "Boost : " << BOOST_VERSION / 100000 << '.'
+ << BOOST_VERSION / 100 % 1000 << '.'
+ << BOOST_VERSION % 100 << std::endl;
+}
+
+//____________________________________________________________________________//
+
+void
colour_log_formatter::test_unit_start(
std::ostream &output,
test_unit const &tu)
diff --git a/tests/colour_log_formatter.h b/tests/colour_log_formatter.h
index 0717a6c..b617ce0 100644
--- a/tests/colour_log_formatter.h
+++ b/tests/colour_log_formatter.h
@@ -27,6 +27,7 @@ public:
boost::unit_test::counter_t test_cases_amount);
void log_finish(std::ostream &);
void log_build_info(std::ostream &);
+ void log_build_info(std::ostream &output, bool log_build_info = true);
void test_unit_start(
std::ostream &,