Hello all, just an addition, changing the verbose-flag does change the test-output. But not in the way that could be expected.
This is the output of running "make test" or ctest (without explicitly using "-V" or "-VV" on the command-line), if no verbose-option or "-V" is given to add_test: Running tests... Start processing tests Test project <project-dir> 1/ 1 Testing plugin_internal_test Passed This is th e output of running "make test" or ctest (without explicitly using "-V" or "-VV" on the command-line), if "-VV" is given to add_test: Running tests... Start processing tests Test project <project-dir> 1/ 1 Testing plugin_internal_test .. OK (2) -- Process completed Passed Running ctest with "-V" or "-VV" gives the expected output. This would be very helpfull, if the tests somehow do not build or run and I want to diagnose the reason by increasing the verbosity-level. So to reformulate my former question: How can I get the output from "ctest -V" or "ctest -VV" when running "make test"? Thanks again Marco >-----Ursprüngliche Nachricht----- >Von: wedekind [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 13. Juli 2007 16:56 >An: '[email protected]' >Betreff: [CTest] Does add_test suppress the output of ctest? > >Hello CMake-gurus, > >I'm adding tests to my project (with add_test) and let add_test call ctest >with some parameters, e.g.: > >add_test(some_test ${CMAKE_CTEST_COMMAND} -V --build-and-test ...) > >The tests will be called by "make test", for example, and they are >successfully built and run. > >Except, that the verbose-option "-V" is simply ignored! And I don't know >why... > >All options given to ctest are correctly written to the DartTestfile.txt, >"-V" too. But running "make test" or ctest does not print the verbose >output. Only calling "ctest -V" will do the trick. > >Does add_test somehow swallow the output of the command it calls? > >How to avoid this? > >Thanks for your feedback! > >Cheers! > >Marco _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
