/[escript]/trunk/weipa/test/weipa_UnitTest.cpp
ViewVC logotype

Diff of /trunk/weipa/test/weipa_UnitTest.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3596 by jfenwick, Mon Oct 11 01:48:14 2010 UTC revision 3597 by caltinay, Thu Sep 15 06:03:17 2011 UTC
# Line 14  Line 14 
14  #include <iostream>  #include <iostream>
15    
16  #include "EscriptDatasetTestCase.h"  #include "EscriptDatasetTestCase.h"
17  #include "tools/CppUnitTest/TestRunner.h"  #include <cppunit/CompilerOutputter.h>
18    #include <cppunit/TestResult.h>
19    #include <cppunit/TestResultCollector.h>
20    #include <cppunit/TestRunner.h>
21    
22  using namespace CppUnitTest;  using namespace CppUnit;
23    
24  extern "C"{  extern "C"{
25  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
# Line 31  int main(int argc, char* argv[]) Line 34  int main(int argc, char* argv[])
34          return status;          return status;
35      }      }
36  #endif  #endif
37      // object which runs all of the tests      TestResult controller;
38        TestResultCollector result;
39        controller.addListener(&result);
40      TestRunner runner;      TestRunner runner;
41      runner.addTest("EscriptDataset", EscriptDatasetTestCase::suite());      runner.addTest(EscriptDatasetTestCase::suite());
42        runner.run(controller);
43      // actually run the unit tests.      CompilerOutputter outputter( &result, std::cerr );
44      runner.run(argc, argv);      outputter.write();
   
45  #ifdef ESYS_MPI  #ifdef ESYS_MPI
46      MPI_Finalize();      MPI_Finalize();
47  #endif  #endif
48        return result.wasSuccessful() ? 0 : 1;
     return 0;  
49  }  }
50    

Legend:
Removed from v.3596  
changed lines
  Added in v.3597

  ViewVC Help
Powered by ViewVC 1.1.26