blob: 1adb8053cb630264febffb126660abb6d04e52b6 [file] [log] [blame]
Jeff Thompson86b6d642013-10-17 15:01:56 -07001// (C) Copyright Gennadiy Rozental 2001-2008.
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$
9//
10// Version : $Revision: 49312 $
11//
12// Description : Entry point for the end user into the Unit Test Framework.
13// ***************************************************************************
14
15#ifndef NDNBOOST_TEST_UNIT_TEST_HPP_071894GER
16#define NDNBOOST_TEST_UNIT_TEST_HPP_071894GER
17
18// Boost.Test
19#include <ndnboost/test/test_tools.hpp>
20#include <ndnboost/test/unit_test_suite.hpp>
21
22//____________________________________________________________________________//
23
24// ************************************************************************** //
25// ************** Auto Linking ************** //
26// ************************************************************************** //
27
28#if !defined(NDNBOOST_ALL_NO_LIB) && !defined(NDNBOOST_TEST_NO_LIB) && \
29 !defined(NDNBOOST_TEST_SOURCE) && !defined(NDNBOOST_TEST_INCLUDED)
30# define NDNBOOST_LIB_NAME ndnboost_unit_test_framework
31
32# if defined(NDNBOOST_ALL_DYN_LINK) || defined(NDNBOOST_TEST_DYN_LINK)
33# define NDNBOOST_DYN_LINK
34# endif
35
36# include <ndnboost/config/auto_link.hpp>
37
38#endif // auto-linking disabled
39
40// ************************************************************************** //
41// ************** unit_test_main ************** //
42// ************************************************************************** //
43
44namespace ndnboost { namespace unit_test {
45
46int NDNBOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );
47
48}}
49
50#if defined(NDNBOOST_TEST_DYN_LINK) && defined(NDNBOOST_TEST_MAIN) && !defined(NDNBOOST_TEST_NO_MAIN)
51
52// ************************************************************************** //
53// ************** main function for tests using dll ************** //
54// ************************************************************************** //
55
56int NDNBOOST_TEST_CALL_DECL
57main( int argc, char* argv[] )
58{
59 return ::ndnboost::unit_test::unit_test_main( &init_unit_test, argc, argv );
60}
61
62//____________________________________________________________________________//
63
64#endif // NDNBOOST_TEST_DYN_LINK && NDNBOOST_TEST_MAIN && !NDNBOOST_TEST_NO_MAIN
65
66#endif // NDNBOOST_TEST_UNIT_TEST_HPP_071894GER