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

Function HandleTestMode

Source/cmGetPropertyCommand.cxx:508–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

506}
507
508bool HandleTestMode(cmExecutionStatus& status, std::string const& name,
509 OutType infoType, std::string const& variable,
510 std::string const& propertyName, cmMakefile& test_makefile)
511{
512 if (name.empty()) {
513 status.SetError("not given name for TEST scope.");
514 return false;
515 }
516
517 // Loop over all tests looking for matching names.
518 if (cmTest* test = test_makefile.GetTest(name)) {
519 return StoreResult(infoType, status.GetMakefile(), variable,
520 test->GetProperty(propertyName));
521 }
522
523 // If not found it is an error.
524 status.SetError(cmStrCat("given TEST name that does not exist: ", name));
525 return false;
526}
527
528bool HandleVariableMode(cmExecutionStatus& status, std::string const& name,
529 OutType infoType, std::string const& variable,

Callers 1

cmGetPropertyCommandFunction · 0.70

Calls 7

StoreResultFunction · 0.70
cmStrCatFunction · 0.70
emptyMethod · 0.45
SetErrorMethod · 0.45
GetTestMethod · 0.45
GetMakefileMethod · 0.45
GetPropertyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…