The following issue has been SUBMITTED. ====================================================================== http://public.kitware.com/Bug/view.php?id=11774 ====================================================================== Reported By: tyler Assigned To: ====================================================================== Project: CMake Issue ID: 11774 Category: CTest Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2011-01-28 11:14 EST Last Modified: 2011-01-28 11:14 EST ====================================================================== Summary: ctest_test causes an error when no tests are found Description: Reported here: http://www.mail-archive.com/[email protected]/msg34218.html
David Cole replied here, agreeing that this is a bug: http://www.mail-archive.com/[email protected]/msg34227.html "I think it would be a good idea to make ctest_test not induce an error just because there are no tests to run." David also suggested some other useful enhancements to ctest_test()'s behavior, but I don't want to bury this bug under a ton of feature requests. Steps to Reproduce: 1. Run a ctest -S script to build a project that doesn't include tests added via add_test(). 2. Upon reaching the ctest_test() command in the ctest script, ctest will report: Test project /satsop/build/kitt-cmake-based-addons-for-legacy-trunk/binary/addons/trunk/linux64.26/release Constructing a list of tests Done constructing a list of tests Checking test dependency graph... No tests were found!!! and upon reaching the end of the script, it exits with an error: Error in read script: /satsop/build/kitt-cmake-based-addons-for-legacy-trunk/kitt.cmake ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-01-28 11:14 tyler New Issue ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
