diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-18 16:53:48 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-07-18 16:53:48 (GMT) |
commit | f47a57c3e8410e5ce78acf67bf239303fa6b27e4 (patch) | |
tree | a2c5b968c53804064344b45751f58f0fcf912fff /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | 3d84afe571f03f0f8406a4af95746877b5ee9267 (diff) | |
download | CMake-f47a57c3e8410e5ce78acf67bf239303fa6b27e4.zip CMake-f47a57c3e8410e5ce78acf67bf239303fa6b27e4.tar.gz CMake-f47a57c3e8410e5ce78acf67bf239303fa6b27e4.tar.bz2 |
ENH: Add a way to submit extra files to the dashboard
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index 81252a7..3026e92 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -97,6 +97,25 @@ bool cmCTestSubmitCommand::InitialPass( } m_CTest->GenerateNotesFile(newNotesFiles); } + const char* extraFilesVariable = m_Makefile->GetDefinition("CTEST_EXTRA_SUBMIT_FILES"); + if (extraFilesVariable) + { + std::vector<std::string> extraFiles; + std::vector<cmStdString> newExtraFiles; + cmSystemTools::ExpandListArgument(extraFilesVariable,extraFiles); + std::vector<std::string>::iterator it; + for ( it = extraFiles.begin(); + it != extraFiles.end(); + ++ it ) + { + newExtraFiles.push_back(*it); + } + if ( !m_CTest->SubmitExtraFiles(newExtraFiles)) + { + this->SetError("problem submitting extra files."); + return false; + } + } cmCTestGenericHandler* handler = m_CTest->GetInitializedHandler("submit"); if ( !handler ) |