diff options
author | Brad King <brad.king@kitware.com> | 2009-02-11 16:31:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-02-11 16:31:25 (GMT) |
commit | 0847d825b37aba91a1c118f5dec45c245639a61a (patch) | |
tree | 8996ab041f37325809fdf76e3051c9bb84df13da /Source/ctest.cxx | |
parent | 52692cccaabc51d5fd2c350264aadd4cdbbd0bfc (diff) | |
download | CMake-0847d825b37aba91a1c118f5dec45c245639a61a.zip CMake-0847d825b37aba91a1c118f5dec45c245639a61a.tar.gz CMake-0847d825b37aba91a1c118f5dec45c245639a61a.tar.bz2 |
ENH: Create internal 'ctest --launch' tool
This creates an undocumented 'ctest --launch' mode. It launches a
specified command and optionally records a failure in an xml fragment.
We will optionally use this in CTest's Build stage to record per-rule
build failure information when using Makefile generators.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r-- | Source/ctest.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx index 7f4987e..112611b 100644 --- a/Source/ctest.cxx +++ b/Source/ctest.cxx @@ -22,6 +22,8 @@ #include "cmDocumentation.h" #include "CTest/cmCTestScriptHandler.h" +#include "CTest/cmCTestLaunch.h" + //---------------------------------------------------------------------------- static const char * cmDocumentationName[][3] = { @@ -217,6 +219,13 @@ int main (int argc, char *argv[]) cmSystemTools::DoNotInheritStdPipes(); cmSystemTools::EnableMSVCDebugHook(); cmSystemTools::FindExecutableDirectory(argv[0]); + + // Dispatch 'ctest --launch' mode directly. + if(argc >= 2 && strcmp(argv[1], "--launch") == 0) + { + return cmCTestLaunch::Main(argc, argv); + } + int nocwd = 0; cmCTest inst; |