To solve my issue, I only need to specify the following. Otherwise, no
error is printed, the test will always past, and ctest --debug prints
pages and pages of debug info.
ENABLE_TESTING()
ADD_TEST(foo ${CMAKE_CTEST_COMMAND} --build-and-test
${PROJECT_SOURCE_DIR} ${PROJECT_BINARY_DIR}
I'll just have to go back to the wrapper script. I can't figure out why
running make test can no trigger a rebuild. Also, --build-noclean
does not help.
Is there any natural way to get verbose output to the screen from an
executable being run by ctest? Aside from a wrapper script, is there