1 | /*
|
---|
2 | * test.cpp
|
---|
3 | *
|
---|
4 | * Created on: Jan 12, 2014
|
---|
5 | * Author: ilyaivensky
|
---|
6 | */
|
---|
7 | #include <boost/test/included/unit_test.hpp>
|
---|
8 | using boost::unit_test_framework::test_suite;
|
---|
9 |
|
---|
10 | void foo()
|
---|
11 | {
|
---|
12 | BOOST_CHECK(true);
|
---|
13 | }
|
---|
14 |
|
---|
15 | boost::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 |
|
---|
24 | int 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 |
|
---|