summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.h
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-01-27 15:11:04 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-01-27 15:11:04 (GMT)
commitef754021482b771e05de411af17c225e92ef7202 (patch)
tree3d554402134024add5fc540f3d3240f746151266 /Source/CTest/cmCTestScriptHandler.h
parent3575fed90c8af7506162560d3b1e83c9c6776635 (diff)
downloadCMake-ef754021482b771e05de411af17c225e92ef7202.zip
CMake-ef754021482b771e05de411af17c225e92ef7202.tar.gz
CMake-ef754021482b771e05de411af17c225e92ef7202.tar.bz2
ENH: added more capabilities to ctest
Diffstat (limited to 'Source/CTest/cmCTestScriptHandler.h')
-rw-r--r--Source/CTest/cmCTestScriptHandler.h27
1 files changed, 23 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.h b/Source/CTest/cmCTestScriptHandler.h
index dc27e1f..7b96350 100644
--- a/Source/CTest/cmCTestScriptHandler.h
+++ b/Source/CTest/cmCTestScriptHandler.h
@@ -81,7 +81,24 @@ public:
* If verbose then more informaiton is printed out
*/
void SetVerbose(bool val) { m_Verbose = val; }
-
+
+ /*
+ * Run a script
+ */
+ static bool RunScript(cmCTest* ctest, const char *script);
+ int RunCurrentScript(cmCTest* ctest);
+
+ /*
+ * Empty Binary Directory
+ */
+ static bool EmptyBinaryDirectory(const char *dir);
+
+ /*
+ * Some elapsed time handling functions
+ */
+ static void SleepInSeconds(unsigned int secondsToWait);
+ void UpdateElapsedTime();
+
cmCTestScriptHandler();
~cmCTestScriptHandler();
@@ -98,8 +115,6 @@ private:
// perform any extra cvs updates that were requested
int PerformExtraUpdates();
- void LocalSleep(unsigned int secondsToWait);
-
// backup and restore dirs
int BackupDirectories();
void RestoreBackupDirectories();
@@ -113,7 +128,8 @@ private:
bool m_Backup;
bool m_EmptyBinDir;
bool m_EmptyBinDirOnce;
-
+ bool m_ScriptHasRun;
+
cmStdString m_SourceDir;
cmStdString m_BinaryDir;
cmStdString m_BackupSourceDir;
@@ -130,6 +146,9 @@ private:
double m_MinimumInterval;
double m_ContinuousDuration;
+
+ // what time in seconds did this script start running
+ double m_ScriptStartTime;
cmMakefile *m_Makefile;
cmLocalGenerator *m_LocalGenerator;