| 506 | } |
| 507 | |
| 508 | bool 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 | |
| 528 | bool HandleVariableMode(cmExecutionStatus& status, std::string const& name, |
| 529 | OutType infoType, std::string const& variable, |
no test coverage detected
searching dependent graphs…