summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-07 13:06:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-07 13:06:38 (GMT)
commit33f9780adec5a3b4f8c3a6bbf4e1d343e72f508b (patch)
tree5cf13b64d2a60b2ed8aa67d522a575f479b2f1a5 /Source/CTest/cmCTestTestHandler.h
parent100d856cb0755004c6efb34d2a3cdfcffe7c5b73 (diff)
downloadCMake-33f9780adec5a3b4f8c3a6bbf4e1d343e72f508b.zip
CMake-33f9780adec5a3b4f8c3a6bbf4e1d343e72f508b.tar.gz
CMake-33f9780adec5a3b4f8c3a6bbf4e1d343e72f508b.tar.bz2
ENH: Use CMake for parsing DartTestfile.txt
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.h')
-rw-r--r--Source/CTest/cmCTestTestHandler.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestTestHandler.h b/Source/CTest/cmCTestTestHandler.h
index e4b6e92..3076f4d 100644
--- a/Source/CTest/cmCTestTestHandler.h
+++ b/Source/CTest/cmCTestTestHandler.h
@@ -20,7 +20,7 @@
#include "cmCTestGenericHandler.h"
-#include "cmListFileCache.h"
+#include <cmsys/RegularExpression.hxx>
class cmMakefile;
@@ -62,6 +62,11 @@ public:
cmCTestTestHandler();
+ /*
+ * Add the test to the list of tests to be executed
+ */
+ bool AddTest(const std::vector<std::string>& args);
+
struct cmCTestTestResult
{
std::string m_Name;
@@ -76,14 +81,12 @@ public:
int m_TestCount;
};
- typedef std::vector<cmListFileArgument> tm_VectorOfListFileArgs;
-
protected:
struct cmCTestTestProperties
{
cmStdString m_Name;
cmStdString m_Directory;
- tm_VectorOfListFileArgs m_Args;
+ std::vector<std::string> m_Args;
bool m_IsInBasedOnREOptions;
};
@@ -134,7 +137,7 @@ private:
/**
* Get the list of tests in directory and subdirectories.
*/
- void GetListOfTests(tm_ListOfTests* testlist);
+ void GetListOfTests();
/**
* Find the executable for a test
@@ -157,6 +160,8 @@ private:
bool m_UseExcludeRegExpFirst;
std::string m_IncludeRegExp;
std::string m_ExcludeRegExp;
+ cmsys::RegularExpression m_IncludeTestsRegularExpression;
+ cmsys::RegularExpression m_ExcludeTestsRegularExpression;
std::string GenerateRegressionImages(const std::string& xml);
@@ -165,6 +170,7 @@ private:
std::string TestsToRunString;
bool m_UseUnion;
+ tm_ListOfTests m_TestList;
};
#endif