> On Mar 20, 2018, at 9:45 AM, Bill Hoffman <[email protected]> wrote: > > Must be coming from some macro, cmake does not automatically add any tests. > You could run cmake --trace and look at the output and find out where the > add_test call is coming from.
Thanks, that was it! The create_single_source_cgal_program() macro was the culprit. Thanks for the pointer to cmake --trace > > On Sun, Mar 18, 2018 at 5:39 PM, Adam Getchell <[email protected] > <mailto:[email protected]>> wrote: > Hello all, > > I’m running into unexpected behavior when using CTest. > > First, I define the list of tests that I want to run in my CMakeLists.txt: > > https://github.com/acgetchell/CDT-plusplus/blob/develop/CMakeLists.txt#L151 > <https://github.com/acgetchell/CDT-plusplus/blob/develop/CMakeLists.txt#L151> > > However, it generates two extra tests: > > ┌─[adam][hapkido][±][develop {1} ✓][~/CDT-plusplus/build] > └─▪ ctest -N > Test project /Users/adam/CDT-plusplus/build > Test #1: cdt-gv > Test #2: build_target_cdt-gv > Test #3: CDT-Usage > Test #4: CDT-3Donly > Test #5: CDT-Simplices > Test #6: CDT-Timeslices > Test #7: CDT-3Dtriangle > Test #8: CDT-MinimalS3 > Test #9: CDT-S3Runs > Test #10: CDT-unit-tests > > Total Tests: 10 > > I’d like to get rid of these first two autogenerated tests, because #1 fails. > Where/how are these being generated/defined? > > I’m aware that I can just filter using ctest -E, but I’d like to make it easy > for the other contributors (and my CI) by making `ctest` just work. > > Thanks for any pointers. > > Cheers, > Adam > -- > Adam Getchell > https://keybase.io/adamgetchell <https://keybase.io/adamgetchell> > > -- > > Powered by www.kitware.com <http://www.kitware.com/> > > 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> > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > <http://cmake.org/cmake/help/support.html> > CMake Consulting: http://cmake.org/cmake/help/consulting.html > <http://cmake.org/cmake/help/consulting.html> > CMake Training Courses: http://cmake.org/cmake/help/training.html > <http://cmake.org/cmake/help/training.html> > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > <http://www.kitware.com/opensource/opensource.html> > > Follow this link to subscribe/unsubscribe: > https://cmake.org/mailman/listinfo/cmake > <https://cmake.org/mailman/listinfo/cmake> > >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
