72 lines
2.6 KiB
C++
72 lines
2.6 KiB
C++
// (C) Copyright Gennadiy Rozental 2001.
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
// (See accompanying file LICENSE_1_0.txt or copy at
|
|
// http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
// See http://www.boost.org/libs/test for the library home page.
|
|
//
|
|
/// @file
|
|
/// @brief Entry point into the Unit Test Framework
|
|
///
|
|
/// This header should be the only header necessary to include to start using the framework
|
|
// ***************************************************************************
|
|
|
|
#ifndef ACTIV_BOOST_TEST_UNIT_TEST_HPP_071894GER
|
|
#define ACTIV_BOOST_TEST_UNIT_TEST_HPP_071894GER
|
|
|
|
// Boost.Test
|
|
#include <ActivBoost/test/test_tools.hpp>
|
|
#include <ActivBoost/test/unit_test_suite.hpp>
|
|
|
|
//____________________________________________________________________________//
|
|
|
|
// ************************************************************************** //
|
|
// ************** Auto Linking ************** //
|
|
// ************************************************************************** //
|
|
|
|
#if !defined(ACTIV_BOOST_ALL_NO_LIB) && !defined(ACTIV_BOOST_TEST_NO_LIB) && \
|
|
!defined(ACTIV_BOOST_TEST_SOURCE) && !defined(ACTIV_BOOST_TEST_INCLUDED) && \
|
|
defined(ACTIV_BOOST_TEST_MAIN)
|
|
# define ACTIV_BOOST_LIB_NAME Boost_unit_test_framework
|
|
|
|
# if defined(ACTIV_BOOST_ALL_DYN_LINK) || defined(ACTIV_BOOST_TEST_DYN_LINK)
|
|
# define ACTIV_BOOST_DYN_LINK
|
|
# endif
|
|
|
|
# include <ActivBoost/config/auto_link.hpp>
|
|
|
|
#endif // auto-linking disabled
|
|
|
|
// ************************************************************************** //
|
|
// ************** unit_test_main ************** //
|
|
// ************************************************************************** //
|
|
|
|
namespace Boost { namespace unit_test {
|
|
|
|
int ACTIV_BOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );
|
|
|
|
}
|
|
|
|
// !! ?? to remove
|
|
namespace unit_test_framework=unit_test;
|
|
|
|
}
|
|
|
|
#if defined(ACTIV_BOOST_TEST_DYN_LINK) && defined(ACTIV_BOOST_TEST_MAIN) && !defined(ACTIV_BOOST_TEST_NO_MAIN)
|
|
|
|
// ************************************************************************** //
|
|
// ************** main function for tests using dll ************** //
|
|
// ************************************************************************** //
|
|
|
|
int ACTIV_BOOST_TEST_CALL_DECL
|
|
main( int argc, char* argv[] )
|
|
{
|
|
return ::Boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
|
|
}
|
|
|
|
//____________________________________________________________________________//
|
|
|
|
#endif // ACTIV_BOOST_TEST_DYN_LINK && ACTIV_BOOST_TEST_MAIN && !ACTIV_BOOST_TEST_NO_MAIN
|
|
|
|
#endif // ACTIV_BOOST_TEST_UNIT_TEST_HPP_071894GER
|