diff options
author | Brad King <brad.king@kitware.com> | 2011-06-14 17:23:20 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-06-14 17:23:20 (GMT) |
commit | f616f263cd016a978dd04ce7b62d8dcabd0f4e2e (patch) | |
tree | 7821ed6c31f018537a8873fd5414758a4eb2c409 /Source/cmTestGenerator.cxx | |
parent | cf1c3c102f76d9dd5a7c62995987fc05c12edc8a (diff) | |
parent | a4ec24269b32a28104e1d5681e718024b28bb4e7 (diff) | |
download | CMake-f616f263cd016a978dd04ce7b62d8dcabd0f4e2e.zip CMake-f616f263cd016a978dd04ce7b62d8dcabd0f4e2e.tar.gz CMake-f616f263cd016a978dd04ce7b62d8dcabd0f4e2e.tar.bz2 |
Merge topic 'ctest-no-config-report-notrun'
a4ec242 CTest: Report tests not run due to unknown configuration
77ddb6a Use cascading-if for per-config test and install code
Diffstat (limited to 'Source/cmTestGenerator.cxx')
-rw-r--r-- | Source/cmTestGenerator.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/cmTestGenerator.cxx b/Source/cmTestGenerator.cxx index 39f8638..e0892b2 100644 --- a/Source/cmTestGenerator.cxx +++ b/Source/cmTestGenerator.cxx @@ -130,6 +130,22 @@ void cmTestGenerator::GenerateScriptForConfig(std::ostream& os, } //---------------------------------------------------------------------------- +void cmTestGenerator::GenerateScriptNoConfig(std::ostream& os, + Indent const& indent) +{ + os << indent << "ADD_TEST(" << this->Test->GetName() << " NOT_AVAILABLE)\n"; +} + +//---------------------------------------------------------------------------- +bool cmTestGenerator::NeedsScriptNoConfig() const +{ + return (this->TestGenerated && // test generated for at least one config + this->ActionsPerConfig && // test is config-aware + this->Configurations.empty() && // test runs in all configs + !this->ConfigurationTypes->empty()); // config-dependent command +} + +//---------------------------------------------------------------------------- void cmTestGenerator::GenerateOldStyle(std::ostream& fout, Indent const& indent) { |