summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestRunTest.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-07-09 20:06:17 (GMT)
committerBrad King <brad.king@kitware.com>2019-10-02 13:33:54 (GMT)
commite34de0691b3bd94720c44c1efad47c3d39ff4134 (patch)
tree934491b44ad3d1241b73226f7539fff6d042c2b5 /Source/CTest/cmCTestRunTest.h
parentaee09648511433160f7fd660eb3c746719810216 (diff)
downloadCMake-e34de0691b3bd94720c44c1efad47c3d39ff4134.zip
CMake-e34de0691b3bd94720c44c1efad47c3d39ff4134.tar.gz
CMake-e34de0691b3bd94720c44c1efad47c3d39ff4134.tar.bz2
CTest: Allocate hardware to tests
Diffstat (limited to 'Source/CTest/cmCTestRunTest.h')
-rw-r--r--Source/CTest/cmCTestRunTest.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h
index c770bac..085a6b8 100644
--- a/Source/CTest/cmCTestRunTest.h
+++ b/Source/CTest/cmCTestRunTest.h
@@ -5,6 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep
+#include <map>
#include <memory>
#include <set>
#include <string>
@@ -12,12 +13,12 @@
#include <stddef.h>
+#include "cmCTestMultiProcessHandler.h"
#include "cmCTestTestHandler.h"
#include "cmDuration.h"
#include "cmProcess.h"
class cmCTest;
-class cmCTestMultiProcessHandler;
/** \class cmRunTest
* \brief represents a single test to be run
@@ -83,6 +84,16 @@ public:
bool TimedOutForStopTime() const { return this->TimeoutIsForStopTime; }
+ void SetUseAllocatedHardware(bool use) { this->UseAllocatedHardware = use; }
+ void SetAllocatedHardware(
+ const std::vector<
+ std::map<std::string,
+ std::vector<cmCTestMultiProcessHandler::HardwareAllocation>>>&
+ hardware)
+ {
+ this->AllocatedHardware = hardware;
+ }
+
private:
bool NeedsToRerun();
void DartProcessing();
@@ -94,6 +105,8 @@ private:
// Run post processing of the process output for MemCheck
void MemCheckPostProcess();
+ void SetupHardwareEnvironment();
+
// Returns "completed/total Test #Index: "
std::string GetTestPrefix(size_t completed, size_t total) const;
@@ -112,6 +125,10 @@ private:
std::string StartTime;
std::string ActualCommand;
std::vector<std::string> Arguments;
+ bool UseAllocatedHardware = false;
+ std::vector<std::map<
+ std::string, std::vector<cmCTestMultiProcessHandler::HardwareAllocation>>>
+ AllocatedHardware;
bool RunUntilFail;
int NumberOfRunsLeft;
bool RunAgain;