summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* 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
* ENH: refactored ctest. All testing is now parallel. If no -j option is ↵Zach Mullen2009-08-261-116/+42
| | | | specified, defaults to a MP level of 1 (non parallel)
* Output total time when using -j NBill Hoffman2009-08-121-1/+1
|
* ENH: add a CDash measured value showing the reason for passed and failed ↵Bill Hoffman2009-02-241-0/+4
| | | | tests based on regular expressions
* BUG: partial fix for 8056 -W now works with -jBill Hoffman2009-02-101-0/+7
|
* COMP: try to fix sgi compiler problem with set and also shorten symbol ↵Bill Hoffman2008-07-041-10/+10
| | | | lengths for set class
* ENH: one more fix for the old hp c++ compilerBill Hoffman2008-07-031-1/+1
|
* ENH: add initial ctest -j featureBill Hoffman2008-07-031-0/+323