external_main_example_2.cpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // (C) Copyright Gennadiy Rozental 2001-2014.
  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. #ifndef BOOST_TEST_DYN_LINK
  9. #define BOOST_TEST_DYN_LINK
  10. #endif
  11. #include <boost/test/unit_test.hpp>
  12. using namespace boost::unit_test;
  13. //____________________________________________________________________________//
  14. BOOST_AUTO_TEST_SUITE( test_suite_1 )
  15. BOOST_AUTO_TEST_CASE( test_case_1 )
  16. {
  17. BOOST_TEST_MESSAGE( "Testing is in progress" );
  18. BOOST_CHECK( false );
  19. }
  20. BOOST_AUTO_TEST_SUITE_END()
  21. //____________________________________________________________________________//
  22. bool
  23. init_function()
  24. {
  25. // do your own initialization here
  26. // if it successful return true
  27. // But, you CAN'T use testing tools here
  28. return true;
  29. }
  30. //____________________________________________________________________________//
  31. int
  32. main( int argc, char* argv[] )
  33. {
  34. return ::boost::unit_test::unit_test_main( &init_function, argc, argv );
  35. }
  36. //____________________________________________________________________________//