1 // boost/detail/lightweight_test_reporter.hpp ----------------------------------------//
3 // Copyright Beman Dawes 2014
5 // Distributed under the Boost Software License, Version 1.0.
6 // See http://www.boost.org/LICENSE_1_0.txt
8 //--------------------------------------------------------------------------------------//
10 // Configuration reporting cpp_main() //
12 // Displays configuration information, then returns test_main(argc, argv), which //
13 // must be supplied by the user. //
15 // Note: cpp_main(argc, argv) is called from a try block in main(), which is //
16 // supplied by <boost/detail/lightweight_main.hpp> as is a catch block that reports //
17 // std::exception what(). //
19 //--------------------------------------------------------------------------------------//
21 #include <boost/config.hpp>
22 #include <boost/version.hpp>
23 #include <boost/detail/lightweight_test.hpp>
24 #include <boost/detail/lightweight_main.hpp>
27 int test_main(int argc, char* argv[]);
29 int cpp_main(int argc, char* argv[])
31 std::cout << BOOST_COMPILER
33 << ", __GXX_EXPERIMENTAL_CXX0X__ "
34 # ifdef __GXX_EXPERIMENTAL_CXX0X__
41 << BOOST_STDLIB << "\n"
42 << BOOST_PLATFORM << "\n"
43 << "Boost version " << BOOST_VERSION / 100000 << '.'
44 << BOOST_VERSION / 100 % 1000 << '.' << BOOST_VERSION % 100 << "\n";
46 std::cout << "Command line: ";
47 for (int a = 0; a < argc; ++a)
53 std::cout << std::endl;
55 return test_main(argc, argv);