GLAC  1.0
test.h
Go to the documentation of this file.
1 
12 #ifndef TEST_H
13 #define TEST_H
14 
15 #include "tests/testsuite.h"
16 #include "performancetests.h"
18 
23 void runUnitTests(bool runTests)
24 {
25  if (runTests)
26  {
27  TestSuite unitTester;
28  unitTester.runFullTestSuite();
32  MPI_Finalize();
33  exit(0);
34  }
35 }
36 
41 void runPerformanceTests(bool runTests)
42 {
43  if (runTests)
44  {
45  PerformanceTests performenceTester;
46  performenceTester.run();
50  MPI_Finalize();
51  exit(0);
52  }
53 }
54 
55 
56 #endif // TEST_H
void runPerformanceTests(bool runTests)
runPerformanceTests will run performance tests on program. Exits once complete.
Definition: test.h:41
void runUnitTests(bool runTests)
Header containing functions needed for running unit tests, integration tests and validation testing.
Definition: test.h:23
void run()
PerformanceTests::run initiates performance testing on:
Definition: performancetests.cpp:57
static void setBarrier()
Parallel::Communicator::setBarrier.
Definition: communicator.cpp:484
Definition: performancetests.h:14
void runFullTestSuite()
Definition: testsuite.cpp:267
static void freeMPIGroups()
Parallel::Communicator::freeMPIGroups.
Definition: communicator.cpp:504
Runs unit tests on the methods of GLAC.
Definition: testsuite.h:23