/*============================================================================ CMake - Cross Platform Makefile Generator Copyright 2000-2009 Kitware, Inc., Insight Software Consortium Distributed under the OSI-approved BSD License (the "License"); see accompanying file Copyright.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License for more information. ============================================================================*/ #include "cmCTest.h" #include "cmSystemTools.h" // Need these for documentation support. #include "cmake.h" #include "cmDocumentation.h" #include "CTest/cmCTestScriptHandler.h" #include "CTest/cmCTestLaunch.h" #include "cmsys/Encoding.hxx" //---------------------------------------------------------------------------- static const char * cmDocumentationName[][2] = { {0, " ctest - Testing driver provided by CMake."}, {0,0} }; //---------------------------------------------------------------------------- static const char * cmDocumentationUsage[][2] = { {0, " ctest [options]"}, {0,0} }; //---------------------------------------------------------------------------- //---------------------------------------------------------------------------- static const char * cmDocumentationOptions[][2] = { {"-C , --build-config ", "Choose configuration to test."}, {"-V,--verbose", "Enable verbose output from tests."}, {"-VV,--extra-verbose", "Enable more verbose output from tests."}, {"--debug", "Displaying more verbose internals of CTest."}, {"--output-on-failure", "Output anything outputted by the test program " "if the test should fail."}, {"--test-output-size-passed ", "Limit the output for passed tests " "to bytes"}, {"--test-output-size-failed ", "Limit the output for failed tests " "to bytes"}, {"-F", "Enable failover."}, {"-j , --parallel ", "Run the tests in parallel using the " "given number of jobs."}, {"-Q,--quiet", "Make ctest quiet."}, {"-O , --output-log ", "Output to log file"}, {"-N,--show-only", "Disable actual execution of tests."}, {"-L , --label-regex ", "Run tests with labels matching " "regular expression."}, {"-R , --tests-regex ", "Run tests matching regular " "expression."}, {"-E , --exclude-regex ", "Exclude tests matching regular " "expression."}, {"-LE , --label-exclude ", "Exclude tests with labels " "matching regular expression."}, {"-D , --dashboard ", "Execute dashboard test"}, {"-D :=", "Define a variable for script mode"}, {"-M , --test-model ", "Sets the model for a dashboard"}, {"-T , --test-action ", "Sets the dashboard action to " "perform"}, {"--track ", "Specify the track to submit dashboard to"}, {"-S