summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-11-24 13:58:59 (GMT)
committerBrad King <brad.king@kitware.com>2009-11-24 13:58:59 (GMT)
commite1548142fbb582d02f2386ff8085e6372f7f3ffd (patch)
tree3e65a470050c1e75a2f28a0a9d11371c828d2633 /Source/cmCTest.h
parentc2ba35787e4f710d7424c30c61efd1d386d0d619 (diff)
downloadCMake-e1548142fbb582d02f2386ff8085e6372f7f3ffd.zip
CMake-e1548142fbb582d02f2386ff8085e6372f7f3ffd.tar.gz
CMake-e1548142fbb582d02f2386ff8085e6372f7f3ffd.tar.bz2
CTest: Move initial checkout to ctest_start()
In CTest command-driven script mode we support starting without a source tree. Previously the ctest_start() command would do some initialization but could not do anything that required CTestConfig.cmake from the input source tree. Later, ctest_update() would run CTEST_CHECKOUT_COMMAND to create the source tree, and then re-initialize everything. This delayed-initialization approach led to many complicated cases of which only some worked. For example, the second initialization only worked correctly in Nightly mode and simply failed for Experimental and Continuous builds. A simpler solution is to run CTEST_CHECKOUT_COMMAND during ctest_start() and then have a single initialization path. In principle this change in behavior could break scripts that set the checkout command after ctest_start() but before ctest_update(). However, the convention we've always followed has been to set all variables before ctest_start(). See issue #9450.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r--Source/cmCTest.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index 652b1c4..210a61b 100644
--- a/Source/cmCTest.h
+++ b/Source/cmCTest.h
@@ -23,6 +23,7 @@ class cmCTestGenericHandler;
class cmGeneratedFileStream;
class cmCTestCommand;
class cmCTestScriptHandler;
+class cmCTestStartCommand;
#define cmCTestLog(ctSelf, logType, msg) \
do { \
@@ -93,7 +94,7 @@ public:
/**
* Initialize and finalize testing
*/
- bool InitializeFromCommand(cmCTestCommand* command, bool first = false);
+ bool InitializeFromCommand(cmCTestStartCommand* command);
void Finalize();
/**