summaryrefslogtreecommitdiffstats
path: root/Source/CTest
Commit message (Collapse)AuthorAgeFilesLines
* Meta: modernize old-fashioned loops to range-based `for` (CTest).Pavel Solodovnikov2017-09-1432-824/+573
| | | | | | Changes done via `clang-tidy` with some manual fine-tuning for the variable naming and `auto` type deduction where appropriate.
* CTest: Weight reported test times by PROCESSORS in summariesBill Hoffman2017-09-081-2/+2
| | | | | | This commit changes the times reported by labels and subprojects to be weighted by the PROCESSORS property. It is reported with `sec*proc` instead of just `sec`.
* CTest: Split out labels and subproject labels in summary outputBill Hoffman2017-09-082-99/+37
| | | | | | | | This commit splits out the reporting of labels and labels used for sub projects. If a label is a sub project label it will not be included in the label summary. To implement this the commit creates PrintLabelOrSubprojectSummary which is able to do the work of both PrintLabelSummary and PrintSubprojectSummary avoiding code duplication.
* use static_cast<> for casts from void*Rolf Eike Beer2017-09-012-4/+4
|
* clang-format: format all code as Cpp11Daniel Pfeifer2017-08-303-9/+9
|
* Merge topic 'cstyle-casts'Daniel Pfeifer2017-08-307-29/+30
|\ | | | | | | | | | | | | 190e3825 Replace C-style casts Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1176
| * Replace C-style castsDaniel Pfeifer2017-08-277-29/+30
| |
* | IWYU: Mark cmConfigure.h with pragma: keepDaniel Pfeifer2017-08-2643-45/+35
|/ | | | Also remove `#include "cmConfigure.h"` from most source files.
* Use C++11 nullptrDaniel Pfeifer2017-08-2434-165/+160
|
* CTest: Report lines matched by launchersBill Hoffman2017-08-071-1/+5
| | | | | | | | | | | | | | Since launchers show the entire stderr/stdout for a command and only skip it if all of the lines are suppressed, it can be hard to tell if individual suppressions are working. Mark up the output reported to CDash with a prefix for each line indicating whether it was a matched or suppressed warning. Lines that are suppressed are prefixed with `[CTest: warning suppressed]` and lines that match the warning expression are prefixed with `[CTest: warning matched]`. This should make it easier for people to add suppressions as they will know what they need to match and what they have already suppressed. This is an issue because if there is more than one warning in a single compiler output you have to suppress all of them before it will go away.
* Merge topic 'add_test_processors_prop_to_cdash'Brad King2017-07-211-0/+6
|\ | | | | | | | | | | | | 614921b4 Add the test property PROCESSORS to the CDash xml as a NamedMeasurement. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1066
| * Add the test property PROCESSORS to the CDash xml as a NamedMeasurement.Bill Hoffman2017-07-181-0/+6
| | | | | | | | | | | | This commit forwards the test property PROCESSORS to CDash in the xml produced by ctest. This is to allow CDash to know how much processor time was allocated to a test.
* | Merge topic 'cmake-E-sha'Brad King2017-07-181-7/+5
|\ \ | |/ |/| | | | | | | | | | | | | c4de0a25 Add sha1sum, sha224sum, sha256sum, sha384sum and sha512sum to command mode c4647d84 Change ComputeFileMD5 to ComputeFileHash 501a4fee Add some unit tests for md5sum Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1021
| * Change ComputeFileMD5 to ComputeFileHashAndré Klitzing2017-07-141-7/+5
| | | | | | | | | | | | | | * Use a parameter to select hash algorithm * Return a std::string as result or an empty string if it fails * Avoids unnecessary copy of hash value
* | Merge topic 'better-exception-reporting'Brad King2017-07-135-14/+26
|\ \ | | | | | | | | | | | | | | | | | | 0c650f39 CTest: Report more detail about system exceptions in tests Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1046
| * | CTest: Report more detail about system exceptions in testsBill Hoffman2017-07-125-14/+26
| |/ | | | | | | | | This passes the system exception string up to CDash and to the command line instead of just printing "other".
* | Display subproject timing summaryBetsy McPhail2017-07-102-1/+86
| | | | | | | | Use the '--no-subproject-summary' option to disable timing summary.
* | Add directory property 'LABELS' and CMAKE_DIRECTORY_LABELS variableBetsy McPhail2017-07-102-1/+99
| | | | | | | | | | The specified LABELS will be passed down to subdirectories as well as any targets or tests in the directory.
* | Add CTEST_LABELS_FOR_SUBPROJECTS as a CTest module and script variableBetsy McPhail2017-07-108-1/+23
|/ | | | | Use this variable to specify a list of labels that will be reported to CDash as subprojects.
* Merge topic 'display-ctest-disabled'Brad King2017-06-051-2/+6
|\ | | | | | | | | | | | | | | f59d729c ctest: Display disabled status when ctest -N is called Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !923
| * ctest: Display disabled status when ctest -N is calledChuck Atkins2017-06-021-2/+6
| |
* | Remove second arg: npos in substr usagesPavel Solodovnikov2017-06-011-2/+2
| |
* | Access string npos without instancePavel Solodovnikov2017-06-0110-78/+80
| |
* | cmParseBlanketJSCoverage: Pass unmodified parameter as const&Brad King2017-06-011-1/+1
| |
* | cmCommand: remove unused methods from interface and all implementationsDaniel Pfeifer2017-05-119-55/+6
| |
* | CTest: use new methods for builtin commandsDaniel Pfeifer2017-05-113-27/+26
| |
* | cmState: remove RemoveUnscriptableCommandsDaniel Pfeifer2017-05-081-4/+0
| |
* | cmake: initialize with Role that controls which commands to registerDaniel Pfeifer2017-05-084-4/+4
| |
* | Merge topic 'ctest_submit_headers'Brad King2017-05-056-2/+64
|\ \ | | | | | | | | | | | | | | | | | | 1a7d00bd ctest_submit: Add HTTPHEADER option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !793
| * | ctest_submit: Add HTTPHEADER optionZack Galbreath2017-05-046-2/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | Allow CTest script writers to specify additional HTTP headers to be sent to CDash during submission. The motivating case for this feature is a corresponding change in CDash. This will allow projects to refuse submissions from any site not bearing a valid authentication token.
* | | c++: prefer vectors over listsBen Boeckel2017-05-042-8/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | None of these usages of `std::list` were inserting or removing elements in the middle of the structure, so there were no benefits to using it. Other uses were related to C pointers being stable in a list of strings whereas in a vector of strings, small pointer optimizations could be moved and become invalid after a modification to the hosting vector. None of these uses modified the vector after handing out a C string to an external store.
* | | Add ctest options for limiting which tests fixtures addCraig Scott2017-05-014-27/+122
| | | | | | | | | | | | | | | The new options allow the user to restrict the setup and cleanup tests automatically added for fixtures.
* | | Merge topic 'clang-tidy-2'Brad King2017-04-271-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a740f1b cmCPackIFWInstaller: fix validation of WizardStyle option a168b4cc cmServerProtocol: avoid copies in range for 1ef22a26 cmDocumentation: use ofstream local variable ba8571ff clang-tidy: use operators for string comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !738
| * | | clang-tidy: use operators for string comparisonDaniel Pfeifer2017-04-261-1/+1
| | | |
* | | | Merge topic 'ctest_test-ignore-skipped-tests'Brad King2017-04-272-6/+18
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 851b6c15 cmCTestTestHandler: indicate why a test did not run 25a7f14f Help: add release notes ab8bbef9 cmCTestTestHandler: count skipped tests as disabled 202a44a4 cmCTestRunTest: do not count skipped tests as failed Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Craig Scott <craig.scott@crascit.com> Merge-request: !741
| * | | cmCTestTestHandler: indicate why a test did not runBen Boeckel2017-04-241-3/+8
| | | |
| * | | cmCTestTestHandler: count skipped tests as disabledBen Boeckel2017-04-241-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | The `Skipped` status is basically a runtime version of the `Disabled` status (set as a property on the test by the configure step), so treat them the same.
| * | | cmCTestRunTest: do not count skipped tests as failedBen Boeckel2017-04-211-2/+6
| |/ / | | | | | | | | | | | | | | | | | | Skipped tests are neither passed nor failed tests, but return codes are based only upon failed tests, so do not count them as such. Fixes #16822.
* | | Merge topic 'ctest-minor-fixups'Brad King2017-04-242-5/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3d1bd011 cmCTestTestHandler: use pointers to static memory 5969048d cmCTestTestCommand: defer getting the global timeout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !735
| * | | cmCTestTestHandler: use pointers to static memoryBen Boeckel2017-04-211-4/+4
| | | | | | | | | | | | | | | | There's no need to reserve 100 bytes for each of these strings.
| * | | cmCTestTestCommand: defer getting the global timeoutBen Boeckel2017-04-211-1/+2
| |/ /
* | | clang-tidy: use .empty() to check emptynessDaniel Pfeifer2017-04-211-1/+1
| | |
* | | clang-tidy: remove else after break and continueDaniel Pfeifer2017-04-213-3/+6
|/ /
* | Use quotes for non-system includesDaniel Pfeifer2017-04-1176-126/+126
|/ | | | | | | | | | | | | Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
* Add 'DISABLED' test propertyBetsy McPhail2017-03-294-8/+67
| | | | | | When this property is set, the test is skipped and its status is automatically set to 'Not Run'. A disabled test will not be counted in the total number of tests and its completion status will be 'Disabled'.
* CTest: Improve 'Completion Status' reported to CDash for 'Not Run' testsBetsy McPhail2017-03-272-11/+15
| | | | | | Previously, the completion status of not run tests was always set to "Not Run". Make it more descriptive. This value is written to `Test.xml` and then displayed as 'Test Details' in CDash.
* Add self-sufficient wrapper for <sys/stat.h>Daniel Pfeifer2017-03-241-1/+1
|
* cmWorkingDirectory: use the new classBen Boeckel2017-03-068-94/+60
| | | | | | These functions just need to change the directory for a block of code and then go back to the caller's expected location. Use cmWorkingDirectory to ensure that all return paths are handled.
* cmCTest, cmCTestCoverageHandler: remove cwd danceBen Boeckel2017-03-061-5/+0
| | | | The working directory changes here didn't really accomplish anything.
* ctest_update: Capture failure of svn to load revisions and local modsBrad King2017-02-162-11/+16
| | | | Issue: #16646