$treeview $search $mathjax
00001 00005 // ////////////////////////////////////////////////////////////////////// 00006 // Import section 00007 // ////////////////////////////////////////////////////////////////////// 00008 // STL 00009 #include <sstream> 00010 #include <fstream> 00011 #include <string> 00012 // Boost Unit Test Framework (UTF) 00013 #define BOOST_TEST_DYN_LINK 00014 #define BOOST_TEST_MAIN 00015 #define BOOST_TEST_MODULE UnconstrainerTestSuite 00016 #include <boost/test/unit_test.hpp> 00017 // StdAir 00018 #include <stdair/basic/BasLogParams.hpp> 00019 #include <stdair/basic/BasDBParams.hpp> 00020 #include <stdair/basic/BasFileMgr.hpp> 00021 #include <stdair/service/Logger.hpp> 00022 // RMOL 00023 #include <rmol/RMOL_Service.hpp> 00024 00025 namespace boost_utf = boost::unit_test; 00026 00027 // (Boost) Unit Test XML Report 00028 std::ofstream utfReportStream ("UnconstrainerTestSuite_utfresults.xml"); 00029 00033 struct UnitTestConfig { 00035 UnitTestConfig() { 00036 boost_utf::unit_test_log.set_stream (utfReportStream); 00037 boost_utf::unit_test_log.set_format (boost_utf::XML); 00038 boost_utf::unit_test_log.set_threshold_level (boost_utf::log_test_units); 00039 //boost_utf::unit_test_log.set_threshold_level (boost_utf::log_successful_tests); 00040 } 00041 00043 ~UnitTestConfig() { 00044 } 00045 }; 00046 00047 00048 // /////////////// Main: Unit Test Suite ////////////// 00049 00050 // Set the UTF configuration (re-direct the output to a specific file) 00051 BOOST_GLOBAL_FIXTURE (UnitTestConfig); 00052 00057 BOOST_AUTO_TEST_SUITE (master_test_suite) 00058 00059 00062 BOOST_AUTO_TEST_CASE (rmol_unconstraining_em) { 00063 const bool lTestFlag = true;// testUnconstrainerHelper(0); 00064 BOOST_CHECK_EQUAL (lTestFlag, true); 00065 BOOST_CHECK_MESSAGE (lTestFlag == true, 00066 "The test has failed. Please see the log file for " 00067 << "more details"); 00068 } 00069 00070 // End the test suite 00071 BOOST_AUTO_TEST_SUITE_END() 00072 00073