<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 20, 2018, at 9:45 AM, Bill Hoffman <<a href="mailto:bill.hoffman@kitware.com" class="">bill.hoffman@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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.</div></div></blockquote><div><br class=""></div>Thanks, that was it!</div><div><br class=""></div><div>The create_single_source_cgal_program() macro was the culprit.</div><div><br class=""></div><div>Thanks for the pointer to cmake --trace</div><div><br class=""></div><div><br class=""><blockquote type="cite" class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Mar 18, 2018 at 5:39 PM, Adam Getchell <span dir="ltr" class=""><<a href="mailto:adam.getchell@gmail.com" target="_blank" class="">adam.getchell@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space" class="">Hello all,<div class=""><br class=""></div><div class="">I’m running into unexpected behavior when using CTest.</div><div class=""><br class=""></div><div class="">First, I define the list of tests that I want to run in my CMakeLists.txt:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/acgetchell/CDT-plusplus/blob/develop/CMakeLists.txt#L151" target="_blank" class="">https://github.com/acgetchell/<wbr class="">CDT-plusplus/blob/develop/<wbr class="">CMakeLists.txt#L151</a></div><div class=""><br class=""></div><div class="">However, it generates two extra tests:</div><div class=""><br class=""></div><div class=""><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">┌─[</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class=""><b class="">adam</b></span><span style="font-variant-ligatures:no-common-ligatures" class="">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class="">hapkido</span><span style="font-variant-ligatures:no-common-ligatures" class="">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class=""><b class="">±</b></span><span style="font-variant-ligatures:no-common-ligatures" class="">][develop {1} </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26" class=""><b class="">✓</b></span><span style="font-variant-ligatures:no-common-ligatures" class="">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#33bbc8" class="">~/CDT-plusplus/build</span><span style="font-variant-ligatures:no-common-ligatures" class="">]</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">└─▪ ctest -N</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Test project /Users/adam/CDT-plusplus/build</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #1: cdt-gv</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #2: build_target_cdt-gv</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #3: CDT-Usage</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #4: CDT-3Donly</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #5: CDT-Simplices</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #6: CDT-Timeslices</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #7: CDT-3Dtriangle</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #8: CDT-MinimalS3</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #9: CDT-S3Runs</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""> Test #10: CDT-unit-tests</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255);min-height:13px" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""></span><br class=""></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">Total Tests: 10</span></div></div><div class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div><div class="">I’d like to get rid of these first two autogenerated tests, because #1 fails. Where/how are these being generated/defined?</div><div class=""><br class=""></div><div class="">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.</div><div class=""><br class=""></div><div class="">Thanks for any pointers.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Adam<span class="HOEnZb"><font color="#888888" class=""><br class=""><div class="">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class=""><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">-- </div><div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word;" class="">Adam Getchell<br class=""><a href="https://keybase.io/adamgetchell" target="_blank" class="">https://keybase.io/<wbr class="">adamgetchell</a></div></div></div>
</div>
<br class=""></font></span></div></div><br class="">--<br class="">
<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank" class="">http://www.cmake.org/Wiki/<wbr class="">CMake_FAQ</a><br class="">
<br class="">
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br class="">
<br class="">
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/<wbr class="">support.html</a><br class="">
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/<wbr class="">consulting.html</a><br class="">
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank" class="">http://cmake.org/cmake/help/<wbr class="">training.html</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/<wbr class="">opensource/opensource.html</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank" class="">https://cmake.org/mailman/<wbr class="">listinfo/cmake</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></body></html>