summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2004-11-13 14:55:31 (GMT)
committerKen Martin <ken.martin@kitware.com>2004-11-13 14:55:31 (GMT)
commit5a0366c6e0415294dde67b4bd2167d1cbf5d9ff1 (patch)
tree24585d0edb451644a77305b5362037bdcad75827 /Source/CTest/cmCTestTestHandler.h
parent247c367a59552be299583cf77705709ae972a295 (diff)
downloadCMake-5a0366c6e0415294dde67b4bd2167d1cbf5d9ff1.zip
CMake-5a0366c6e0415294dde67b4bd2167d1cbf5d9ff1.tar.gz
CMake-5a0366c6e0415294dde67b4bd2167d1cbf5d9ff1.tar.bz2
ENH: added -U option to take union of -R and -I
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.h')
-rw-r--r--Source/CTest/cmCTestTestHandler.h22
1 files changed, 15 insertions, 7 deletions
diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h
index 9d7f451..4bca7d0 100644
--- a/Source/CTest/cmCTestTestHandler.h
+++ b/Source/CTest/cmCTestTestHandler.h
@@ -42,9 +42,16 @@ public:
* If verbose then more informaiton is printed out
*/
void SetVerbose(bool val) { m_Verbose = val; }
-
- void PopulateCustomVectors(cmMakefile *mf);
+ /*
+ * When both -R and -I are used should te resulting test list be the
+ * intersection or the union of the lists. By default it is the
+ * intersection.
+ */
+ void SetUseUnion(bool val) { m_UseUnion = val; }
+
+ void PopulateCustomVectors(cmMakefile *mf);
+
///! Control the use of the regular expresisons, call these methods to turn
///them on
void UseIncludeRegExp();
@@ -58,7 +65,7 @@ public:
void SetTestsToRunInformation(const char*);
typedef std::vector<cmListFileArgument> tm_VectorOfListFileArgs;
-
+
private:
enum { // Memory checkers
@@ -152,13 +159,14 @@ private:
void ProcessDirectory(std::vector<cmStdString> &passed,
std::vector<cmStdString> &failed,
bool memcheck);
-
+
struct cmCTestTestProperties
- {
+ {
cmStdString m_Name;
cmStdString m_Directory;
tm_VectorOfListFileArgs m_Args;
- };
+ bool m_IsInBasedOnREOptions;
+ };
typedef std::vector<cmCTestTestProperties> tm_ListOfTests;
/**
@@ -205,7 +213,7 @@ private:
std::string& log, int* results);
std::string TestsToRunString;
-
+ bool m_UseUnion;
};
#endif