summaryrefslogtreecommitdiffstats
path: root/Source/CTest
Commit message (Collapse)AuthorAgeFilesLines
* cmCTestCoverageHandle: Improve error handling.James Johnston2015-08-082-7/+28
|
* Merge topic 'ctest-add_subdirectory-crash'Brad King2015-07-281-1/+1
|\ | | | | | | | | 64821e8a ctest: fix add_subdirectory() crash
| * ctest: fix add_subdirectory() crashBen Boeckel2015-07-271-1/+1
| | | | | | | | | | | | The directory is at args[0], not args[1]. Introduced in commit v2.6.0~489 (... 5889 ... tests are not found in some cases when using add_subdirectory ..., 2008-01-18).
* | CTest: Optionally add a ChangeId attribute on XML Site tagsZack Galbreath2015-07-171-0/+6
| | | | | | | | | | | | | | Add variable CTEST_CHANGE_ID to configure the setting. This allows CTest clients to give CDash information about what change is being tested so that CDash can take actions to report the results (e.g. to a pull request page).
* | ctest_coverage: Always do coverage for CTEST_EXTRA_COVERAGE_GLOBZack Galbreath2015-07-131-1/+1
| | | | | | | | | | | | | | | | Do not ignore a coverage request if CTEST_EXTRA_COVERAGE_GLOB was specified. Prior to this change, if no lines of code were covered by any tests then CTest would neglect to generate a Coverage.xml file. This change allows us to report uncovered files for a project with no tests.
* | CTest: hide progress ticks in verbose outputDaniel Pfeifer2015-07-061-5/+5
| | | | | | | | | | | | | | | | | | | | The progress ticks and information about the length of the output are useful when the actual output is not visible. When the output is printed, the progress ticks * add no useful information, * do not look pretty, and * make the output hard to parse for tools.
* | CTest: Show the number of tests for each label in the summaryBetsy McPhail2015-07-061-4/+17
| |
* | ctest: Optionally avoid starting tests that may exceed a given CPU loadBetsy McPhail2015-06-307-7/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a TestLoad setting to CTest that can be set via a new --test-load command-line option, CTEST_TEST_LOAD variable, or TEST_LOAD option to the ctest_test command. Teach cmCTestMultiProcessHandler to measure the CPU load and avoid starting tests that may take more than the spare load currently available. The expression <current_load> + <test_processors> <= <max-load> must be true to start a new test. Co-Author: Zack Galbreath <zack.galbreath@kitware.com>
* | cmCTestMultiProcessHandler: Refactor RUN_SERIAL implementationZack Galbreath2015-06-302-4/+32
| | | | | | | | | | | | | | | | The original implementation of the RUN_SERIAL test property worked by having such a test consume all available processors. Instead use an explicit flag to indicate that a serial test is running. This avoids artificially inflating the number of processors a test is expected to consume.
* | ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610)Brad King2015-06-111-2/+2
| | | | | | | | | | | | | | Make RETURN_VALUE report -1 if the update command failed as the documentation claims. Also avoid reporting a ctest script-level failure if the update command fails because we still correctly administered the update step.
* | Merge topic 'ctest-script-mode-no-legacy-cygwin'Brad King2015-06-091-0/+4
|\ \ | |/ | | | | | | 12436efc ctest: Disable CMake Cygwin legacy warning in dashboard client script
| * ctest: Disable CMake Cygwin legacy warning in dashboard client scriptBrad King2015-06-081-0/+4
| | | | | | | | | | | | | | | | In ctest -S mode we load the CTestScriptMode module to give the configuration scripts access to the host system information. CYGWIN.cmake warns unless we explicitly tell it not to warn since there is no chance for a cmake_minimum_required(VERSION) to be called.
* | CTest: Capture test stdout/stderr through one pipe (#15600)Brad King2015-06-033-22/+7
|/ | | | | | | Use the KWSys Process "MergeOutput" option to give each test child process the same pipe for both stdout and stderr. This allows natural merging of stdout and stderr together instead of merging on arbitrary buffered read boundaries as before.
* Merge topic 'ctest-xml-refactor'Brad King2015-05-2821-640/+581
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | de2ef305 cmCTest: Drop unused method overloads b04500a7 cmCTest{Test,MemCheck}Handler: Port to cmXMLWriter 8fbc509a cmCTestCoverageHandler: Port to cmXMLWriter 82455a9d cmCTestBuildHandler: Port to cmXMLWriter 1dbd86fd cmCTestLaunch: Port to cmXMLWriter a53bd63e cmCTest: Port GenerateNotesFile to cmXMLWriter 9c0bb7d8 cmCTestConfigureHandler: Port to cmXMLWriter 6cf5cc71 cmCTestUploadHandler: Port to cmXMLWriter ed42c203 cmCTestUpdateHandler: Port to cmXMLWriter 18825baf cmCTest: Port to cmXMLWriter f6413400 Add cmXMLWriter class to consolidate XML generation
| * cmCTest{Test,MemCheck}Handler: Port to cmXMLWriterDaniel Pfeifer2015-05-264-224/+202
| |
| * cmCTestCoverageHandler: Port to cmXMLWriterDaniel Pfeifer2015-05-262-158/+153
| |
| * cmCTestBuildHandler: Port to cmXMLWriterDaniel Pfeifer2015-05-262-63/+46
| |
| * cmCTestLaunch: Port to cmXMLWriterDaniel Pfeifer2015-05-262-74/+61
| |
| * cmCTestConfigureHandler: Port to cmXMLWriterDaniel Pfeifer2015-05-261-22/+16
| |
| * cmCTestUploadHandler: Port to cmXMLWriterDaniel Pfeifer2015-05-261-21/+25
| |
| * cmCTestUpdateHandler: Port to cmXMLWriterDaniel Pfeifer2015-05-269-78/+78
| |
* | Merge topic 'ctest-xml-minor-cleanup'Brad King2015-05-284-15/+6
|\ \ | |/ | | | | | | | | b26e5b55 CTest: Generate NamedMeasurement elements directly into xml file 965cf8e6 CTest: Drop stray content from Configure.xml
| * CTest: Generate NamedMeasurement elements directly into xml fileDaniel Pfeifer2015-05-263-10/+6
| | | | | | | | Re-order the logic to avoid use of a temporary std::ostringstream.
| * CTest: Drop stray content from Configure.xmlDaniel Pfeifer2015-05-261-5/+0
| | | | | | | | | | Remove content left accidentally since commit v2.4.0~2876 (some bug fixes for my recent checkins and some more cleanup, 2004-09-07).
* | Merge topic 'ctest-update-gmake-error-match'Brad King2015-05-281-2/+2
|\ \ | | | | | | | | | | | | 44a4e545 ctest_build: Fix regression in GNU make error message matching
| * | ctest_build: Fix regression in GNU make error message matchingZack Galbreath2015-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | | The regex update in commit v3.1.2~4^2 (ctest_build: Update GNU make error message matching, 2015-01-28) broke matching of the messages it updated. Remove the escape character before the square brackets added by that commit.
* | | cmGlobalGenerator: Require a cmake instance in ctor.Stephen Kelly2015-05-273-6/+3
| |/ |/| | | | | It is required anyway, so this makes it explicit.
* | Merge topic 'refactor-cmLocalGenerator'Brad King2015-05-194-0/+8
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | fa9eb814 cmLocalGenerator: Remove redundant path access. 1933f3d1 cmLocalGenerator: Remove redundant path conversions. 9e4b6cc2 cmState: Store computed relative paths to to current directories. 991f5e49 cmState::Snapshot: Store components for current directories. 57bdc1a2 cmState: Compute and store directory components.
| * | cmState: Compute and store directory components.Stephen Kelly2015-05-164-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is no need to duplicate these in all cmLocalGenerators. Rename the symbols according to current conventions. Add explicit calls to Set{Source,Binary}Directory with empty strings in order to trigger the population of the components containers with the current working directory in cmLocalGenerator. Having directories set to empty is a special case in CMake, which is relied on for the `if(CMAKE_BINARY_DIR)` condition at the end of CMakeDetermineSystem.cmake.
* | | cmGlobalGenerator: Add NVI wrapper to create local generator.Stephen Kelly2015-05-163-3/+3
|/ /
* | CTest: Stop telling 'make' to ignore errors with -iBrad King2015-05-121-1/+2
| | | | | | | | Add policy CMP0061 to maintain compatibility for existing projects.
* | Merge topic 'clean-up-cmMakefile'Brad King2015-04-211-3/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8dc3a67c cmMakefile: Out-of-line the directory methods. 0f3c8cfa cmMakefile: Use method abstraction to access directories. b288a997 cmMakefile: Rename SetStart* directory API to SetCurrent*. 932d53bc cmMakefile: Remove redundant method duplication. 32b8f03a cmMakefile: Port users of GetStart* methods to new names. 54d6a918 cmMakefile: Rename GetCurrent{Output,Binary}Directory. 55d80d0a cmMakefile: Rename GetCurrent{,Source}Directory. b23cf06f cmake: Remove redundant start directories. fcf246ac cmMakefile: Populate Home directories on initialize. 8878bea7 cmake: Initialize Home directories on cmake for find-package mode. 044dc815 Use the Home directories from the cmake class where intended. d67e8f24 cmake: Fix directory used to find the cache 1ea085d1 cmMakefile: Initialize dir definitions early. f034bb2f Remove redundant calls to MakeStartDirectoriesCurrent. 3a68c323 cmMakefile: Fix wrong parameter names.
| * | cmMakefile: Rename SetStart* directory API to SetCurrent*.Stephen Kelly2015-04-201-2/+2
| | |
| * | cmMakefile: Rename GetCurrent{,Source}Directory.Stephen Kelly2015-04-201-1/+1
| | | | | | | | | | | | Match the names used in cmake code.
* | | cmSystemTools: Teach RunSingleCommand to separate stdout and stderrBrad King2015-04-202-5/+9
|/ / | | | | | | | | | | | | Extend the RunSingleCommand signature to capture stdout and stderr separately. Allow both to be captured to the same std::string to preserve existing behavior. Update all call sites to do this so that this refactoring does not introduce functional changes.
* | cmMakefile: Remove always-null first parameter to ReadListFile.Stephen Kelly2015-04-183-4/+4
| |
* | cmMakefile: Add wrapper for reading listfiles which have an origin.Stephen Kelly2015-04-181-6/+2
| | | | | | | | | | | | Such files are delegates from other files, and so they set the CMAKE_PARENT_LIST_FILE to the originator. They also may set a policy scope.
* | Port Global property interaction to cmState.Stephen Kelly2015-04-151-1/+2
| |
* | cmake: Remove the happy global property scope pattern.Stephen Kelly2015-04-151-1/+1
| | | | | | | | | | | | | | | | | | Global properties are already global in scope, so remove the overload for specifying it and port users of the API. The call from cmMakefile::GetProperty can be simplified because the scope is only used during chaining, and there is no further chaining after processing global properties.
* | Port cmCommand consumers to cmState.Stephen Kelly2015-04-152-6/+6
| |
* | CTest: Fix locale used for VCS updatesNils Gladitz2015-04-131-41/+2
| | | | | | | | | | | | | | | | 6a661f06030b85b4484733375bbb0aa23eca7446 fixed the locale used for message output but at the same time broke the locale used for filename encodings. This commit preserves LC_CTYPE in the presence of LC_ALL.
* | Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-071-2/+1
| | | | | | | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
* | Revert topic 'refactor-cache-api'Brad King2015-04-071-1/+2
| | | | | | | | | | | | This topic was never tested without some follow-up commits. The GetCacheEntryValue API returns a pointer to memory freed on return. It will have to be revised along with the rest of the original topic.
* | Add API for cache loading, deleting and saving to the cmake class.Stephen Kelly2015-04-061-2/+1
| | | | | | | | | | Migrate existing users of the CacheManager API to use the new API. The CacheManager will be going away soon.
* | Merge topic 'ctest-repeat-until-fail'Brad King2015-03-233-8/+87
|\ \ | | | | | | | | | | | | | | | 6bce0276 Help: Add notes for topic 'ctest-repeat-until-fail' fde70a1b ctest: Add a new --repeat-until-fail option
| * | ctest: Add a new --repeat-until-fail optionBill Hoffman2015-03-233-8/+87
| | | | | | | | | | | | | | | This option tells ctest to run each test N times until the test fails or the N times have run. This is useful for finding random failing tests.
* | | CTest: Output test-specific env vars in verbose mode (#15446)Zach Mullen2015-03-171-0/+15
| | | | | | | | | | | | | | | | | | Any environment vars that were configured for a test via the ENVIRONMENT property will now be output when the test is run with verbose logging enabled.
* | | Merge topic 'cmAlgorithms-cleanup'Brad King2015-03-121-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 95dd238f cmRemoveDuplicates: Fix iterator -> const_iterator. 4448f175 cmInstalledFile: Move Property implementation out of line. 7916d7ba Include cmAlgorithms where it is used.
| * | | Include cmAlgorithms where it is used.Stephen Kelly2015-03-101-0/+1
| |/ /
* | | CTest: Fix Jacoco CoverageJoseph Snyder2015-03-061-1/+4
|/ / | | | | | | | | | | | | | | | | Rename the example jacoco.xml file to be jacoco.xml.in to stop CMake from apptempting to calculate Jacoco Coverage when running over itself. Enclose a push of -1 to the coverage vector to only happen if there is a fin to calculate for. This prevents a crash if the target file doesn't exist.