simple-socket library 1.1.5

test_runner.cpp

Go to the documentation of this file.
00001 #include <cppunit/extensions/TestFactoryRegistry.h>
00002 #include <cppunit/ui/text/TestRunner.h>
00003 
00004 int main( int argc, char* argv[])
00005 {
00006     CppUnit::TestFactoryRegistry& registry = CppUnit::TestFactoryRegistry::getRegistry();
00007     CppUnit::Test* test_to_run = registry.makeTest();
00008     CppUnit::TextUi::TestRunner runner;
00009 
00010     if(argc > 1)
00011         test_to_run = test_to_run->findTest( argv[1] );
00012 
00013     runner.addTest( test_to_run );
00014     return !runner.run();
00015 }