Update contrib.
1 // (C) Copyright Gennadiy Rozental 2001-2005.
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)
6 // See http://www.boost.org/libs/test for the library home page.
8 // File : $RCSfile: unit_test.hpp,v $
10 // Version : $Revision: 1.19 $
12 // Description : Entry point for the end user into the Unit Test Framework.
13 // ***************************************************************************
15 * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved.
17 #ifndef BOOST_TEST_UNIT_TEST_HPP_071894GER
18 #define BOOST_TEST_UNIT_TEST_HPP_071894GER
21 #include <boost/test/test_tools.hpp>
22 #include <boost/test/unit_test_suite.hpp>
24 //____________________________________________________________________________//
26 // ************************************************************************** //
27 // ************** Auto Linking ************** //
28 // ************************************************************************** //
30 #if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
31 !defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
32 # define BOOST_LIB_NAME boost_unit_test_framework
34 # if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TEST_DYN_LINK)
35 # define BOOST_DYN_LINK
39 # include <boost/config/auto_link.hpp>
42 #endif // auto-linking disabled
44 // ************************************************************************** //
45 // ************** unit_test_main ************** //
46 // ************************************************************************** //
48 namespace boost { namespace unit_test {
50 #if defined(BOOST_TEST_DYN_LINK)
52 int BOOST_TEST_DECL unit_test_main( bool (*init_unit_test_func)(), int argc, char* argv[] );
56 int BOOST_TEST_DECL unit_test_main( int argc, char* argv[] );
62 #if defined(BOOST_TEST_DYN_LINK) && defined(BOOST_TEST_MAIN) && !defined(BOOST_TEST_NO_MAIN)
64 // ************************************************************************** //
65 // ************** main function for tests using dll ************** //
66 // ************************************************************************** //
68 int BOOST_TEST_CALL_DECL
69 main( int argc, char* argv[] )
71 return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
74 //____________________________________________________________________________//
76 #endif // BOOST_TEST_DYN_LINK && BOOST_TEST_MAIN && !BOOST_TEST_NO_MAIN
78 // ***************************************************************************
81 // $Log: unit_test.hpp,v $
82 // Revision 1.19 2006/03/19 11:45:26 rogeeff
83 // main function renamed for consistancy
85 // Revision 1.18 2006/02/07 16:15:20 rogeeff
86 // BOOST_TEST_INCLUDED guard were missing
88 // Revision 1.17 2006/02/06 10:04:55 rogeeff
89 // BOOST_TEST_MODULE - master test suite name
91 // Revision 1.16 2005/12/14 05:21:36 rogeeff
92 // dll support introduced
93 // auto linking support introduced
95 // Revision 1.15 2005/02/20 08:27:06 rogeeff
96 // This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
98 // Revision 1.14 2005/02/01 06:40:06 rogeeff
100 // old log entries removed
101 // minor stilistic changes
102 // depricated tools removed
104 // ***************************************************************************
106 #endif // BOOST_TEST_UNIT_TEST_HPP_071894GER