David Cole
415900ba77
Eliminate -Wconversion warnings.
...
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.
2010-06-27 11:22:05 -04:00
Brad King
73144a8f1c
Merge branch 'fix_ctest_failure_code'
2010-06-24 10:35:10 -04:00
Bill Hoffman
8f8c1edca2
Fix for bug #10859 , ctest exit exception incorrectly reported.
...
CTest was using the return value from the program instead of the
exit exception value for the process.
2010-06-22 09:55:09 -04:00
Zach Mullen
960dc2b10f
Do not exit if stoptime is passed.
2010-06-15 10:29:35 -04:00
David Cole
003ffe5908
Fix intermingling of test environments when tests run in parallel.
...
The SaveRestoreEnvironment helper object makes sure that the
original environment is restored immediately after the
StartProcess call returns rather than waiting for the end
of the test. When tests are executed in parallel, there is
no guarantee about the ordering of EndTest calls relative
to StartTest calls. In fact, it would be odd for them to
be nested nicely. Therefore, to avoid the corruption of
the calling ctest's environment, the original environment
must be restored before ForkProcess returns.
2010-03-30 14:08:31 -04:00
Zach Mullen
4b32ee01f2
Better detection of stop_time being passed.
2010-03-19 09:09:02 -04:00
Zach Mullen
9eea95c90f
Fix StopTime to also account for localtime being a day ahead of gmtime
2010-03-18 14:48:42 -04:00
Zach Mullen
9676c52c3e
Fix for StopTime for cases when gmtime is a day ahead of localtime
2010-03-18 13:53:40 -04:00
Zach Mullen
a2fe175647
More debugging of StopTime test
2010-03-18 10:29:02 -04:00
Zach Mullen
0d48f81d32
Test using std::min
2010-03-17 12:12:04 -04:00
Zach Mullen
4c59570bfb
Replace min() call with its literal definition
2010-03-17 12:07:10 -04:00
Zach Mullen
0ba9d04117
Add the --stop-time argument
...
Unit test and script hook for STOP_TIME
2010-03-17 11:04:13 -04:00
Zach Mullen
767ffba8ff
Added RESOURCE_LOCK test property.
2010-03-02 15:38:02 -05:00
Zach Mullen
b4d27dc041
Use historical average of test times to schedule tests.
2010-02-26 11:02:05 -05:00
Zach Mullen
a0cc49a915
Support for relative paths to executables in MemCheck tests. Also fixed a bug causing memcheck args to be overwritten repetitively.
2010-02-04 11:24:57 -05:00
Zach Mullen
3312e3d710
Fix size type conversion warning in RunTest.
2009-12-21 09:52:56 -05:00
Zach Mullen
66f44f64d5
Fix segfault on Borland compiler resulting from divide by 0.
2009-12-18 11:42:58 -05:00
Zach Mullen
1842d2eae0
Fix output compression error message
2009-12-17 11:17:57 -05:00
Zach Mullen
ff916b48bd
CTest output submitted to the dashboard is now compressed by default.
2009-12-17 11:14:49 -05:00
Zach Mullen
5e427677c3
Restore the "***Not Run" message to ctest command line output for tests which did not start due to missing/bad executables or missing required files.
2009-12-10 15:51:56 -05:00
Zach Mullen
4de7cc3621
Unfortunately, I noticed the comment on bug 8668 too late. This changes my last implementation of the exe wrapper to something which makes much more sense: a REQUIRED_FILES property on tests.
2009-12-10 15:37:04 -05:00
Zach Mullen
48b6133928
[0008668: CTest Dev: Missing executables shown as failed tests when using MPI.] Added a wrapping option to add_test so that exes built by the project can be safely wrapped in other exes and be listed as "not run" rather than "failed" if they are not built.
2009-12-10 14:38:32 -05:00
Bill Hoffman
22c37b2b19
Hanle the case where a test can not be run because it is a bad executable.
2009-12-02 16:37:43 -05:00
Zach Mullen
c17ce46c73
Align test output for timeout condition.
2009-11-30 16:09:00 -05:00
Zach Mullen
727fa7bcb6
Fix ctest output alignment for cases where total tests run is not the same width as max test index.
2009-10-15 12:02:22 -04:00
David Cole
85feea2d0d
Fix floating point comparison warnings. Thanks to Alex Neundorf for the patch.
2009-10-13 16:39:48 -04:00
Zach Mullen
b304186bc5
Match width of ctest "Start xx: " line to line up with the end test line
2009-10-05 10:20:52 -04:00
Zach Mullen
a5be445ca9
BUG: CTest should honor test timeouts.
2009-09-29 14:31:58 -04:00
Zach Mullen
202bb45695
BUG: 0009612: --output-on-failure option doesn't work with the new parallel CTest handler
2009-09-29 09:45:43 -04:00
Brad King
96afb12087
Convert CMake to OSI-approved BSD License
...
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.
2009-09-28 11:43:28 -04:00
Zach Mullen
5a2f24856e
Output a message in ctest when each test is started
2009-09-24 13:49:20 -04:00
Bill Hoffman
932dac93b7
Fix uninitialized errors.
2009-09-16 11:49:09 -04:00
Zach Mullen
243bbae954
Removed fork-and-continue option from ctest generated batch script entries
2009-09-14 11:23:20 -04:00
Brad King
6a7eae7184
Rewrite CTest child output handling
...
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.
2009-09-11 12:26:41 -04:00
Brad King
b6c26cded2
Initialize cmCTestRunTest instances robustly
...
All instances of this class need a cmCTestTestHandler, so we now require
one to construct it. The instance also provides the cmCTest instance
too.
2009-09-11 10:09:48 -04:00
Zach Mullen
4b4e801eba
BUG: Fixed segfault and bad reporting if a ctest executable could not be found. Also added some batch testing code that is not yet complete.
2009-09-10 11:16:08 -04:00
Zach Mullen
a02ef56401
BUG: Fixed issue where ctest would hang if a process terminated with output in its buffers but no newline
2009-09-08 10:16:16 -04:00
Zach Mullen
5fb958fde9
ENH: Added ctest test options PROCESSORS and RUN_SERIAL. These allow 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.
2009-09-07 10:26:17 -04:00
Zach Mullen
5517e17bf9
Fixed ctest output processing. Should now display output as it occurs, as well as be able to consume multiple lines if they exist within the timeout.
2009-09-04 13:50:06 -04:00
Zach Mullen
d4adde13d7
Allowed tests to pull more than one line of output in their quantum. Fixed uninitialized variables in the case that the test process could not start.
2009-09-03 15:33:44 -04:00
Zach Mullen
659171d1f7
ENH: Added PARALLEL_LEVEL option for ctest_memcheck(). Added PROCESSORS option to set_tests_properties (implementation to come).
2009-09-03 10:47:14 -04:00
Zach Mullen
69fd641adb
Fixed ctest output where max test index is not the same width as the total number of tests. Also some preliminary changes for batching ctest jobs
2009-09-02 10:08:40 -04:00
Zach Mullen
90cc5c5e04
ENH: Improved test reporting output
2009-09-01 11:58:04 -04:00
Zach Mullen
5a5cc52230
Fixed conversion warning on 64 bit machines
2009-08-31 09:50:35 -04:00
Zach Mullen
387ba0c646
Fixed line length issue
2009-08-30 10:57:30 -04:00
Zach Mullen
b0b5ffcf5c
MemCheck should now work again in ctest
2009-08-28 15:08:03 -04:00
Zach Mullen
996bb51a1d
Replaced std::stringstream with cmOStringStream
2009-08-28 11:40:34 -04:00
Zach Mullen
b427d1985e
Added ctest -N test. Fixed ctest working directory bug. MemCheck fix coming soon...
2009-08-28 11:08:39 -04:00
Zach Mullen
177edc5ed1
Fixed ctest -N segfault issue. Further refactored ctest. Enabled failover for ctest
2009-08-27 10:37:30 -04:00
Zach Mullen
8ffd8d0a03
ENH: refactored ctest. All testing is now parallel. If no -j option is specified, defaults to a MP level of 1 (non parallel)
2009-08-26 12:09:06 -04:00