]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/test/doc/examples/example11.run.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / test / doc / examples / example11.run.cpp
1 // (C) Copyright Gennadiy Rozental 2011-2015.
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 //[example_code
9 #include <boost/test/included/unit_test.hpp>
10 using namespace boost::unit_test;
11
12 void test_case1() { /* ... */ }
13 void test_case2() { /* ... */ }
14 void test_case3() { /* ... */ }
15 void test_case4() { /* ... */ }
16
17 test_suite* init_unit_test_suite( int /*argc*/, char* /*argv*/[] )
18 {
19 test_suite* ts1 = BOOST_TEST_SUITE( "test_suite1" );
20 ts1->add( BOOST_TEST_CASE( &test_case1 ) );
21 ts1->add( BOOST_TEST_CASE( &test_case2 ) );
22
23 test_suite* ts2 = BOOST_TEST_SUITE( "test_suite2" );
24 ts2->add( BOOST_TEST_CASE( &test_case3 ) );
25 ts2->add( BOOST_TEST_CASE( &test_case4 ) );
26
27 framework::master_test_suite().add( ts1 );
28 framework::master_test_suite().add( ts2 );
29
30 return 0;
31 }
32 //]