Bill Hoffman
dd52fc309d
Fix a memory leak.
2011-06-06 16:41:17 -04:00
Zach Mullen
350546db3a
Implement ctest_upload command
2011-03-15 15:07:37 -04:00
Brad King
a1711f1c6b
Remove trailing whitespace
2011-03-11 08:04:58 -05:00
Brad King
333e707d95
Merge topic 'fix-test-output-truncation'
...
e73bf1c
CTest: Do not truncate UTF-8 test output too early (#10656 )
2011-01-11 15:49:04 -05:00
Brad King
e73bf1c384
CTest: Do not truncate UTF-8 test output too early ( #10656 )
...
Since commit e4beefeb
(CTest: Do not munge UTF-8 output in XML files,
2009-12-08) we validate UTF-8 encoding of build and test output as it is
written to XML files. However, in cmCTestTestHandler::CleanTestOutput
we still processed test output one byte at a time and did not recognize
multi-byte UTF-8 characters. Presence of such characters caused early
truncation.
Teach CleanTestOutput to truncate test output at the limit but without
cutting it in the middle of a multi-byte encoding. Also, stop avoiding
truncation in the middle of an XML tag like "<MyElement>" because the
'<' and '>' will be properly escaped in the generated XML anyway.
2011-01-04 13:20:49 -05:00
Zach Mullen
51bb493574
Test TIMEOUT property explicitly set to zero should be honored
2011-01-03 14:41:25 -05:00
Brad King
97c5171d6c
Merge topic 'dev/add_test-working-directory'
...
667a90a
Fix sentence break in add_test documentation
96309fc
Make TestsWorkingDirectory test a C file
a4a5e37
Use iostream to make Borland happy
cfe53cd
Fully specify the path to old-signature add_test
017d4e9
Group adding tests with its properties
561cc33
Only test the default cwd with Makefiles
d87bae7
Simplify the _default_cwd derivation
992c74f
Use --><-- markers to denote the path
5249551
Flip slashes around on Windows
0a014da
Add ctype.h include for toupper()
af12f83
Fix header includes for C++ and Visual Studio
5597aa2
Rename the project to match the test
9bf4165
Add tests for WORKING_DIRECTORY arg to add_test
42de5d0
Add WORKING_DIRECTORY argument to add_test
7679f9f
Rename WorkingDirectory test
d95f817
Add the WORKING_DIRECTORY property to tests
2010-12-28 15:25:49 -05:00
Clinton Stimpson
744366fc0b
CTest: multiple ctest_test calls w/LABEL regexs ( #11487 )
...
The Initialize method was not re-initializing everything
that it should have been. This commit fixes that.
2010-12-17 17:30:13 -05:00
Rolf Eike Beer
d95f817f77
Add the WORKING_DIRECTORY property to tests
2010-12-16 16:23:18 -05:00
Zach Mullen
32242affea
Added CTest command --print-labels
...
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.
2010-08-31 10:41:23 -04:00
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
Zach Mullen
960dc2b10f
Do not exit if stoptime is passed.
2010-06-15 10:29:35 -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
ff916b48bd
CTest output submitted to the dashboard is now compressed by default.
2009-12-17 11:14:49 -05:00
Zach Mullen
9add940eb6
Added an option to conditionally attach files to a test submission only if the test does not pass. Also some preliminary changes for test output compression.
2009-12-16 14:50:16 -05:00
Zach Mullen
5bfe1a1962
Changed XML formatting of files attached to test so that each file is archived and marked up individually, in order to make things easier on the CDash side. Also switched to using the NamedMeasurement tag instead of a new tag.
2009-12-15 14:24:24 -05:00
Zach Mullen
dc66139f7c
CTest-side changes to allow users to attach arbitrary files to test results that will be submitted to cdash using the ATTACHED_FILES test property.
2009-12-15 12:07:15 -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
Zach Mullen
c32088cfee
Local test timeouts will now always take precedence over the global --timeout option.
2009-12-08 10:26:43 -05:00
Zach Mullen
b30f627190
CMake global timeout (--timeout option) should prevail over individual test timeouts if it is lower than the individual timeout.
2009-12-07 13:25:54 -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
a52c0118d4
Added the --timeout option to ctest command line. This sets a global timeout on all tests if no more specific timeout is set on them.
2009-11-30 16:08:11 -05:00
Zach Mullen
c9c0ee4056
Change logic of ctest subdirs command to allow for absolute paths. Also added test coverage for passing absolute paths to subdirs.
2009-11-10 10:40:24 -05:00
Zach Mullen
17afd5257b
Bug 9090: CTest does not handle absolute paths in CTestTestfile SUBDIR( ) entries.
...
The ctest subdirs command now checks the relative path first, and if that does not exist, also checks if the given path was absolute. Thanks vodall for the patch.
2009-11-09 14:07:36 -05:00
Zach Mullen
8612aa10b6
Hook for scheduling tests in a random order
...
This may help statistically detect implicit dependencies among unit
tests while running in parallel.
2009-10-29 15:30:12 -04:00
Zach Mullen
7fd3d7cf80
BUG: #0009648 Change "The following tests FAILED" message to print on stdout rather than stderr
2009-10-05 12:47:09 -04:00
David Cole
ccb0cf1306
Fix warnings in CMake source code.
2009-10-02 15:30:01 -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
Bill Hoffman
8a690289c2
Add label summary times to ctest default output. Also, remove parallel time output. Add flag to disable label summary.
2009-09-11 13:34:35 -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
a516040579
ENH: ctest now writes time cost data to a file after a test set is run, and uses these time costs to schedule the processes the next time ctest is run in that build tree.
2009-09-08 17:10:35 -04:00
Zach Mullen
39e5f9d963
ENH: Replaced the EXPENSIVE test property with a COST test property taking a floating point value. Tests are now started in descending order of their cost, which defaults to 0 if none is specified.
2009-09-08 13:39:13 -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
c6e5dd21fd
Added the test property EXPENSIVE, which denotes that the given test(s) should be started prior to tests that are not marked as such. Also fixed test dependencies, and a few uninitialized variables in cmProcess.
2009-09-04 10:16:06 -04:00
Zach Mullen
20713ab89d
Fixed warnings
2009-09-03 11:14:13 -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
7e20db0224
ENH: Added PARALLEL_LEVEL option to ctest_test() command.
2009-09-02 12:35:42 -04:00
Zach Mullen
59b34a6a1a
Fixed Dart time recording for ctest
2009-08-31 10:28:39 -04:00
Zach Mullen
5a5cc52230
Fixed conversion warning on 64 bit machines
2009-08-31 09:50:35 -04:00
Zach Mullen
b0b5ffcf5c
MemCheck should now work again in ctest
2009-08-28 15:08:03 -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
Zach Mullen
a2ef34d344
Fixed overwriting of a previous change set
2009-08-19 09:24:55 -04:00
Zach Mullen
b9daa192af
ENH: Refactored CTest test execution code into an object
2009-08-19 08:58:36 -04:00
Bill Hoffman
c02c8c287c
Add test times to log file as well as the stdout.
2009-08-18 14:03:50 -04:00
Bill Hoffman
3c34d0440c
If labels are found on the tests, then print a time summary for all the tests run with each label.
2009-08-18 13:34:05 -04:00
Bill Hoffman
a696fe8183
Output total time when using -j N
2009-08-11 22:02:49 -04:00