unit_test_example_16.cpp 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // (C) Copyright Raffi Enficiaud 2019.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/test for the library home page.
  6. //
  7. // ***************************************************************************
  8. // Boost.Test
  9. #include <boost/test/unit_test.hpp>
  10. #include <boost/test/unit_test_parameters.hpp>
  11. bool init_unit_test()
  12. {
  13. using namespace boost::unit_test;
  14. // Having some problems on AppleClang 10.10 / Xcode 6/7
  15. #if !defined(BOOST_TEST_DYN_LINK) || (!defined(BOOST_CLANG) || (BOOST_CLANG != 1) || (__clang_major__ >= 8))
  16. log_level logLevel = runtime_config::get<log_level>(runtime_config::btrt_log_level);
  17. std::cout << "Current log level: " << static_cast<int>(logLevel) << std::endl;
  18. #endif
  19. return true;
  20. }
  21. BOOST_AUTO_TEST_CASE( my_test1 )
  22. {
  23. BOOST_CHECK( true );
  24. }
  25. int main(int argc, char* argv[])
  26. {
  27. int retCode = boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
  28. return retCode;
  29. }