<div dir="ltr">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 class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 18, 2018 at 5:39 PM, Adam Getchell <span dir="ltr"><<a href="mailto:adam.getchell@gmail.com" target="_blank">adam.getchell@gmail.com</a>></span> wrote:<br><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">Hello all,<div><br></div><div>I’m running into unexpected behavior when using CTest.</div><div><br></div><div>First, I define the list of tests that I want to run in my CMakeLists.txt:</div><div><br></div><div><a href="https://github.com/acgetchell/CDT-plusplus/blob/develop/CMakeLists.txt#L151" target="_blank">https://github.com/acgetchell/<wbr>CDT-plusplus/blob/develop/<wbr>CMakeLists.txt#L151</a></div><div><br></div><div>However, it generates two extra tests:</div><div><br></div><div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">┌─[</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26"><b>adam</b></span><span style="font-variant-ligatures:no-common-ligatures">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26">hapkido</span><span style="font-variant-ligatures:no-common-ligatures">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26"><b>±</b></span><span style="font-variant-ligatures:no-common-ligatures">][develop {1} </span><span style="font-variant-ligatures:no-common-ligatures;color:#34bc26"><b>✓</b></span><span style="font-variant-ligatures:no-common-ligatures">][</span><span style="font-variant-ligatures:no-common-ligatures;color:#33bbc8">~/CDT-plusplus/build</span><span style="font-variant-ligatures:no-common-ligatures">]</span></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">└─▪ 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)"><span style="font-variant-ligatures:no-common-ligatures">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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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)"><span style="font-variant-ligatures:no-common-ligatures"> 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"><span style="font-variant-ligatures:no-common-ligatures"></span><br></div><div style="margin:0px;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)"><span style="font-variant-ligatures:no-common-ligatures">Total Tests: 10</span></div></div><div><span style="font-variant-ligatures:no-common-ligatures"><br></span></div><div>I’d like to get rid of these first two autogenerated tests, because #1 fails. Where/how are these being generated/defined?</div><div><br></div><div>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><br></div><div>Thanks for any pointers.</div><div><br></div><div>Cheers,</div><div>Adam<span class="HOEnZb"><font color="#888888"><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">-- </div><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">Adam Getchell<br><a href="https://keybase.io/adamgetchell" target="_blank">https://keybase.io/<wbr>adamgetchell</a></div></div></div>
</div>
<br></font></span></div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/<wbr>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/<wbr>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/<wbr>listinfo/cmake</a><br>
<br></blockquote></div><br></div>