Skip to content

Help: Fix --build-and-test synopsis in ctest(1)

Paul Seyfert requested to merge pseyfert/cmake:ctestman into master

The synopsis added by !1427 (merged) is missing the actual --build-and-test argument! Add it now.


@reviewer please check if I actually understood this right.

Low in the manual, where the build options are discussed, the syntax is shown as ctest --build-and-test <source> … while at the top of the manual ctest <source> <build> is suggested. Trying the latter on my system does not seem to be a sensible instruction: when in a cmake build dir, tests are run and arguments are ignored, when in an empty dir, no build is launched. Thus I concluded:

ctest <source dir> <build dir> should be ctest --build-and-test <source dir> <build dir>


Topic-rename: doc-ctest-build-and-test-summary

Edited by Brad King

Merge request reports