summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
Commit message (Collapse)AuthorAgeFilesLines
* CTest: Allow / to be in the build name, and be consistent with the build nameBill Hoffman2014-08-181-5/+9
| | | | | | | | Prior to this change / was not allowed in the build name. This was tested with a CDash server and worked. In addition the safe build name was not used everywhere. This caused mismatched build names to be in the xml files going to CDash which caused different rows to be created for the same build.
* Change output to be a reference and not a pointer.Bill Hoffman2014-08-041-27/+21
| | | | | This avoids having to check the pointer value at each use which was not being done.
* Remove default labels from fully covered switch statements.Stephen Kelly2014-04-031-2/+0
| | | | | Allow compilers to warn when new enum values are added, making switches no-longer fully-covered.
* Remove c_str calls when using stream APIs.Stephen Kelly2014-03-111-24/+24
| | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
* Remove some c_str() calls.Stephen Kelly2014-03-111-6/+6
| | | | | | 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-11/+11
| | | | | | | | | | | 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.
* stringapi: Use strings for test namesBen Boeckel2014-03-081-3/+2
|
* stringapi: Use strings for variable namesBen Boeckel2014-03-081-12/+5
| | | | Variable names are always generated by CMake and should never be NULL.
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-071-7/+8
| | | | | Also use SystemTools::Fopen() instead of fopen(). This is to eventually support utf-8 filenames.
* Use new cmHasLiteralPrefix functionStephen Kelly2013-11-211-2/+2
|
* Refactor internal resource location APIs and initializationBrad King2013-11-121-25/+2
| | | | | | | | | | | | | | | | | | | | 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.
* Haiku: Include files cleanup in cmCTestAdrien Destugues2013-10-081-5/+1
| | | | | | * No need to use a different path from the BeOS one, which still works. Applied-by: Rolf Eike Beer <eike@sf-mail.de>
* ctest: Add --rerun-failed optionZack Galbreath2013-10-081-0/+6
| | | | | | | | Add a new command line argument to ctest. This allows users to rerun tests that failed during the previous call to ctest. This is accomplished by analyzing the most recently modified file named "^LastTestsFailed*" in the Testing/Temporary subdirectory of the project's binary directory.
* Remove some uses of obsolete 'register' storage specifierSean McBride2013-06-281-1/+1
| | | | Remove the keyword from all Source/* files outside of KWSys.
* CTest: Read CTEST_PARALLEL_LEVEL from environmentStephen Kelly2013-05-211-0/+11
| | | | | If no explicit "-j <n>" option is given on the command line then read the parallel level from an environment variable.
* Fix spelling and typos (affecting binary data / module messages)Andreas Mohr2013-05-071-1/+1
|
* Haiku no longer defines __BEOS__Rolf Eike Beer2013-01-071-1/+1
|
* Merge topic 'ctest-SUBMIT_INDEX-cdash'Brad King2012-11-061-0/+3
|\ | | | | | | | | 1cfaa2f CTest: Allow SUBMIT_INDEX with CDash
| * CTest: Allow SUBMIT_INDEX with CDashBrad King2012-11-011-0/+3
| | | | | | | | | | If CTEST_DROP_SITE_CDASH is true then SUBMIT_INDEX is supported. The Dart version does not matter because the server is not Dart.
* | Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-39/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/ \+$//'
* | CTest: Allow -Dvar=value with no space between the D and the varDavid Cole2012-06-241-0/+11
| | | | | | | | | | | | Similar to CMake's handling of -D command line arguments, for consistency and to avoid silent ignoring of "unknown command line" args.
* | CTest: Extend -D command line arg handling for variable definitionsDavid Cole2012-06-241-2/+21
| | | | | | | | | | | | 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: Rename local variable for clarityDavid Cole2012-06-241-6/+5
| |
* | CTest: Refactor error output into ErrorMessageUnknownDashDValueDavid Cole2012-06-241-24/+23
|/ | | | | No behavior change. Prep work for defining script variables by extending -D command line handling to recognize var:type=value syntax.
* CTest: Simplify environment save/restoreBrad King2012-04-241-15/+8
| | | | | | | | 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.
* CTest: Do not get CDash version without drop site (#12618)Valat Sébastien2011-12-121-2/+6
| | | | Avoid sleep for 3 seconds in ctest if CDashDropSite is empty.
* CTest: Disallow problem chars in build and site names (#11792)David Cole2011-11-181-6/+51
| | | | | Also, use "(empty)" rather than actually sending an empty string if build or site name is not set properly.
* Merge topic 'fix-12539-ctestconfig-from-build-dir'David Cole2011-11-011-6/+26
|\ | | | | | | | | 76ecdd8 CTest: Look for CTestConfig.cmake in build dir first, then source dir
| * CTest: Look for CTestConfig.cmake in build dir first, then source dirJean-Christophe Fillion-Robin2011-10-271-6/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide the ability to configure CTest with settings different from the ones available in the source tree by checking first if CTestConfig.cmake exists in the build tree. The motivation is to allow build system checking out external project to test and/or package them and submit the associated results to a different dashboard than the one specified (or not) in the source of the external project. For example, the build system of Slicer can checkout, build, test and package what I will call "extensions". These extensions can be developed by third parties who can test and submit to their own dashboard / project. When checked out by Slicer build system, the default dashboard can now be overwritten by adding a custom CTestConfig.cmake to the build directory. And if not overwritten, it would avoid to create CTestConfig.cmake within the source checkout of the extension.
* | Merge topic 'fix-12383-clear-ctest-vecs'David Cole2011-11-011-0/+2
|\ \ | | | | | | | | | | | | 499c104 CTest: Clear custom vectors before populating (#12383)
| * | CTest: Clear custom vectors before populating (#12383)David Cole2011-10-261-0/+2
| |/ | | | | | | | | | | | | Important when calling ctest commands in a loop from a script. Each time Populate gets called, it uses the current definition of the variable. Without the clear, it was accumulating additional identical values each time through the loop.
* | Source/cmCTest.cxx: Add missing newline (#12538)Bernhard Walle2011-10-251-1/+1
|/ | | | | | | | | | | | | | | | In the log entry, the newline is missing. The output without the newline character is a bit strange, like SetCTestConfigurationFromCMakeVariable:MemoryCheckCommand:CTEST_MEMORYCHECK_COMMANDSetCTestConfiguration:MemoryCheckCommand:/usr/bin/valgrind Instead of SetCTestConfigurationFromCMakeVariable:MemoryCheckCommand:CTEST_MEMORYCHECK_COMMAND SetCTestConfiguration:MemoryCheckCommand:/usr/bin/valgrind This patch changes this to add a newline. Signed-off-by: Bernhard Walle <walle@corscience.de>
* CTest: Fix memory leaks on errorThomas Jarosch2011-09-021-0/+2
| | | | | | Credit goes to "cppcheck". Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
* Fix type conversion warningZach Mullen2011-05-271-1/+1
|
* We will actually compress memcheck output if the server supports it.Zach Mullen2011-05-261-3/+77
| | | | | This change won't be functional until the next release of CDash due to the version comparison.
* Don't tar/gz ctest_upload() filesZach Mullen2011-03-151-3/+11
|
* Implement ctest_upload commandZach Mullen2011-03-151-1/+47
|
* We shouldn't ask CDash for its version info until/unless we actually need it.Zach Mullen2010-09-081-4/+0
|
* Added CTest command --print-labelsZach Mullen2010-08-311-0/+6
| | | | | | This command allows a user to quickly see the list of all available test labels. The labels are also printed in verbose show only mode, alongside their corresponding tests.
* Fix hard-coded CDash URI in version queryZach Mullen2010-08-181-3/+7
|
* Merge topic 'resolve/doc-spelling/CPackRPM'Brad King2010-07-201-1/+1
|\ | | | | | | | | | | 7739d78 Merge CPackRPM changes into doc-spelling 9203e91 Fix spelling errors reported by Lintian.
| * Fix spelling errors reported by Lintian.Kai Wasserbäch2010-07-131-1/+1
| | | | | | | | | | During a Lintian run on the binary packages of CMake in Debian I was notified of many spelling mistakes.
* | Fix or cast more integer conversions in cmakeBrad King2010-06-291-2/+2
|/ | | | | These were revealed by GCC's -Wconversion option. Fix types where it is easy to do so. Cast in cases we know the integer will not be truncated.
* Better detection of stop_time being passed.Zach Mullen2010-03-191-1/+2
|
* Fix StopTime to also account for localtime being a day ahead of gmtimeZach Mullen2010-03-181-4/+5
|
* Fix for StopTime for cases when gmtime is a day ahead of localtimeZach Mullen2010-03-181-1/+13
|
* Add the --stop-time argumentZach Mullen2010-03-171-0/+42
| | | | Unit test and script hook for STOP_TIME
* Configurable path to CTest cost data fileZach Mullen2010-03-011-0/+11
| | | | Allow the user to set the CMake variable CTEST_COST_DATA_FILE, which will be used to store the cost data from test runs. If not set, defaults to the original location in the build tree Testing/Temporary dir.
* Moved call to cache CDash version information to cmCTest::initialize. Also ↵Zach Mullen2010-02-081-4/+6
| | | | added a 3 second timeout when requesting the version from the server. Added an option to the CTestConfiguration that will be used to determine whether to query the version information at all. (Behavior for this setting is not yet defined.) Updated CMake's local CDash version setting to 1.6.
* Fix HPUX issue with test, by doing the query to cdash for its version before ↵Bill Hoffman2010-02-051-1/+3
| | | | any test is started.