How do I get verbose output only for a specific ctest step?
I'm using CTest/CDash to build, test and report a project and I would like to get verbose output only for the configure
and build
steps without getting any verbose output during the test
phase, just the name of the running test.
Is that possible somehow?
I run the following command:
ctest -S mybuild.cmake
where mybuild.cmake
contains something like:
...
ctest_start(${dashboard_model})
ctest_update()
ctest_configure(BUILD ${CTEST_BINARY_DIRECTORY}
SOURCE ${CTEST_SOURCE_DIRECTORY})
ctest_build(BUILD ${CTEST_BINARY_DIRECTORY})
# Can I modify something here to get only verbose output in case of failure?
# like CTEST_OUTPUT_ON_FAILURE=1 ?
ctest_test()
# Submit results
ctest_upload()
ctest_submit()
If I run ctest -VV -S mybuild.cmake
I get the output for the first part but also for tests,
and if I don't select any verbose
options (-V or -VV) I just see a summary of the running processes:
Configure project
Each . represents 1024 bytes of output
..............
Is it possible to customize verbose options depending on the running ctest step?