os/ossrv/ossrv_pub/boost_apis/boost/test/unit_test.hpp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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)
     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  * © Portions copyright (c) 2006-2007 Nokia Corporation.  All rights reserved.
    16 */
    17 #ifndef BOOST_TEST_UNIT_TEST_HPP_071894GER
    18 #define BOOST_TEST_UNIT_TEST_HPP_071894GER
    19 
    20 // Boost.Test
    21 #include <boost/test/test_tools.hpp>
    22 #include <boost/test/unit_test_suite.hpp>
    23 
    24 //____________________________________________________________________________//
    25 
    26 // ************************************************************************** //
    27 // **************                 Auto Linking                 ************** //
    28 // ************************************************************************** //
    29 
    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
    33 
    34 #  if defined(BOOST_ALL_DYN_LINK) || defined(BOOST_TEST_DYN_LINK)
    35 #    define BOOST_DYN_LINK
    36 #  endif
    37 
    38 #ifndef __SYMBIAN32__
    39 #  include <boost/config/auto_link.hpp>
    40 #endif
    41 
    42 #endif  // auto-linking disabled
    43 
    44 // ************************************************************************** //
    45 // **************                  unit_test_main              ************** //
    46 // ************************************************************************** //
    47 
    48 namespace boost { namespace unit_test {
    49 
    50 #if defined(BOOST_TEST_DYN_LINK) 
    51 
    52 int BOOST_TEST_DECL unit_test_main( bool (*init_unit_test_func)(), int argc, char* argv[] );
    53 
    54 #else
    55 
    56 int BOOST_TEST_DECL unit_test_main( int argc, char* argv[] );
    57 
    58 #endif
    59 
    60 }}
    61 
    62 #if defined(BOOST_TEST_DYN_LINK) && defined(BOOST_TEST_MAIN) && !defined(BOOST_TEST_NO_MAIN)
    63 
    64 // ************************************************************************** //
    65 // **************        main function for tests using dll     ************** //
    66 // ************************************************************************** //
    67 
    68 int BOOST_TEST_CALL_DECL
    69 main( int argc, char* argv[] )
    70 {
    71     return ::boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
    72 }
    73 
    74 //____________________________________________________________________________//
    75 
    76 #endif // BOOST_TEST_DYN_LINK && BOOST_TEST_MAIN && !BOOST_TEST_NO_MAIN
    77 
    78 // ***************************************************************************
    79 //  Revision History :
    80 //  
    81 //  $Log: unit_test.hpp,v $
    82 //  Revision 1.19  2006/03/19 11:45:26  rogeeff
    83 //  main function renamed for consistancy
    84 //
    85 //  Revision 1.18  2006/02/07 16:15:20  rogeeff
    86 //  BOOST_TEST_INCLUDED guard were missing
    87 //
    88 //  Revision 1.17  2006/02/06 10:04:55  rogeeff
    89 //  BOOST_TEST_MODULE - master test suite name
    90 //
    91 //  Revision 1.16  2005/12/14 05:21:36  rogeeff
    92 //  dll support introduced
    93 //  auto linking support introduced
    94 //
    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
    97 //
    98 //  Revision 1.14  2005/02/01 06:40:06  rogeeff
    99 //  copyright update
   100 //  old log entries removed
   101 //  minor stilistic changes
   102 //  depricated tools removed
   103 //
   104 // ***************************************************************************
   105 
   106 #endif // BOOST_TEST_UNIT_TEST_HPP_071894GER