summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestScriptHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* CTest: Implement message(STATUS) output for 'ctest -S' scriptsBrad King2014-07-021-0/+11
| | | | | | Send status messages to the CTest HANDLER_OUTPUT log since they are part of the script handler output. This also ensures they appear inline with other test command handler output.
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-10/+10
| | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* 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.
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-2/+2
| | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* Refactor internal resource location APIs and initializationBrad King2013-11-121-4/+4
| | | | | | | | | | | | | | | | | | | | 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: more aggressive implementation of ctest_empty_binary_directory()Nils Gladitz2013-11-021-3/+60
| | | | | | | | | Make sure that CMakeCache.txt is the last file being removed since the binary directory may be left in a state that is no longer removable otherwise. Also retry removal a couple of times which makes this more robust on windows where file locks may temporarily prevent removal.
* Drop "full" documentation output typesBrad King2013-10-151-6/+0
| | | | | | | | | | | | | | | | We will no longer support full documentation generation from executables and will instead generate documentation with other tools. Disable (with a warning left behind) the command-line options: --copyright --help-compatcommands --help-full --help-html --help-man Drop supporting code. Drop manual sections generation from executables. Remove internal documentation construction APIs. Drop unused sections See Also, Author, Copyright, Compat Commands, Custom Modules.
* CTest: Extend -D command line arg handling for variable definitionsDavid Cole2012-06-241-0/+9
| | | | | | If the argument following -D is not a valid dashboard type string, then try to parse it as a "var:type=value" string just like cmake already does.
* CTest: Simplify environment save/restoreBrad King2012-04-241-5/+1
| | | | | | | | Replace use of AppendEnv/RestoreEnv pairs with instances of SaveRestoreEnvironment. Simplify the signature of AppendEnv and use it in place of similar loops elsewhere. Move the RestoreEnv implementation inside the SaveRestoreEnvironment destructor which is the only place left that calls it.
* Implement ctest_upload commandZach Mullen2011-03-151-0/+2
|
* Remove trailing whitespaceBrad King2011-03-111-20/+20
|
* Preserve environment variables across calls to ↵David Cole2009-12-231-0/+4
| | | | cmCTestScriptHandler::RunConfigurationScript. This will help prevent problems like we are currently experiencing (regarding CMake continuous dashboards only running once each day because the HOME environment variable is modified indirectly by a command in a called script, but affects the environment in the calling script).
* 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.
* Fix memory and process leak in ctest_run_script.Bill Hoffman2009-09-041-1/+1
|
* Change run_ctest_script in ctest to not stop processing when there is an ↵Bill Hoffman2009-09-041-2/+10
| | | | error in the script being run. Also, add a RETURN_VALUE option so that you can find out if the script failed
* Set current directory variables in CTest scriptsBrad King2009-07-311-0/+6
| | | | | | | | | | | | | | The commit "Fix get_filename_component ABSOLUTE mode" broke the code get_filename_component(cwd . ABSOLUTE) because CTest scripts did not make cmMakefile::GetCurrentDirectory() available. This commit fixes the problem by setting the proper information on CTest script instances of cmMakefile. This also makes CMAKE_CURRENT_SOURCE_DIR and CMAKE_CURRENT_BINARY_DIR available to CTest scripts. They are set to the working directory at script startup.
* BUG: Do not double-initialize local generatorsBrad King2009-07-281-1/+0
| | | | | | | | | All global generator CreateLocalGenerator methods automatically initialize the local generator instances with SetGlobalGenerator. In several places we were calling SetGlobalGenerator again after receiving the return value from CreateLocalGenerator. The double-initializations leaked the resources allocated by the first call to SetGlobalGenerator. This fix removes the unnecessary calls.
* STYLE: don't load CMakeDetermineSystem and CMakeSystemSpecific directly fromAlexander Neundorf2009-07-121-13/+5
| | | | | | | | cmCTestScriptHandler, but have it load the new script CTestScriptMode.cmake -> that makes it more flexible, also add a simple test that the system name has been determined correctly Alex
* STYLE: move the code for writing the initial cache into its own separateAlexander Neundorf2009-07-111-12/+26
| | | | | | function, makes the long ProcessHandler() a little bit shorter Alex
* STYLE: rename InitCache to InitialCache, since it contains the contents forAlexander Neundorf2009-07-111-4/+4
| | | | | | | the initial cache and is not e.g. a flag which shows whether the cache should be initialized Alex
* ENH: add reminder commentBill Hoffman2009-06-251-0/+1
|
* BUG: make sure error condition is reset before loading scriptsBill Hoffman2009-03-041-5/+10
|
* BUG: fix for bug #8224 fix crashBill Hoffman2008-12-191-2/+36
|
* ENH: add more debug stuff to CTestCTest2 so I can figure out redwallBill Hoffman2008-11-231-0/+5
|
* ENH: load CMakeDetermineSystem and CMakeSystemSpecificInformation whenAlexander Neundorf2008-11-071-0/+20
| | | | | | | | | | | executing a ctest script so the search paths are fully set up and variables like CMAKE_SYSTEM are available. This is useful e.g. for new-style ctest scripting. (these files are also loaded on startup by cpack, so now they behave similar). Hmmm, maybe they should be also loaded by cmake -P ? Alex
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-2/+4
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: Centralized and globalized computation of CMake program locations. ↵Brad King2007-12-131-1/+1
| | | | This eliminates startup paths that failed to produce this information.
* ENH: deb generator can now generate deb packagesAlexander Neundorf2007-07-271-19/+1
| | | | | | | | | | -remove the unscriptable commands also from the cpack cmake -use CPACK_PACKAGE_CONTACT in CMakeCPack.cmake, it's used in the nsis and the deb generator -make set_properties() scriptable -use a non-const char array for adding the python modules Alex
* STYLE: fix line lengthsAlexander Neundorf2007-07-201-1/+2
| | | | Alex
* ENH: remove non/scriptable cmake commands from the script handler in ctest,Alexander Neundorf2007-06-121-0/+21
| | | | | | | | | as discussed with David. This also gives a better ctest man page with just the commands you should actually use in ctest scripts. Until now these commands were more or less executed, but e.g. add_executable() didn't create an executable, project() failed with an error. Now you get an error instantly if using one of these commands. Alex
* STYLE: create command documentation for ctestAlexander Neundorf2007-06-081-31/+42
| | | | | | | I think some of the cmake commands should be removed from ctest if possible, like add_executable etc. Alex
* ENH: added total time limit for a CTest run bug 1207Ken Martin2006-10-191-0/+21
|
* BUG: Report and error when ctest -S script fails... Fixes: Bug #3540Andy Cedilnik2006-10-121-1/+2
|
* ENH: fix for no newline on some makes fix for ctest and some symlinksAndy Cedilnik2006-08-141-0/+5
|
* ENH: Be more verboseAndy Cedilnik2006-07-071-0/+1
|
* STYLE: fix line lengthKen Martin2006-05-101-3/+6
|
* ENH: Allow CTEST_UPDATE_COMMAND and fix the comments. This should allow SVN ↵Andy Cedilnik2006-04-301-7/+12
| | | | update too, maybe
* ENH: added support for -SP scripts in new processesKen Martin2006-04-041-13/+88
|
* ENH: Add command to read ctest custom filesAndy Cedilnik2006-03-281-0/+2
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-194/+212
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-091-67/+82
|
* 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/+43
| | | | initialization code, and start initializing ctest when start is invoked
* ENH: Add commands for memory checking and coverageAndy Cedilnik2005-06-141-2/+6
|
* COMP: Remove ERROR reserved word or something and replace with ERROR_MESSAGEAndy Cedilnik2005-05-311-4/+4
|
* ENH: Add support for writing output file. While doing that, redesign the way ↵Andy Cedilnik2005-05-311-32/+17
| | | | ctest does output. There may still be problems with commands failing, but that should be fixed by applying the similar concept to whole CMake
* ENH: Use generated file stream for filesAndy Cedilnik2005-05-271-3/+3
|
* ENH: Add variable that holds cmake executableAndy Cedilnik2005-05-051-0/+2
|
* ENH: Promote submit into a full handler, add test and submit command and do ↵Andy Cedilnik2005-05-031-0/+4
| | | | some cleanups
* ENH: Make ctest build command workAndy Cedilnik2005-05-021-0/+1
|