PlasCom2  1.0
XPACC Multi-physics simluation application
SysTest.H
Go to the documentation of this file.
1 #include "Testing.H"
7 #include "TestingProgram.H"
8 
9 namespace ix { namespace sys {
12  // The basic overaching test object for the primitive
13  // utilities
14  class testmanager : public TestManagerType
15  {
16  protected:
17  TestGlobalType *driverProgram;
18  public:
20  testmanager() : TestManagerType() {
21  driverProgram = NULL;
23  };
24  void SetDriverProgram(TestGlobalType *inProgram){driverProgram = inProgram;};
25  void Test__SystemInfo(test::results &result);
26  void AddTest(const std::string &testName,SuperTestFunction TestFunction)
27  {
28  TestFunctionType BaseTestFunction = static_cast<TestFunctionType>(TestFunction);
29  test::manager<test::results>::AddTest(testName,BaseTestFunction);
30  }
31  };
32 
33  };
34 };
void Test__SystemInfo(test::results &result)
Definition: TestSys.C:14
Implements a program object for testing.
Defines MPI-specific parallel global and program classes.
void(manager::* TestFunctionType)(test::results &)
Definition: Testing.H:88
Encapsulating class for collections of test results.
Definition: Testing.H:18
TestGlobalType * driverProgram
Definition: SysTest.H:17
void SetDriverProgram(TestGlobalType *inProgram)
Definition: SysTest.H:24
Testing constructs for unit testing.
void(testmanager::* SuperTestFunction)(test::results &)
Definition: SysTest.H:19
void AddTest(const std::string &testName, SuperTestFunction TestFunction)
Definition: SysTest.H:26
test::manager< test::results > TestManagerType
Definition: SysTest.H:10
test::Global TestGlobalType
Definition: SysTest.H:11
virtual void AddTest(const std::string &testName, TestFunctionType TestFunc)
Add a test.
Definition: Testing.H:123
Base global object.
Definition: Global.H:25