Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:10:32

0001 /*
0002   Generic test runner for CppUnit based tests. No modifications needed
0003 
0004   \author CppUnit Cookbook
0005  */
0006 
0007 #include <cppunit/extensions/HelperMacros.h>
0008 #include <cppunit/ui/text/TestRunner.h>
0009 
0010 int main()
0011 {
0012   CppUnit::TextUi::TestRunner runner;
0013   CppUnit::TestFactoryRegistry& registry = 
0014     CppUnit::TestFactoryRegistry::getRegistry();
0015 
0016   runner.addTest( registry.makeTest() );
0017 
0018   bool ret = runner.run("", false);
0019   return ret ? 0 : 1;
0020 }
0021 
0022 
0023 // Configure (x)emacs for this file ...
0024 // Local Variables:
0025 // mode:c++
0026 // compile-command: "make -C .. -k testTime && ../testTime"
0027 // End: