| 622 | } |
| 623 | |
| 624 | bool cmCTest::SetTest(std::string const& ttype, bool report) |
| 625 | { |
| 626 | if (cmSystemTools::LowerCase(ttype) == "all") { |
| 627 | for (Part p = PartStart; p != PartCount; p = static_cast<Part>(p + 1)) { |
| 628 | this->Impl->Parts[p].Enable(); |
| 629 | } |
| 630 | return true; |
| 631 | } |
| 632 | Part p = this->GetPartFromName(ttype); |
| 633 | if (p != PartCount) { |
| 634 | this->Impl->Parts[p].Enable(); |
| 635 | return true; |
| 636 | } |
| 637 | if (report) { |
| 638 | cmCTestLog(this, ERROR_MESSAGE, |
| 639 | "Don't know about test \"" << ttype << "\" yet..." |
| 640 | << std::endl); |
| 641 | } |
| 642 | return false; |
| 643 | } |
| 644 | |
| 645 | bool cmCTest::OpenOutputFile(std::string const& path, std::string const& name, |
| 646 | cmGeneratedFileStream& stream, bool compress) |
no test coverage detected