sis3600TestRunner.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 
00006 #include <Iostream.h>
00007 
00008 #ifdef HAVE_STD_NAMESPACE
00009 using namespace std;
00010 #endif
00011 
00012 int main(int argc, char** argv)
00013 {
00014   CppUnit::TextUi::TestRunner   
00015                runner; // Control tests.
00016   CppUnit::TestFactoryRegistry& 
00017                registry(CppUnit::TestFactoryRegistry::getRegistry());
00018 
00019   runner.addTest(registry.makeTest());
00020 
00021   bool wasSucessful;
00022   try {
00023     wasSucessful = runner.run("",false);
00024   } 
00025   catch(string& rFailure) {
00026     cerr << "Caught a string exception from test suites.: \n";
00027     cerr << rFailure << endl;
00028     wasSucessful = false;
00029   }
00030   return !wasSucessful;
00031 }

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