summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Use stable_sort to preserve test order (#11877)David Cole2011-02-181-1/+1
| | | | | | Using sort results in a possibly-modified sorting when all elements are "tied" - use stable_sort instead to preserve the original ordering of tied elements.
* Support explicitly set test costs in non-parallel testing.Zach Mullen2011-01-031-11/+13
|
* CTest: Fix line-too-long style in DEPEND cycle errorBrad King2010-12-161-4/+4
|
* CTest: Fix test DEPEND cycle detectionBrad King2010-12-151-16/+21
| | | | | | | A cycle exists when the DFS returns to the root node, not just when multiple paths lead to the same node. Inspired-By: Alexander Esilevich <aesilevich@pathscale.com>
* Remove debugging message from parallel ctestZach Mullen2010-12-011-6/+0
|
* Added CTest command --print-labelsZach Mullen2010-08-311-0/+42
| | | | | | 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.
* Merge branch 'improve-test-cost-sorting'Brad King2010-07-061-57/+57
|\
| * More robust cost-based scheduling implZach Mullen2010-07-011-57/+57
| |
* | Fix cycle detection for test dependenciesZach Mullen2010-06-301-17/+12
|/
* Eliminate -Wconversion warnings.David Cole2010-06-271-2/+3
| | | | | | Change types of local variables, or casting, or re-arrange expressions to get rid of "conversion may alter value" warnings as seen on recent dashboard submissions from londinium.kitware.
* Parallel CTest hangs if serial test has dependsZach Mullen2010-06-231-1/+1
|
* Do not exit if stoptime is passed.Zach Mullen2010-06-151-0/+15
|
* Cost-based test scheduling should only be done in parallel mode.Zach Mullen2010-05-191-6/+15
|
* Add unit test for RESOURCE_LOCK test propertyZach Mullen2010-03-031-3/+6
|
* Added RESOURCE_LOCK test property.Zach Mullen2010-03-021-1/+35
|
* Close ifstream.Zach Mullen2010-03-011-1/+5
|
* If tests failed on the last run, have them run first next timeZach Mullen2010-03-011-2/+31
|
* Configurable path to CTest cost data fileZach Mullen2010-03-011-5/+3
| | | | 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.
* Use historical average of test times to schedule tests.Zach Mullen2010-02-261-21/+89
|
* Re-enabled Scheduler test and fixed the underlying problem.Zach Mullen2010-02-031-1/+1
|
* Fix memory leak that occurred when a test executable could not be started. ↵Zach Mullen2009-12-101-0/+1
| | | | (See BadExe test)
* Handle multiple carriage return issue on windows VS9. Also make sure that ↵Zach Mullen2009-11-161-2/+5
| | | | running ctest in showonly mode does not kill our cost store, since many ctest tests do this and corrupt our cost data.
* Fixed a bug where it was possible for a test to be started twice if a ↵Zach Mullen2009-11-091-0/+5
| | | | lower-indexed test depended on it.
* Fix style warning in cmsystemtools, cosmetic change to ctest codeZach Mullen2009-11-051-5/+2
|
* Fixed infinite loop condition when a test's dependent test executable could ↵Zach Mullen2009-11-051-0/+2
| | | | not be found.
* Added logic to check for cycles in the test dependency graph before any ↵Zach Mullen2009-11-021-1/+50
| | | | tests are run. Previously a cycle resulted in a segfault from stack overflow.
* Fix working dir issue for ctest show only mode (-N)Zach Mullen2009-10-271-0/+5
|
* Ctest was broken for subdirs. Restored working directory state for tests so ↵Zach Mullen2009-10-201-0/+5
| | | | that their executables could be found.
* Match width of ctest "Start xx: " line to line up with the end test lineZach Mullen2009-10-051-1/+1
|
* Fix warnings in CMake source code.David Cole2009-10-021-2/+3
|
* 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.
* Fixed uninitialized memory issue in ctest show-only modeZach Mullen2009-09-251-0/+1
|
* Reformat ctest -N output. Removed the "Start processing tests" message as well.Zach Mullen2009-09-241-6/+9
|
* Tests which are not run should be added to the failed test list.Zach Mullen2009-09-231-0/+1
|
* Rewrite CTest child output handlingBrad King2009-09-111-3/+1
| | | | | | | | | | | | | | This commit fixes cmCTestRunTest and cmProcess to more efficiently handle child output. We now use the buffer for each child output pipe to hold at most a partial line plus one new block of data at a time. All complete lines are scanned in-place, and then only the partial line at the end of the buffer is moved back to the beginning before appending new data. We also simplify the cmProcess interface by making GetNextOutputLine the only method that needs to be called while the process is running. This simplifies cmCTestRunTest so that CheckOutput can be called until it returns false when the process is done.
* Initialize cmCTestRunTest instances robustlyBrad King2009-09-111-6/+2
| | | | | | All instances of this class need a cmCTestTestHandler, so we now require one to construct it. The instance also provides the cmCTest instance too.
* BUG: Fixed segfault and bad reporting if a ctest executable could not be ↵Zach Mullen2009-09-101-17/+5
| | | | found. Also added some batch testing code that is not yet complete.
* ENH: ctest now writes time cost data to a file after a test set is run, and ↵Zach Mullen2009-09-081-4/+56
| | | | uses these time costs to schedule the processes the next time ctest is run in that build tree.
* BUG: Fixed extraneous newlines from ctest process outputZach Mullen2009-09-081-1/+1
|
* ENH: Replaced the EXPENSIVE test property with a COST test property taking a ↵Zach Mullen2009-09-081-49/+60
| | | | floating point value. Tests are now started in descending order of their cost, which defaults to 0 if none is specified.
* ENH: Added ctest test options PROCESSORS and RUN_SERIAL. These allow ↵Zach Mullen2009-09-071-6/+27
| | | | specification of resource allocation for given tests running with the ctest -j N option. RUN_SERIAL ensures that a given test does not run in parallel with any other test. Also forced appending of "..." to the longest test name in ctest.
* Added the test property EXPENSIVE, which denotes that the given test(s) ↵Zach Mullen2009-09-041-11/+26
| | | | should be started prior to tests that are not marked as such. Also fixed test dependencies, and a few uninitialized variables in cmProcess.
* Allowed tests to pull more than one line of output in their quantum. Fixed ↵Zach Mullen2009-09-031-2/+3
| | | | uninitialized variables in the case that the test process could not start.
* Fixed warningsZach Mullen2009-09-031-1/+1
|
* ENH: Added PARALLEL_LEVEL option for ctest_memcheck(). Added PROCESSORS ↵Zach Mullen2009-09-031-3/+6
| | | | option to set_tests_properties (implementation to come).
* STYLE: line lengthZach Mullen2009-09-021-2/+5
|
* Fixed ctest output where max test index is not the same width as the total ↵Zach Mullen2009-09-021-0/+28
| | | | number of tests. Also some preliminary changes for batching ctest jobs
* MemCheck should now work again in ctestZach Mullen2009-08-281-2/+2
|
* Added ctest -N test. Fixed ctest working directory bug. MemCheck fix ↵Zach Mullen2009-08-281-55/+40
| | | | coming soon...
* Fixed ctest -N segfault issue. Further refactored ctest. Enabled failover ↵Zach Mullen2009-08-271-2/+65
| | | | for ctest