<div dir="ltr">I will work on making this happen on the CMake side, so it should work for all platforms that build with CMake.  I will need some help getting this tied into the Xcode build, but we can revisit that after it's done on the CMake side.<br></div><br><div class="gmail_quote">On Wed, Mar 11, 2015 at 3:58 PM Greg Clayton <<a href="mailto:clayborg@gmail.com">clayborg@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">gtest would be my vote. There are bound to be things we need to test that aren't in the API and this is a good way to do this.<br>
<br>
The other thing I can think if is if, for debug builds only, we add a static function that is available in the public API that we can call from our test suite. Then we have a python based test that just does something like:<br>
<br>
#if defined(LLDB_CONFIGURATION_<u></u>DEBUG)<br>
static void SBDebugger::RunUnitTests();<br>
#endif<br>
<br>
The in python:<br>
<br>
debugger.UnitTest()<br>
<br>
This runs all built in unit test. These tests might need a output format that can be parsed in case any built in unit test fail. Then all classes that want to run unit tests can register a <classname::UnitTest() static function that can be run.<br>
<br>
<br>
<a href="http://reviews.llvm.org/D8265" target="_blank">http://reviews.llvm.org/D8265</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu" target="_blank">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/<u></u>mailman/listinfo/lldb-commits</a><br>
</blockquote></div>