Ticket #9564: test.cpp

File test.cpp, 590 bytes (added by Ilya Ivensky <ilya.ivensky@…>, 9 years ago)

test case code

Line 
1/*
2 * test.cpp
3 *
4 * Created on: Jan 12, 2014
5 * Author: ilyaivensky
6 */
7#include <boost/test/included/unit_test.hpp>
8using boost::unit_test_framework::test_suite;
9
10void foo()
11{
12 BOOST_CHECK(true);
13}
14
15boost::unit_test_framework::test_suite * init_unit_test_suite(int argc, char *argv[])
16{
17 test_suite* test = BOOST_TEST_SUITE("Foo");
18
19 test->add(BOOST_TEST_CASE(&foo));
20
21 return test;
22}
23
24int run_test(int argc, char* argv[])
25{
26 boost::unit_test::init_unit_test_func init_func = &init_unit_test_suite;
27 return ::boost::unit_test::unit_test_main(init_func, argc, argv );
28}
29
30