summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Swierczek <t.swierczek@samsung.com>2020-01-30 09:08:22 (GMT)
committerTomasz Swierczek <t.swierczek@samsung.com>2020-01-30 10:34:16 (GMT)
commit1755a4961e937408117970332cd6acd17ae3a5e4 (patch)
treefb09f9741ddabb047a4ff9a4ea05f80d9231b019
parent2b3a28ccc014b2c836baf6377df398533e8615d8 (diff)
downloadlibwebappenc-1755a4961e937408117970332cd6acd17ae3a5e4.zip
libwebappenc-1755a4961e937408117970332cd6acd17ae3a5e4.tar.gz
libwebappenc-1755a4961e937408117970332cd6acd17ae3a5e4.tar.bz2
Change-Id: I5ed6e278880e1dfee014b0275008cd73059a0683
-rw-r--r--tests/colour_log_formatter.cpp17
-rw-r--r--tests/colour_log_formatter.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/colour_log_formatter.cpp b/tests/colour_log_formatter.cpp
index 041fef8..baa8b9d 100644
--- a/tests/colour_log_formatter.cpp
+++ b/tests/colour_log_formatter.cpp
@@ -120,6 +120,23 @@ colour_log_formatter::log_build_info(std::ostream &output)
<< BOOST_VERSION % 100 << std::endl;
}
+
+
+//____________________________________________________________________________//
+
+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
diff --git a/tests/colour_log_formatter.h b/tests/colour_log_formatter.h
index 3de5899..37c2f7c 100644
--- a/tests/colour_log_formatter.h
+++ b/tests/colour_log_formatter.h
@@ -25,6 +25,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 &,