diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-02 20:16:15 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-04-02 20:29:50 (GMT) |
commit | 060d2ce26914e7a5ff6632869556f3c67d88940c (patch) | |
tree | 82c437bfc9767eda7fb1eb302043ac3a03f757c8 /Source/CTest/cmCTestTestCommand.cxx | |
parent | e95d274f3031180103ee8c88f51432c8d93a5a02 (diff) | |
download | CMake-060d2ce26914e7a5ff6632869556f3c67d88940c.zip CMake-060d2ce26914e7a5ff6632869556f3c67d88940c.tar.gz CMake-060d2ce26914e7a5ff6632869556f3c67d88940c.tar.bz2 |
CTest: Add CTEST_RESOURCE_SPEC_FILE variable
Diffstat (limited to 'Source/CTest/cmCTestTestCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestTestCommand.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx index 0f9b695..c5f683d 100644 --- a/Source/CTest/cmCTestTestCommand.cxx +++ b/Source/CTest/cmCTestTestCommand.cxx @@ -52,6 +52,13 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler() } } this->CTest->SetTimeOut(timeout); + + const char* resourceSpecFile = + this->Makefile->GetDefinition("CTEST_RESOURCE_SPEC_FILE"); + if (this->ResourceSpecFile.empty() && resourceSpecFile) { + this->ResourceSpecFile = resourceSpecFile; + } + cmCTestGenericHandler* handler = this->InitializeActualHandler(); if (!this->Start.empty() || !this->End.empty() || !this->Stride.empty()) { handler->SetOption( |