<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="">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" class="">https://github.com/acgetchell/CDT-plusplus/blob/develop/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<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">-- </div><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Adam Getchell<br class=""><a href="https://keybase.io/adamgetchell" class="">https://keybase.io/adamgetchell</a></div></div></div>
</div>
<br class=""></div></body></html>