CMake/Help/variable/CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION.rst
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

13 lines
449 B
ReStructuredText

CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION
-----------------------------------
.. versionadded:: 3.24
Set the test output truncation mode in case a maximum size is configured
via the :variable:`CTEST_CUSTOM_MAXIMUM_PASSED_TEST_OUTPUT_SIZE` or
:variable:`CTEST_CUSTOM_MAXIMUM_FAILED_TEST_OUTPUT_SIZE` variables.
By default the ``tail`` of the output will be truncated. Other possible
values are ``middle`` and ``head``.
.. include:: CTEST_CUSTOM_XXX.txt