Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/boost/test/unit_test.hpp @ 44

Last change on this file since 44 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 3.4 KB
RevLine 
[29]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)
5
6//  See http://www.boost.org/libs/test for the library home page.
7//
8//  File        : $RCSfile: unit_test.hpp,v $
9//
10//  Version     : $Revision: 1.19 $
11//
12//  Description : Entry point for the end user into the Unit Test Framework.
13// ***************************************************************************
14
15#ifndef BOOST_TEST_UNIT_TEST_HPP_071894GER
16#define BOOST_TEST_UNIT_TEST_HPP_071894GER
17
18// Boost.Test
19#include <boost/test/test_tools.hpp>
20#include <boost/test/unit_test_suite.hpp>
21
22//____________________________________________________________________________//
23
24// ************************************************************************** //
25// **************                 Auto Linking                 ************** //
26// ************************************************************************** //
27
28#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
29    !defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
30#  define BOOST_LIB_NAME boost_unit_test_framework
31
32#  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TEST_DYN_LINK)
33#    define BOOST_DYN_LINK
34#  endif
35
36#  include <boost/config/auto_link.hpp>
37
38#endif  // auto-linking disabled
39
40// ************************************************************************** //
41// **************                  unit_test_main              ************** //
42// ************************************************************************** //
43
44namespace boost { namespace unit_test {
45
46#if defined(BOOST_TEST_DYN_LINK)
47
48int BOOST_TEST_DECL unit_test_main( bool (*init_unit_test_func)(), int argc, char* argv[] );
49
50#else
51
52int BOOST_TEST_DECL unit_test_main( int argc, char* argv[] );
53
54#endif
55
56}}
57
58#if defined(BOOST_TEST_DYN_LINK) && defined(BOOST_TEST_MAIN) && !defined(BOOST_TEST_NO_MAIN)
59
60// ************************************************************************** //
61// **************        main function for tests using dll     ************** //
62// ************************************************************************** //
63
64int BOOST_TEST_CALL_DECL
65main( int argc, char* argv[] )
66{
67    return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
68}
69
70//____________________________________________________________________________//
71
72#endif // BOOST_TEST_DYN_LINK && BOOST_TEST_MAIN && !BOOST_TEST_NO_MAIN
73
74// ***************************************************************************
75//  Revision History :
76// 
77//  $Log: unit_test.hpp,v $
78//  Revision 1.19  2006/03/19 11:45:26  rogeeff
79//  main function renamed for consistancy
80//
81//  Revision 1.18  2006/02/07 16:15:20  rogeeff
82//  BOOST_TEST_INCLUDED guard were missing
83//
84//  Revision 1.17  2006/02/06 10:04:55  rogeeff
85//  BOOST_TEST_MODULE - master test suite name
86//
87//  Revision 1.16  2005/12/14 05:21:36  rogeeff
88//  dll support introduced
89//  auto linking support introduced
90//
91//  Revision 1.15  2005/02/20 08:27:06  rogeeff
92//  This a major update for Boost.Test framework. See release docs for complete list of fixes/updates
93//
94//  Revision 1.14  2005/02/01 06:40:06  rogeeff
95//  copyright update
96//  old log entries removed
97//  minor stilistic changes
98//  depricated tools removed
99//
100// ***************************************************************************
101
102#endif // BOOST_TEST_UNIT_TEST_HPP_071894GER
Note: See TracBrowser for help on using the repository browser.