summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-17 17:04:56 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-06-17 17:04:56 (GMT)
commitd9dc9b54a62c20be2cf42ce050780e1b924e412c (patch)
treefbc9478d4a3559ec8c6ee5c61a008e031c982f99 /Source/CTest/cmCTestScriptHandler.cxx
parentd3239ac68f4cc74e5f5c7cecf876f07262bbf57e (diff)
downloadCMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.zip
CMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.tar.gz
CMake-d9dc9b54a62c20be2cf42ce050780e1b924e412c.tar.bz2
ENH: Add superclass for all commands and handlers. Improve handlers to have initialization code, and start initializing ctest when start is invoked
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.cxx')
-rw-r--r--Source/CTest/cmCTestScriptHandler.cxx43
1 files changed, 43 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx
index 2a408b1..f71983f 100644
--- a/Source/CTest/cmCTestScriptHandler.cxx
+++ b/Source/CTest/cmCTestScriptHandler.cxx
@@ -97,6 +97,49 @@ cmCTestScriptHandler::cmCTestScriptHandler()
m_ContinuousDuration = -1;
}
+//----------------------------------------------------------------------
+void cmCTestScriptHandler::Initialize()
+{
+ m_Backup = false;
+ m_EmptyBinDir = false;
+ m_EmptyBinDirOnce = false;
+
+ m_SourceDir = "";
+ m_BinaryDir = "";
+ m_BackupSourceDir = "";
+ m_BackupBinaryDir = "";
+ m_CTestRoot = "";
+ m_CVSCheckOut = "";
+ m_CTestCmd = "";
+ m_CVSCmd = "";
+ m_CTestEnv = "";
+ m_InitCache = "";
+ m_CMakeCmd = "";
+ m_CMOutFile = "";
+ m_ExtraUpdates.clear();
+
+ m_MinimumInterval = 20*60;
+ m_ContinuousDuration = -1;
+
+ // what time in seconds did this script start running
+ m_ScriptStartTime = 0;
+
+ m_Makefile = 0;
+ if (m_LocalGenerator)
+ {
+ delete m_LocalGenerator;
+ }
+ m_LocalGenerator = 0;
+ if (m_GlobalGenerator)
+ {
+ delete m_GlobalGenerator;
+ }
+ m_GlobalGenerator = 0;
+ if (m_CMake)
+ {
+ delete m_CMake;
+ }
+}
//----------------------------------------------------------------------
cmCTestScriptHandler::~cmCTestScriptHandler()