Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 10:09:55

0001 //  (C) Copyright Gennadiy Rozental 2001.
0002 //  Distributed under the Boost Software License, Version 1.0.
0003 //  (See accompanying file LICENSE_1_0.txt or copy at
0004 //  http://www.boost.org/LICENSE_1_0.txt)
0005 
0006 //  See http://www.boost.org/libs/test for the library home page.
0007 //
0008 /// @file
0009 /// @brief Entry point into the Unit Test Framework
0010 ///
0011 /// This header should be the only header necessary to include to start using the framework
0012 // ***************************************************************************
0013 
0014 #ifndef BOOST_TEST_UNIT_TEST_HPP_071894GER
0015 #define BOOST_TEST_UNIT_TEST_HPP_071894GER
0016 
0017 // Boost.Test
0018 #include <boost/test/test_tools.hpp>
0019 #include <boost/test/unit_test_suite.hpp>
0020 
0021 //____________________________________________________________________________//
0022 
0023 // ************************************************************************** //
0024 // **************                 Auto Linking                 ************** //
0025 // ************************************************************************** //
0026 
0027 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
0028     !defined(BOOST_UNIT_TEST_FRAMEWORK_NO_LIB) && \
0029     !defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED) && \
0030     defined(BOOST_TEST_MAIN)
0031 #  define BOOST_LIB_NAME boost_unit_test_framework
0032 
0033 #  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TEST_DYN_LINK)
0034 #    define BOOST_DYN_LINK
0035 #  endif
0036 
0037 #  include <boost/config/auto_link.hpp>
0038 
0039 #endif  // auto-linking disabled
0040 
0041 // ************************************************************************** //
0042 // **************                  unit_test_main              ************** //
0043 // ************************************************************************** //
0044 
0045 namespace boost { namespace unit_test {
0046 
0047 int BOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );
0048 
0049 }
0050 
0051 // !! ?? to remove
0052 namespace unit_test_framework=unit_test;
0053 
0054 }
0055 
0056 #if defined(BOOST_TEST_DYN_LINK) && defined(BOOST_TEST_MAIN) && !defined(BOOST_TEST_NO_MAIN)
0057 
0058 // ************************************************************************** //
0059 // **************        main function for tests using dll     ************** //
0060 // ************************************************************************** //
0061 
0062 int BOOST_TEST_CALL_DECL
0063 main( int argc, char* argv[] )
0064 {
0065     return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
0066 }
0067 
0068 //____________________________________________________________________________//
0069 
0070 #endif // BOOST_TEST_DYN_LINK && BOOST_TEST_MAIN && !BOOST_TEST_NO_MAIN
0071 
0072 #endif // BOOST_TEST_UNIT_TEST_HPP_071894GER