![]() |
Mixed Data Coincidence Analysis Software 1.0
A program to analyze files produced by the EventMixer software.
|
00001 #include "RunTests.hh" 00002 00003 00004 int main() 00005 { 00006 addTests(); 00007 cout << "Running unit tests..." << endl; 00008 for(list<GenericUnitTest*>::iterator it = myTests.begin(); it!=myTests.end(); it++) 00009 { 00010 int response = (*it)->runUnitTests(); 00011 if(response!=0) 00012 { 00013 cout << "Test failed. Further testing terminated." << endl; 00014 return response; 00015 } 00016 } 00017 cout << "All tests were successful." << endl; 00018 return 0; 00019 } 00020 00021 00022 void addTests() 00023 { 00024 myTests.push_back((GenericUnitTest*)(new FileEventParser_TEST())); 00025 myTests.push_back((GenericUnitTest*)(new EventHit_TEST())); 00026 }