sis3800TestRunner.cpp

Go to the documentation of this file.
00001 #include <config.h>
00002 #include <cppunit/extensions/TestFactoryRegistry.h>
00003 #include <cppunit/ui/text/TestRunner.h>
00004 #include <string>
00005 #include <Iostream.h>
00006 
00007 #ifdef HAVE_STD_NAMESPACE
00008 using namespace std;
00009 #endif
00010 
00011 int main(int argc, char** argv)
00012 {
00013   CppUnit::TextUi::TestRunner   
00014                runner; // Control tests.
00015   CppUnit::TestFactoryRegistry& 
00016                registry(CppUnit::TestFactoryRegistry::getRegistry());
00017 
00018   runner.addTest(registry.makeTest());
00019 
00020   bool wasSucessful;
00021   try {
00022     wasSucessful = runner.run("",false);
00023   } 
00024   catch(string& rFailure) {
00025     cerr << "Caught a string exception from test suites.: \n";
00026     cerr << rFailure << endl;
00027     wasSucessful = false;
00028   }
00029   return !wasSucessful;
00030 }

Generated on Wed Sep 17 08:38:09 2008 for NSCL Device support. by  doxygen 1.5.1