11 #define BOOST_TEST_DYN_LINK
12 #define BOOST_TEST_MODULE "Test module for cf3::common 's parallel environment - part of testing the environment."
17 #include <boost/test/unit_test.hpp>
28 using namespace boost;
39 m_argc = boost::unit_test::framework::master_test_suite().argc;
40 m_argv = boost::unit_test::framework::master_test_suite().argv;
58 BOOST_FIXTURE_TEST_SUITE( PESuite,
PEFixture )
64 BOOST_CHECK_EQUAL( PE::Comm::instance().is_active() ,
false );
69 BOOST_CHECK_EQUAL( PE::Comm::instance().rank() , (
Uint)0 );
74 PE::Comm::instance().init(m_argc,m_argv);
75 BOOST_CHECK_EQUAL( PE::Comm::instance().is_active() ,
true );
81 BOOST_CHECK_LT( PE::Comm::instance().rank() , PE::Comm::instance().size() );
87 PE::Comm::instance().finalize();
88 BOOST_CHECK_EQUAL( PE::Comm::instance().is_active() ,
false );
93 BOOST_AUTO_TEST_SUITE_END()
#define CFinfo
these are always defined
external boost library namespace
BOOST_AUTO_TEST_CASE(isinit_preinit)
Top-level namespace for coolfluid.
unsigned int Uint
typedef for unsigned int
PEFixture()
common setup for each test case
int m_argc
possibly common functions used on the tests below
~PEFixture()
common tear-down for each test case
Most basic kernel library.
#define PEProcessSortedExecute(irank, expression)