Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 691978

Summary: cmake-utils.eclass should run ctest with --output-on-failure
Product: Gentoo Linux Reporter: tt_1 <herrtimson>
Component: EclassesAssignee: Gentoo KDE team <kde>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description tt_1 2019-08-12 06:50:15 UTC
right now, ctest only reports failed tests as failed. With ctest --output-on-failure it would increase verbosity, by throwing out anything that the failed test program has thrown out before.
Comment 1 Andreas Sturmlechner gentoo-dev 2019-10-27 13:19:17 UTC
cmake-utils.eclass is already doing that:

> [[ -n ${TEST_VERBOSE} ]] && myctestargs+=( --extra-verbose --output-on-failure )

There's also:

> if [[ -n "${CMAKE_YES_I_WANT_TO_SEE_THE_TEST_LOG}" ]] ; then
> (prints LastTest.log)

So, just set these variables to get more verbosity. ;)