summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* strings: Remove redundant calls to std::string::c_str()Nils Gladitz2014-10-151-8/+8
| | | | | Replacements were detected and performed by the clang tool remove-cstr-calls on a linux build.
* CTest: Use -A option to pass generator platform selectionBrad King2014-09-151-1/+1
| | | | This is less verbose than defining CMAKE_GENERATOR_PLATFORM.
* CTest: Add options to set generator platformBrad King2014-09-051-0/+13
| | | | | | | | | | The ctest_configure command already reads the CTEST_CMAKE_GENERATOR variable to get the value for the cmake -G option. Read new variable CTEST_CMAKE_GENERATOR_PLATFORM to pass on as CMAKE_GENERATOR_PLATFORM. The "ctest --build-and-test" mode already has "--build-generator" to specify the -G option to CMake. Add a "--build-generator-platform" option to specify a value to pass on as CMAKE_GENERATOR_PLATFORM.
* cmGlobalGenerator: Take Build output argument by referenceBrad King2014-07-311-1/+1
| | | | | | No call sites pass NULL to the output argument, so take it by reference to avoid the if(output) conditions. Propagate the change through the TryCompile APIs that call it.
* cmSystemTools: Add callback for StderrBrad King2014-05-151-2/+4
| | | | | | | | | Factor a common callback type out of StdoutCallback. Add an equivalent StderrCallback. While at it, use "size_t" for the data length instead of "int". Teach "ctest --build-and-test" to capture the Stderr callback because output sent through it is part of the logical CMake process output.
* cmSystemTools: Rename ErrorCallback to MessageCallbackBrad King2014-05-151-2/+2
| | | | | Clarify that it is the callback for the cmSystemTools::Message API. Rename callback clients too.
* cmCTestBuildAndTestHandler: Refactor output captureBrad King2014-05-151-19/+22
| | | | Use an RAII class to add and remove callbacks.
* cmCTestBuildAndTestHandler: Refactor local loop varBrad King2014-05-151-3/+2
|
* Remove some c_str() calls.Stephen Kelly2014-03-111-5/+5
| | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* ctest: Teach --build-options to allow zero optionsBrad King2013-11-181-14/+5
| | | | | | The --build-options option consumes all following arguments until either --build-target or --test-command. Fix the logic to allow this to be zero options.
* ctest: Make the --build-makeprogram optional for --build-and-testBrad King2013-11-181-4/+9
| | | | | | | | | | GenerateBuildCommand now knows how to lookup CMAKE_MAKE_PROGRAM or choose a generator-provided default build tool. Therefore the --build-makeprogram can now be optional and simply override the default selection when provided. Note that with --build-nocmake we now need to load the cache in order to make the CMAKE_MAKE_PROGRAM entry available to GenerateBuildCommand.
* Refactor internal resource location APIs and initializationBrad King2013-11-121-1/+1
| | | | | | | | | | | | | | | | | | | | Rename cmSystemTools::FindExecutableDirectory to FindCMakeResources. Teach it to compute the locations of cmake, ctest, cpack, ccmake, and cmake-gui executables, and the location of CMAKE_ROOT. Provide this information from static cmSystemTools::Get<resource>() methods. Refactor code that needs these locations to use the new APIs. Teach FindCMakeResources to use the OS X system API to lookup the executable location. When running from the CMake build tree itself, leave a file in the tree that FindCMakeResources can use to read the location of the source tree. This avoids the need to compile the source tree location into a binary that may be installed and used without the source tree. Teach the QtDialog on OS X to create a "cmake-gui" symlink in the build tree next to "cmake" and the other tools, as is already done in the install tree for the application bundle. This ensures a consistent set of executables are available in one directory.
* CTest: Add options to set generator toolsetBrad King2013-02-071-4/+20
| | | | | | | | | | The ctest_configure command already reads the CTEST_CMAKE_GENERATOR variable to get the value for the cmake -G option. Read new variable CTEST_CMAKE_GENERATOR_TOOLSET for -T. The "ctest --build-and-test" mode already has "--build-generator" to specify the -G option to CMake. Add a "--build-generator-toolset" option to specify the -T value.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-13/+13
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Fix floating point comparison warnings. Thanks to Alex Neundorf for the patch.David Cole2009-10-131-2/+2
|
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* STYLE: fix warningBill Hoffman2009-06-151-0/+1
|
* BUG: fix crash when running ctest coverage for VTKBill Hoffman2009-06-151-0/+12
|
* ENH: Minor readability improvement in CTest outputBrad King2008-12-181-3/+3
| | | | | | | | When ctest --build-and-test runs the --test-command its output did not quote the arguments of the command being tested making it difficult to read. This adds the quotes. This also changes the wording of the failure case to not sound like CTest could not run the executable when in fact it ran and returned failure.
* ENH: Implement feature request from issue 7885. Allow setting environment ↵David Cole2008-11-261-1/+1
| | | | variables on a per-test basis for ctest using set_test_properties ENVIRONMENT.
* BUG: Make CTest honor user-specified configBrad King2008-09-041-2/+8
| | | | | | When the -C or --build-config option is used to specify the configuration to be tested by CTest, do not override it with the configuration in which CTest is built.
* BUG: make sure ctest sees the output of the cmake run in build and test ↵Bill Hoffman2008-06-181-0/+8
| | | | cases, it was not...
* ENH: fix build issue with config type not being specified by ctestBill Hoffman2007-09-171-1/+0
|
* ENH: for build and test default the config type to the one that ctest was ↵Bill Hoffman2007-09-111-2/+24
| | | | built with, it is good for the current ctest setup, and other projects can always specify a value on the command line
* BUG: better passing of global TIMEOUT to internal ctest invocaitonsKen Martin2007-06-061-11/+11
|
* ENH: fix passing of time limit to some ctest invocations that also use ↵Ken Martin2007-06-041-2/+2
| | | | build-options
* ENH: support for --build-config-sample feature #1022Ken Martin2007-03-191-88/+43
|
* BUG: fixes so that --build-and-test will honor timeoutsKen Martin2007-01-301-3/+39
|
* ENH: added per test timeout supportKen Martin2007-01-251-4/+9
|
* ENH: add cmake output to build and testBill Hoffman2006-08-081-0/+3
|
* BUG: cmGlobalGenerator::Build should not always use the /fast target name ↵Brad King2006-06-011-1/+1
| | | | because dependency checking is often required. It now takes an argument specifying whether to use the /fast target name, and the argument is currently only true for try-compiles.
* COMP: Remove warningAndy Cedilnik2006-03-231-2/+1
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-80/+85
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-091-23/+27
|
* STYLE: Remove debugAndy Cedilnik2006-02-281-6/+0
|
* ENH: Add support for multiple build targets and start adding simple cpack testsAndy Cedilnik2006-02-281-15/+34
|
* ENH: Since list file cache does not make much sense any more (because of ↵Andy Cedilnik2006-02-071-2/+0
| | | | proper list file parsing), and it actually adds unnecessary complications and make ctest scripting not work, take it out
* BUG: Sweeping changes to cleanup computation of target names. This shouldBrad King2006-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | fix many bugs related to target names being computed inconsistently. - Centralized computation of a target's file name to a method in cmTarget. Now that global knowledge is always available the *_CMAKE_PATH cache variables are no longer needed. - Centralized computation of link library command lines and link directory search order. - Moved computation of link directories needed to link CMake targets to be after evaluation of linking dependencies. This also removed alot of duplicate code in which each version had its own bugs. This commit is surrounded by the tags CMake-TargetNameCentralization1-pre and CMake-TargetNameCentralization1-post so make the large set of changes easy to identify.
* BUG: fix for bug 2560, Xcode does not create correct bundlesBill Hoffman2005-12-191-0/+8
|
* ENH: Several improvements with the way things are handled. Also, support ↵Andy Cedilnik2005-06-231-0/+1
| | | | multiple submited files
* ENH: Add superclass for all commands and handlers. Improve handlers to have ↵Andy Cedilnik2005-06-171-0/+5
| | | | initialization code, and start initializing ctest when start is invoked
* ENH: Move the build-and-test code to a handlerAndy Cedilnik2005-06-031-0/+451