summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
Commit message (Collapse)AuthorAgeFilesLines
* CTest: Report CPU model name to dashboardDaniel Pfeifer2024-09-271-0/+1
|
* file(ARCHIVE_CREATE): add WORKING_DIRECTORY optionYuri Witte2024-09-111-2/+2
| | | | | Fixes: #25260 Issue: #21653
* Source: Avoid comparing pointers to nullptrVitaly Stakhovsky2024-08-271-3/+2
|
* Refactor: Optimize some `std::ostream::operator<<()` callsAlex Turbov2024-08-191-54/+42
|
* CTest: remove cmCTestLogWrite helperDaniel Pfeifer2024-08-011-10/+6
|
* ctest: Allow --test-dir override when using presetscastro-ma2024-04-241-1/+3
| | | | Fixes: #23982
* ctest: Cleanup for invalid argument handlingMartin Duffy2024-04-171-4/+3
| | | | Backs out unrelated change and changes error message to 'Unknown argument'
* ctest: Show error on invalid ctest argumentsJake D'Esposito2024-04-041-15/+40
| | | | Fixes: #24227
* ctest: Allow passing -j without value to choose a contextual defaultBrad King2024-03-101-14/+41
| | | | | | | | | | | | | Under job server integration, added by commit 80fe56c481 (ctest: Add support for running under a make job server on POSIX systems, 2023-11-15, v3.29.0-rc1~324^2), use a very high default so that parallelism is effectively limited only by available job server tokens. Otherwise, choose a default limit based on the number of processors. Also allow passing `0` to specify unbounded parallelism. Fixes: #25739
* ctest: add command line option to exclude tests listed in a given fileAlex Neundorf2024-01-251-0/+9
| | | | | | | Add `--exclude-from-file <filename>` to exclude the tests listed in the given file. Issue: #25455
* ctest: add command line option to run the tests listed in a given fileAlex Neundorf2024-01-251-0/+7
| | | | | | | | Add `--tests-from-file <filename>` to run only the tests listed in the given file. The test names must match exactly, no regexps or something. The listed tests can still be filtered with a regexp using -R. Issue: #25455
* ctest: Allow colored output on Windows if CLICOLOR_FORCE is set to 1Cristian Adam2023-11-011-10/+5
| | | | | | | | Windows 10 supports ANSI colors since v1511. For earlier versions of Windows installing ANSICON will enable ANSI colors in cmd.exe. For those setups where the environment is set up with CLICOLOR_FORCE set to 1 ctest should honor the setting and emit colored ANSI output.
* Source: Remove redundant FileIsDirectory checksscivision2023-09-191-2/+1
|
* cmCTest: Replace cmsysProcess with cmUVProcessChainKyle Edwards2023-08-291-198/+231
|
* IWYU: Update for Debian 12 CI jobBrad King2023-07-281-0/+1
| | | | | | `include-what-you-use` diagnostics, in practice, are specific to the environment's compiler and standard library. Update includes to satisfy IWYU for our CI job under Debian 12.
* CMake code rely on cmList class for CMake lists management (part. 2)Marc Chevrier2023-04-291-2/+1
|
* CMake code rely on cmList class for CMake lists management (part. 1)Marc Chevrier2023-04-241-3/+4
|
* presets: Improve JSON parser and error messagesMartin Duffy2023-03-291-4/+5
|
* Revise C++ coding style using clang-format-15Kitware Robot2023-01-181-8/+8
| | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 15. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Fixes: #24315
* Merge topic 'ctest-no-tests-action-env-var'Brad King2023-01-171-0/+20
|\ | | | | | | | | | | | | | | 0661de58d8 ctest(1): Add CTEST_NO_TESTS_ACTION env var Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8044
| * ctest(1): Add CTEST_NO_TESTS_ACTION env varfriendlyanon2023-01-131-0/+20
| | | | | | | | | | This environment variable provides a default value for the --no-tests=<action> command line argument.
* | Merge topic 'ctest-error-newlines'Brad King2023-01-121-3/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 5e7a4ad1a1 ctest: Add missing newlines on several error messages Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8047
| * | ctest: Add missing newlines on several error messagesChristian Häggström2023-01-111-3/+4
| |/ | | | | | | | | | | | | | | Without this: user@host:~$ ctest --build-and-test foo --build-and-test must have source and binary dir Problem parsing command line arguments within a handleruser@host:~$
* | CTest: Use std::string argumentsVitaly Stakhovsky2023-01-031-22/+21
|/
* CTest: Add support for outputJUnitFile in presetsKyle Edwards2022-10-181-5/+13
| | | | Fixes: #22400
* cmSystemTools: Fix 'ErrorOccurred' spellingFeRD (Frank Dana)2022-06-131-7/+7
| | | | | | | | Rename the booleans 's_ErrorOccured' and 's_FatalErrorOccured' to 's_ErrorOccurred' and 's_FatalErrorOccurred', respectively. Rename the getters and setters to 'Get[Fatal]ErrorOccurred' and 'Set[Fatal]ErrorOccurred', and fix all uses across the codebase.
* clang-tidy: fix `performance-unnecessary-copy-initialization` lintsBen Boeckel2022-05-241-2/+2
|
* clang-tidy: address `google-readability-casting` lintsBen Boeckel2022-05-241-7/+10
| | | | At least those involving `static_cast`.
* clang-tidy: address `readability-container-data-pointer` lintsBen Boeckel2022-05-241-8/+8
|
* ctest: add option for output truncationFrank Winklmeier2022-03-081-0/+12
| | | | | | | | | | Add `--test-output-truncation` to `ctest`. This option can be used to customize which part of the test output is being truncated. Currently supported values are `tail`, `middle` and `head`. Also add equivalent `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` variable. Fixes: #23206
* Refactor: Rename cmCMakePresetsFile to cmCMakePresetsGraphKyle Edwards2022-01-061-17/+17
| | | | And change all references to "file" to say "graph" instead.
* Source: Replace most calls to sprintf with snprintfSean McBride2021-10-251-7/+8
|
* Source: Fix clang -Wimplicit-fallthrough warningsSean McBride2021-09-281-1/+1
|
* Rename cmProp in cmValueMarc Chevrier2021-09-211-7/+7
|
* ctest: add support for attaching files to tests at run timeZack Galbreath2021-06-081-8/+32
| | | | | | | | | | | | | | Allow tests to specify files to upload at runtime. Previously this was only possible to specify at configure time with the ATTACHED_FILES test properties. This commit also fixes a bug in how our test data tarballs were generated by CTest. Previously, if you tried to attach a file outside of the binary directory, CTest would generate a tar file with a relative path, and tar would not allow you to extract it. We resolve this problem by creating tar files with a flat directory structure instead. Fixes: #22284
* CTest: Add env var CLICOLOR to disable color outputMartin Willers2021-05-061-0/+4
| | | | Based on the implementation in Terminal.c:kwsysTerminalStreamIsVT100.
* ctest: Add support for writing test results in JUnit XML formatZack Galbreath2021-04-261-0/+11
| | | | Addresses #18654
* Update CMake code using KWSys to account for Status return valuesBrad King2021-04-141-3/+3
| | | | | | KWSys as of 2021-04-14 changed the return type of `SystemTools` operations from `bool` to `Status`. Update our call sites. This may improve error reporting accuracy in a few places.
* ctest: Support multiple -L and -LE options to mean "AND"Adriaan de Groot2021-03-281-10/+19
| | | | Fixes: #21087
* CMakePresets.json: Add the ability to conditionally disable presetsKyle Edwards2021-03-221-0/+7
|
* Source: Reduce c_str() usagevvs314152021-03-131-3/+3
|
* ctest: Add support for '--prefix=<prefix>' form of the argumentBrad King2021-02-231-2/+8
| | | | | | | The main `cmake --preset` argument for configure presets supports both forms, so support it for `ctest --preset` too. Fixes: #21855
* presets: Remove unintended rerunFailed option from test presetsSam Freed2021-02-151-5/+0
| | | | | | | This was accidentally included after discussion in #21391 had decided to leave it out. It was never included in a release. Issue: #21391
* cmake-presets: Add build and test presetsSam Freed2021-02-011-1/+339
| | | | Fixes: #21391
* Merge topic 'ctest-progress-output-fixes'Brad King2021-01-071-1/+1
|\ | | | | | | | | | | | | | | 39cdc8afb9 ctest: Make verbose mode override progress behavior 1bcd9b06b9 ctest: Don't treat skipped test as failed tests in progess report Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5663
| * ctest: Make verbose mode override progress behaviorSylvain Joubert2021-01-051-1/+1
| | | | | | | | | | Start and results should now be back in verbose mode even with progress mode enabled.
* | Code style: add missed explicit 'this->'Oleksandr Koval2021-01-051-2/+2
|/ | | | | CMake uses explicit 'this->' style. Using custom clang-tidy check we can detect and fix places where 'this->' was missed.
* Ctest: Support build tree on command lineAsit Dhal2020-12-171-2/+33
| | | | Fixes: #21268
* ctest: Provide hints about inspecting test failuresAsit Dhal2020-12-011-0/+11
| | | | Fixes: #20955
* cmMakefile::GetDefinition: return cmPropVitaly Stakhovsky2020-09-021-5/+5
|