47 if(!testName.empty()){
49 test.RunTest(TestName,results);
50 }
else if(!listName.empty()){
51 std::ifstream listInf;
52 listInf.open(ListName.c_str());
54 std::ostringstream errStream;
55 errStream <<
"Error: Could not open list of tests in file " 56 << listName <<
"." << std::endl;
57 ErrOut(errStream.str());
61 while(std::getline(listInf,testName))
62 test.RunTest(testName,results);
67 test.Process(results);
71 int TestingProgram::Finalize(){
72 *Out << results << std::endl;
74 *Out <<
"Test: Exiting test function (success)" << std::endl;
77 if(!OutFileName.empty()){
78 Ouf.open(OutFileName.c_str());
80 std::cout <<
"Test> Error: Could not open output file, " 81 << OutFileName <<
" for test output. Exiting (fail)." << std::endl;
84 Ouf << outStream.str();
94 int main(
int argc,
char *argv[])
96 return(
Test(argc,argv));
Implements a program object for testing.
Defines MPI-specific parallel global and program classes.
int main(int argc, char *argv[])
int Test(int argc, char *argv[])
Drives the plascom2::TestObject.