summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-27 13:51:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-11-27 13:51:35 (GMT)
commit0c1912e3e58bebe9eb7c6dcac7a478dc607dba66 (patch)
tree752993eb08fdc42731d2d635c596ad4572cef5d0 /Source/cmMakefile.cxx
parentb1d3fb7fba735d829c2cd655830161871827d82e (diff)
parentfe2c2b0ffb567ca7d51036c69845091f70736a50 (diff)
downloadCMake-0c1912e3e58bebe9eb7c6dcac7a478dc607dba66.zip
CMake-0c1912e3e58bebe9eb7c6dcac7a478dc607dba66.tar.gz
CMake-0c1912e3e58bebe9eb7c6dcac7a478dc607dba66.tar.bz2
Merge topic 'serverFixTestDiscovery'
fe2c2b0f server: ctestInfo fix to return all tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1479
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 0855e79..9678a66 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -3335,13 +3335,6 @@ cmGlobalGenerator* cmMakefile::GetGlobalGenerator() const
return this->GlobalGenerator;
}
-void cmMakefile::GetTestNames(std::vector<std::string>& testNames)
-{
- for (const auto& iter : Tests) {
- testNames.push_back(iter.first);
- }
-}
-
#ifdef CMAKE_BUILD_WITH_CMAKE
cmVariableWatch* cmMakefile::GetVariableWatch() const
{
@@ -3677,6 +3670,16 @@ cmTest* cmMakefile::GetTest(const std::string& testName) const
return nullptr;
}
+void cmMakefile::GetTests(const std::string& config,
+ std::vector<cmTest*>& tests)
+{
+ for (auto generator : this->GetTestGenerators()) {
+ if (generator->TestsForConfig(config)) {
+ tests.push_back(generator->GetTest());
+ }
+ }
+}
+
void cmMakefile::AddCMakeDependFilesFromUser()
{
std::vector<std::string> deps;