Martin Duffy
19305afd8a
presets: Improve JSON parser and error messages
2023-03-29 10:41:19 -04:00
Brad King
e46a9d79fc
Tests: Isolate more RunCMake cases from external ctest environment values
...
Fix a few RunCMake cases that were running `ctest` without isolating it
from external environment values that affect its behavior.
Fixes : #24153
2022-11-14 11:08:45 -05:00
Kyle Edwards
bea4ed5430
CTest: Add support for outputJUnitFile in presets
...
Fixes : #22400
2022-10-18 16:52:23 -04:00
Kyle Edwards
757786bb73
Tests: Add test for outputLogFile in CMakePresets.json
2022-10-18 15:20:44 -04:00
Kyle Edwards
b68c3596e7
CMakePresets.json: Disallow extra properties in test output schema
...
And add test for testOutputTruncation being unsupported.
2022-10-18 14:40:11 -04:00
Frank Winklmeier
140704d443
ctest: add option for output truncation
...
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
2022-03-08 08:18:02 -05:00
Frank Winklmeier
359e5b17d8
presets: bump version to v5
...
Prepare for new test preset fields.
2022-03-08 08:18:02 -05:00
Kyle Edwards
c18409cdac
CMakePresets.json: Ensure configurePreset is reachable from current file
2022-02-02 15:17:30 -05:00
Kyle Edwards
8bc5c8961e
CMakePresets.json: Add the ability to conditionally disable presets
2021-03-22 15:04:54 -04:00
Sam Freed
b9eb3541cf
Tests: update tests to catch invalid configurePreset at read-time
2021-03-15 14:53:00 -07:00
Brad King
e95f7aa0ed
Merge topic 'preset-flag-consistency' into release-3.20
...
6fa3647023 ctest: Add support for '--prefix=<prefix>' form of the argument
3357d37761 cmake: Add support for '--build --prefix=<prefix>' form of the argument
2f13fdef0a cmake: Document '--preset <preset>' form of the argument
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5849
2021-02-24 09:46:52 -05:00
Kyle Edwards
afaa69f5b3
Tests: Remove comments from CMakePresetsTest/Good.json.in
2021-02-24 09:33:50 -05:00
Brad King
6fa3647023
ctest: Add support for '--prefix=<prefix>' form of the argument
...
The main `cmake --preset` argument for configure presets supports both
forms, so support it for `ctest --preset` too.
Fixes : #21855
2021-02-23 09:22:00 -05:00
Sam Freed
b500935b94
Tests: Add test preset tests
2021-02-04 11:39:52 -05:00