MCPcopy Create free account
hub / github.com/Kitware/CMake / SetTests

Method SetTests

Source/CTest/cmCTestMultiProcessHandler.cxx:135–152  ·  view source on GitHub ↗

Set the tests

Source from the content-addressed store, hash-verified

133
134// Set the tests
135bool cmCTestMultiProcessHandler::SetTests(TestMap tests,
136 PropertiesMap properties)
137{
138 this->PendingTests = std::move(tests);
139 this->Properties = std::move(properties);
140 this->Total = this->PendingTests.size();
141 if (!this->CTest->GetShowOnly()) {
142 this->ReadCostData();
143 this->HasCycles = !this->CheckCycles();
144 this->HasInvalidGeneratedResourceSpec =
145 !this->CheckGeneratedResourceSpec();
146 if (this->HasCycles || this->HasInvalidGeneratedResourceSpec) {
147 return false;
148 }
149 this->CreateTestCostList();
150 }
151 return true;
152}
153
154// Set the max number of tests that can be run at the same time.
155void cmCTestMultiProcessHandler::SetParallelLevel(cm::optional<size_t> level)

Callers 1

ProcessDirectoryMethod · 0.80

Calls 7

ReadCostDataMethod · 0.95
CheckCyclesMethod · 0.95
CreateTestCostListMethod · 0.95
moveFunction · 0.85
GetShowOnlyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected