summaryrefslogtreecommitdiff
path: root/Source/cmTestGenerator.cxx
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2017-11-14 13:42:32 -0800
committerJustin Goshi <jgoshi@microsoft.com>2017-11-17 09:19:26 -0800
commitfe2c2b0ffb567ca7d51036c69845091f70736a50 (patch)
tree4a61f5a8062b3e737bd8bea228b5309cb60148f4 /Source/cmTestGenerator.cxx
parentd23a0c4d0e35d50f8f3f1a950a68df576294a77a (diff)
downloadcmake-fe2c2b0ffb567ca7d51036c69845091f70736a50.tar.gz
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 78ca6bca34..b5483593eb 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.