Go to the documentation of this file.00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 #include <cppunit/CompilerOutputter.h>
00025 #include <cppunit/extensions/TestFactoryRegistry.h>
00026 #include <cppunit/ui/text/TestRunner.h>
00027 
00028 
00029 int main(int argc, char** argv)
00030 {
00031     
00032     CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
00033 
00034     
00035     CppUnit::TextUi::TestRunner runner;
00036     runner.addTest( suite );
00037 
00038     
00039     runner.setOutputter( new CppUnit::CompilerOutputter( &runner.result(),
00040                                                          std::cerr ) );
00041 
00042     
00043     bool wasSucessful = runner.run();
00044 
00045     
00046     return wasSucessful ? 0 : 1;
00047 }
00048 
 
bfl
Author(s): Klaas Gadeyne, Wim Meeussen, Tinne Delaet and many others. See web page for a full contributor list. ROS package maintained by Wim Meeussen.
autogenerated on Mon Feb 11 2019 03:45:12