24 #include <cppunit/CompilerOutputter.h> 25 #include <cppunit/extensions/TestFactoryRegistry.h> 26 #include <cppunit/ui/text/TestRunner.h> 29 int main(
int argc,
char** argv)
32 CppUnit::Test *suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
35 CppUnit::TextUi::TestRunner runner;
36 runner.addTest( suite );
39 runner.setOutputter(
new CppUnit::CompilerOutputter( &runner.result(),
43 bool wasSucessful = runner.run();
46 return wasSucessful ? 0 : 1;
int main(int argc, char **argv)