diff options
author | David Cole <david.cole@kitware.com> | 2012-06-24 10:16:32 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-06-24 12:03:24 (GMT) |
commit | 93d084c180fde5bc3c31b9945ea7ddb06d9a6007 (patch) | |
tree | d5e21412dc94d4105acfdbf2c12c97cc0d8fc9d8 /Source/cmCTest.h | |
parent | af298480d020e814fa4537ca7d7dd44d472489b5 (diff) | |
download | CMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.zip CMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.tar.gz CMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.tar.bz2 |
CTest: Extend -D command line arg handling for variable definitions
If the argument following -D is not a valid dashboard type string,
then try to parse it as a "var:type=value" string just like cmake
already does.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 68811f8..beffe9e 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -418,6 +418,11 @@ public: std::string GetCostDataFile(); + const std::map<std::string, std::string> &GetDefinitions() + { + return this->Definitions; + } + private: std::string ConfigType; std::string ScheduleType; @@ -520,6 +525,9 @@ private: //! read as "emit an error message for an unknown -D value" void ErrorMessageUnknownDashDValue(std::string &val); + //! add a variable definition from a command line -D value + bool AddVariableDefinition(const std::string &arg); + //! parse and process most common command line arguments void HandleCommandLineArguments(size_t &i, std::vector<std::string> &args); @@ -562,6 +570,8 @@ private: int OutputLogFileLastTag; bool OutputTestOutputOnTestFailure; + + std::map<std::string, std::string> Definitions; }; class cmCTestLogWrite |