THRIFT-1256 Unit Test Logging Output for CI
pass BOOST environment variables to the test suite arguments and create a tests.xml with the results
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1153594 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/.gitignore b/.gitignore
index 21985db..8058880 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,6 +50,7 @@
/lib/cpp/test/TransportTest
/lib/cpp/test/UnitTests
/lib/cpp/test/ZlibTest
+/lib/cpp/test/tests.xml
/lib/cpp/test/*.la
/lib/cpp/test/*.lo
/lib/cpp/test/*.o
diff --git a/lib/cpp/test/Makefile.am b/lib/cpp/test/Makefile.am
index 1829268..6391a87 100644
--- a/lib/cpp/test/Makefile.am
+++ b/lib/cpp/test/Makefile.am
@@ -54,6 +54,11 @@
TFileTransportTest \
UnitTests
+TESTS_ENVIRONMENT= \
+ BOOST_TEST_LOG_SINK=tests.xml \
+ BOOST_TEST_LOG_LEVEL=test_suite \
+ BOOST_TEST_LOG_FORMAT=xml
+
TESTS = \
$(check_PROGRAMS)