summaryrefslogtreecommitdiffstats
path: root/Source/cmTestGenerator.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2017-11-14 21:42:32 (GMT)
committerJustin Goshi <jgoshi@microsoft.com>2017-11-17 17:19:26 (GMT)
commitfe2c2b0ffb567ca7d51036c69845091f70736a50 (patch)
tree4a61f5a8062b3e737bd8bea228b5309cb60148f4 /Source/cmTestGenerator.cxx
parentd23a0c4d0e35d50f8f3f1a950a68df576294a77a (diff)
downloadCMake-fe2c2b0ffb567ca7d51036c69845091f70736a50.zip
CMake-fe2c2b0ffb567ca7d51036c69845091f70736a50.tar.gz
CMake-fe2c2b0ffb567ca7d51036c69845091f70736a50.tar.bz2
server: ctestInfo fix to return all tests
Prior to this change we were looking at targets. But tests are associated with directories. This change fixes how we gather all tests.
Diffstat (limited to 'Source/cmTestGenerator.cxx')
-rw-r--r--Source/cmTestGenerator.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmTestGenerator.cxx b/Source/cmTestGenerator.cxx
index 78ca6bc..b548359 100644
--- a/Source/cmTestGenerator.cxx
+++ b/Source/cmTestGenerator.cxx
@@ -34,6 +34,16 @@ void cmTestGenerator::Compute(cmLocalGenerator* lg)
this->LG = lg;
}
+bool cmTestGenerator::TestsForConfig(const std::string& config)
+{
+ return this->GeneratesForConfig(config);
+}
+
+cmTest* cmTestGenerator::GetTest() const
+{
+ return this->Test;
+}
+
void cmTestGenerator::GenerateScriptConfigs(std::ostream& os, Indent indent)
{
// Create the tests.