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