summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-01-12 15:37:55 (GMT)
committerBrad King <brad.king@kitware.com>2009-01-12 15:37:55 (GMT)
commit447f5b303eab1b076f49ed52af90e554160dddc6 (patch)
tree6e27fdd66c1b7d39440d94681457c2765a957a99 /Source/cmCTest.h
parent4b97fab34d07afe05b057dbb6b2c64f4f0d24f40 (diff)
downloadCMake-447f5b303eab1b076f49ed52af90e554160dddc6.zip
CMake-447f5b303eab1b076f49ed52af90e554160dddc6.tar.gz
CMake-447f5b303eab1b076f49ed52af90e554160dddc6.tar.bz2
ENH: Divide CTest file submission list by part
This splits the list of files for CTest to submit into those belonging to each part. The set is recombined just before submission. Later this will allow piecewise submissions.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index f3cdaab..d822fec 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -62,6 +62,7 @@ public:
PartMemCheck,
PartSubmit,
PartNotes,
+ PartExtraFiles,
PartCount // Update names in constructor when adding a part
};
@@ -75,6 +76,8 @@ public:
void Enable() { this->Enabled = true; }
operator bool() const { return this->Enabled; }
+
+ std::vector<std::string> SubmitFiles;
private:
bool Enabled;
std::string Name;
@@ -147,7 +150,7 @@ public:
* Check if CTest file exists
*/
bool CTestFileExists(const std::string& filename);
- bool AddIfExists(SetOfStrings& files, const char* file);
+ bool AddIfExists(Part part, const char* file);
/**
* Set the cmake test
@@ -352,8 +355,9 @@ public:
int GetDartVersion() { return this->DartVersion; }
//! Add file to be submitted
- void AddSubmitFile(const char* name);
- SetOfStrings* GetSubmitFiles() { return &this->SubmitFiles; }
+ void AddSubmitFile(Part part, const char* name);
+ std::vector<std::string> const& GetSubmitFiles(Part part)
+ { return this->Parts[part].SubmitFiles; }
//! Read the custom configuration files and apply them to the current ctest
int ReadCustomConfigurationFileTree(const char* dir, cmMakefile* mf);