Are you using "ctest_build" and "ctest_test" in your -S script? If so, then ctest should fail with a non-zero result when there are build errors or test failures.
Are you saying that you have test failures, but ctest returns 0? Can you share your script, or reproduce this with a minimal example project? Thx, David On Wed, Feb 15, 2012 at 11:14 AM, Tom Deblauwe <[email protected]>wrote: > Hello, > > I'm able to run my unittests and build everything using a ctest -S script, > and also submit the results to cdash. However, I would like to determine if > the unittests fail in the bash script where I run ctest in. But it doesn't > return an error code when the unittests fail. How can I determine this? > > Thanks, > Best regards, > Tom, > > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/** > opensource/opensource.html<http://www.kitware.com/opensource/opensource.html> > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/**CMake_FAQ<http://www.cmake.org/Wiki/CMake_FAQ> > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/**listinfo/cmake<http://www.cmake.org/mailman/listinfo/cmake> >
-- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
