Gavin,<br><br>Good practice is to run as much tests as possible and do not stop on first failed test. <br><br><div class="gmail_quote">2010/1/8 Gavin Heavyside <span dir="ltr">&lt;<a href="mailto:gavin.heavyside@gmail.com">gavin.heavyside@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div>Have you looked at add_custom_command(TARGET ...) or add_custom_target(...)?</div>
</div>
Those are how you run can run commands as part of the build, but after some<br>
other targets are compiled.<br>
<br>
Clint<br></blockquote><div><br></div></div>That works great, thanks for the tip!<div><br></div><div>I build my code, and then my test programs using add_executable.  Then I can do e.g.:</div><div><br><div>add_custom_command(TARGET test_harness POST_BUILD COMMAND test_harness)</div>

<div><br></div><div>and test_harness runs after building, with proper dependencies, and a failing test causes a failing build.  Perfect.  Anything I don&#39;t want to run by default I can leave to add_test on its own.</div>

<div><br></div><div>Thanks very much,</div><div><br></div><font color="#888888"><div>Gavin</div></font></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>