ENH: Add notes
This commit is contained in:
parent
8adc177bcf
commit
1b35cabc27
|
@ -81,6 +81,22 @@ bool cmCTestSubmitCommand::InitialPass(
|
||||||
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "DropSitePassword", "CTEST_DROP_SITE_PASSWORD");
|
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "DropSitePassword", "CTEST_DROP_SITE_PASSWORD");
|
||||||
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "ScpCommand", "CTEST_SCP_COMMAND");
|
m_CTest->SetCTestConfigurationFromCMakeVariable(m_Makefile, "ScpCommand", "CTEST_SCP_COMMAND");
|
||||||
|
|
||||||
|
const char* notesFilesVariable = m_Makefile->GetDefinition("CTEST_NOTES_FILES");
|
||||||
|
if (notesFilesVariable)
|
||||||
|
{
|
||||||
|
std::vector<std::string> notesFiles;
|
||||||
|
std::vector<cmStdString> newNotesFiles;
|
||||||
|
cmSystemTools::ExpandListArgument(notesFilesVariable,notesFiles);
|
||||||
|
std::vector<std::string>::iterator it;
|
||||||
|
for ( it = notesFiles.begin();
|
||||||
|
it != notesFiles.end();
|
||||||
|
++ it )
|
||||||
|
{
|
||||||
|
newNotesFiles.push_back(*it);
|
||||||
|
}
|
||||||
|
m_CTest->GenerateNotesFile(newNotesFiles);
|
||||||
|
}
|
||||||
|
|
||||||
cmCTestGenericHandler* handler = m_CTest->GetHandler("submit");
|
cmCTestGenericHandler* handler = m_CTest->GetHandler("submit");
|
||||||
if ( !handler )
|
if ( !handler )
|
||||||
{
|
{
|
||||||
|
|
|
@ -14,9 +14,11 @@ SET(CTEST_MEMORYCHECK_COMMAND "@MEMORYCHECK_COMMAND@")
|
||||||
SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
|
SET(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE "@MEMORYCHECK_SUPPRESSIONS_FILE@")
|
||||||
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
|
SET(CTEST_MEMORYCHECK_COMMAND_OPTIONS "@MEMORYCHECK_COMMAND_OPTIONS@")
|
||||||
SET(CTEST_COVERAGE_COMMAND:FILEPATH "@COVERAGE_COMMAND@")
|
SET(CTEST_COVERAGE_COMMAND:FILEPATH "@COVERAGE_COMMAND@")
|
||||||
|
SET(CTEST_NOTES_FILES "${CTEST_SCRIPT_DIRECTORY}/${CTEST_SCRIPT_NAME}")
|
||||||
|
|
||||||
CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
|
CTEST_EMPTY_BINARY_DIRECTORY(${CTEST_BINARY_DIRECTORY})
|
||||||
|
|
||||||
|
|
||||||
FILE(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
|
FILE(WRITE "${CTEST_BINARY_DIRECTORY}/CMakeCache.txt" "
|
||||||
CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
|
CMAKE_CXX_FLAGS:STRING=@CMAKE_CXX_FLAGS@
|
||||||
CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
|
CMAKE_C_FLAGS:STRING=@CMAKE_C_FLAGS@
|
||||||
|
|
Loading…
Reference in New Issue