summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.h
Commit message (Collapse)AuthorAgeFilesLines
* ctest: Optionally avoid starting tests that may exceed a given CPU loadBetsy McPhail2015-06-301-0/+3
| | | | | | | | | | | | | | 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-301-0/+1
| | | | | | | | 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_test: Add QUIET optionZack Galbreath2015-02-231-0/+3
|
* strings: Remove cmStdString referencesBen Boeckel2014-03-081-5/+5
| | | | | | | | | | | 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.
* CTest: fix regressions introduced by the ctest-fix-run-serial topicNils Gladitz2013-12-231-0/+6
| | | | | | The first regression resulted in endless looping due to unrun test dependencies. The second regression prioritized all tests with dependencies in serial test runs.
* CTest: perform cycle test earlyNils Gladitz2013-10-191-0/+1
|
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-3/+3
| | | | | | | | | | | | | | | | | 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/ \+$//'
* Added CTest command --print-labelsZach Mullen2010-08-311-0/+1
| | | | | | 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.
* More robust cost-based scheduling implZach Mullen2010-07-011-2/+3
|
* Do not exit if stoptime is passed.Zach Mullen2010-06-151-0/+1
|
* Added RESOURCE_LOCK test property.Zach Mullen2010-03-021-1/+5
|
* If tests failed on the last run, have them run first next timeZach Mullen2010-03-011-1/+2
|
* Use historical average of test times to schedule tests.Zach Mullen2010-02-261-1/+5
|
* Added logic to check for cycles in the test dependency graph before any ↵Zach Mullen2009-11-021-0/+2
| | | | tests are run. Previously a cycle resulted in a segfault from stack overflow.
* 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.
* BUG: Fixed segfault and bad reporting if a ctest executable could not be ↵Zach Mullen2009-09-101-2/+2
| | | | 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-2/+4
| | | | uses these time costs to schedule the processes the next time ctest is run in that build tree.
* ENH: Replaced the EXPENSIVE test property with a COST test property taking a ↵Zach Mullen2009-09-081-5/+5
| | | | 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-0/+2
| | | | 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-1/+3
| | | | should be started prior to tests that are not marked as such. Also fixed test dependencies, and a few uninitialized variables in cmProcess.
* Fixed ctest output where max test index is not the same width as the total ↵Zach Mullen2009-09-021-5/+6
| | | | number of tests. Also some preliminary changes for batching ctest jobs
* Fixed conversion warning on 64 bit machinesZach Mullen2009-08-311-2/+2
|
* Added ctest -N test. Fixed ctest working directory bug. MemCheck fix ↵Zach Mullen2009-08-281-1/+5
| | | | coming soon...
* Fixed ctest -N segfault issue. Further refactored ctest. Enabled failover ↵Zach Mullen2009-08-271-3/+7
| | | | for ctest
* ENH: refactored ctest. All testing is now parallel. If no -j option is ↵Zach Mullen2009-08-261-11/+21
| | | | specified, defaults to a MP level of 1 (non parallel)
* COMP: fix some more warningsBill Hoffman2008-07-071-4/+0
|
* COMP: try to fix sgi compiler problem with set and also shorten symbol ↵Bill Hoffman2008-07-041-2/+4
| | | | lengths for set class
* ENH: add initial ctest -j featureBill Hoffman2008-07-031-0/+84