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

Method SetTest

Source/cmCTest.cxx:624–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624bool 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
645bool cmCTest::OpenOutputFile(std::string const& path, std::string const& name,
646 cmGeneratedFileStream& stream, bool compress)

Callers 2

RunMethod · 0.95

Calls 2

GetPartFromNameMethod · 0.95
EnableMethod · 0.80

Tested by

no test coverage detected