Peano
Loading...
Searching...
No Matches
TestCaseCollection.h
Go to the documentation of this file.
1// This file is part of the Peano project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#ifdef Parallel
6#include <mpi.h>
7#endif
8
10#include "tarch/logging/Log.h"
11
12#include <list>
13
14namespace tarch {
15 namespace tests {
16 class TestCaseCollection;
17 }
18}
19
20
30 private:
35 std::list<TestCase*> _testCases;
36
41
46
51
53 public:
59 TestCaseCollection(const std::string& testCaseCollectionName, bool deleteTestCases = true, bool writeToLog = true);
60
65
69 virtual void run();
70
80 void addTestCase( TestCase* testCase );
81};
82
83
Log Device.
Definition Log.h:517
Contains a sequence of tests which have to be executed sequentially.
static tarch::logging::Log _log
Log interface the class writes to.
virtual ~TestCaseCollection()
Destructor.
bool _deleteTestCases
Tells whether the testcases contained should be deleted uppon destruction of this object.
TestCaseCollection(const std::string &testCaseCollectionName, bool deleteTestCases=true, bool writeToLog=true)
Creates a test case collection.
std::list< TestCase * > _testCases
Sequence of test cases that are executes on a run() call.
virtual void run()
Runs all test cases assigned.
void addTestCase(TestCase *testCase)
Adds a new test case.
bool _writeToLog
Tells the collection wheather to log a progression bar.
Represents one test case.
Definition TestCase.h:57
Have to include this header, as I need access to the SYCL_EXTERNAL keyword.
Definition accelerator.h:19