diff options
author | Brad King <brad.king@kitware.com> | 2009-11-24 08:58:48 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-11-24 08:58:48 -0500 |
commit | c2ba35787e4f710d7424c30c61efd1d386d0d619 (patch) | |
tree | 16e8166e4df7d7bb1ce847b1b4946037a5bec51d /Source/cmCTest.h | |
parent | a03f801f7f8d6d244623ce373ea583b95443bb9a (diff) | |
download | cmake-c2ba35787e4f710d7424c30c61efd1d386d0d619.tar.gz |
CTest: Simplify Initialize method signature
We make the cmCTest::Initialize method private since it is only called
from inside the class implementation. We also combine the two boolean
arguments into one since they both meant the same thing.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 47023f11c5..652b1c4f60 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -93,8 +93,6 @@ public: /** * Initialize and finalize testing */ - int Initialize(const char* binary_dir, bool new_tag = false, - bool verbose_tag = true); bool InitializeFromCommand(cmCTestCommand* command, bool first = false); void Finalize(); @@ -446,6 +444,15 @@ private: void BlockTestErrorDiagnostics(); + /** + * Initialize a dashboard run in the given build tree. The "script" + * argument is true when running from a command-driven (ctest_start) + * dashboard script, and false when running from the CTest command + * line. Note that a declarative dashboard script does not actually + * call this method because it sets CTEST_COMMAND to drive a build + * through the ctest command line. + */ + int Initialize(const char* binary_dir, bool script); //! parse the option after -D and convert it into the appropriate steps bool AddTestsForDashboardType(std::string &targ); |