<div dir="ltr">Hey Matthew,<div><br></div><div>I'm thrilled that you are trying to get a test Linux box up!</div><div><br></div><div>The easiest way to run that depends on whether you're using cmake/ninja or configure/make.  If you don't have a strong preference, going with cmake/ninja is definitely the faster way to go.</div>
<div><br></div><div>In any event, you'll want to kick off the tests with either one of these, after you've done a full build (i.e. 'ninja' in the build dir or 'make' in the build dir):</div><div><br>
</div><div>cmake/ninja:</div><div>cd /your/build/dir</div><div>ninja check-lldb</div><div><br></div><div>configure/make:</div><div>cd /your/llvm/dir</div><div>cd tools/lldb/test</div><div>make</div><div><br></div><div>Both those incantations will get you a test run that does the tests without you needing to set up anything else (e.g. lldb/python paths, or architecture settings for the test run).  They'll also run the tests faster if you have multiple cores on your dev box/VM.</div>
<div><br></div><div>Let me know if you hit any trouble with that.  Particularly the cmake configuration line - the basic cmake configuration line with minimal options has never worked well for me on Linux, so I call it with a bunch of flags to specify the llvm build type and a few other details.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 16, 2014 at 11:28 PM, Matthew Gardiner <span dir="ltr"><<a href="mailto:mg11@csr.com" target="_blank">mg11@csr.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">Todd Fiala wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Matthew,<br>
<br>
One thing you might want to consider doing is adding a test to verify Kalimba ObjectFileELF parsing doesn't regress using this test here: test/functionalities/object-<u></u>file/<u></u>TestImageListMultiArchitecture<u></u>.py.<br>

</blockquote></div>
<..snipped..><br>
<br>
Ok, I see what you mean. It should be pretty easy for me to get a kalimba binary in there, and I'll figure out TestImageListMultiArchitecture<u></u>.py in a bit.<br>
<br>
<br>
Regarding testing in general, I wanted to pick your brains. Basically I'm trying (in addition to the rest of my day job!!!!) to get a box setup to run lldb test suite. I've started doing some research...<br>
<br>
First off, would I be correct in saying that the whole of test-suite is fired off by running test/dotest.py ?<br>
<br>
So when I try to run dotest.py I get:<br>
<br>
$  PATH=$PATH:~/src/main/build/<u></u>Debug+Asserts/bin/ ./dotest.py -v .<br>
...<br>
This script requires lldb.py to be in...<br>
...<br>
<br>
I remember the "[lldb-dev] Where is lldb.py?" thread and read it, determining that I then should run a generate script (buildSwigWrapperClasses.py). But this just results in a lot more pain:<br>
<br>
Running from  ~/src/main/llvm/tools/lldb/<u></u>scripts<br>
<br>
$ ./buildSwigWrapperClasses.py --srcRoot=~/src/main/llvm/<u></u>tools/lldb --targetDir=~/src/main/build/<u></u>Debug+Asserts/lib --cfgBldDir=.  -m -d<br>
<br>
....lots of errors above...<br>
./buildSwigWrapperClasses.py: line 109: syntax error near unexpected token `('<br>
./buildSwigWrapperClasses.py: line 109: `def get_help_information():'<br>
<br>
and error 2 is returned to the shell.<br>
<br>
I think I'm missing something fundamental here. I *think* it has to do with swig not getting run or something. So I see that there is a sub-dir called Python with a buildSwigPython.py file, but the comment in main say this code should not be called directly. I have swig 2.0.11 and python 2.7.5 on the box (FC-20 x86_64).<br>

<br>
Can you see anything obvious I'm doing here? Or do you have a simpler recipe for building lldb.py?<br>
<br>
I appreciate you're probably off to bed now :-) but if you have any tips you could send me tomorrow I'd really appreciate it!<br>
<br>
thanks<br>
Matt<br>
<br>
<br>
<br>
<br>
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<br>

More information can be found at <a href="http://www.csr.com" target="_blank">www.csr.com</a>. Keep up to date with CSR on our technical blog, <a href="http://www.csr.com/blog" target="_blank">www.csr.com/blog</a>, CSR people blog, <a href="http://www.csr.com/people" target="_blank">www.csr.com/people</a>, YouTube, <a href="http://www.youtube.com/user/CSRplc" target="_blank">www.youtube.com/user/CSRplc</a>, Facebook, <a href="http://www.facebook.com/pages/CSR/191038434253534" target="_blank">www.facebook.com/pages/CSR/<u></u>191038434253534</a>, or follow us on Twitter at <a href="http://www.twitter.com/CSR_plc" target="_blank">www.twitter.com/CSR_plc</a>.<br>

New for 2014, you can now access the wide range of products powered by aptX at <a href="http://www.aptx.com" target="_blank">www.aptx.com</a>.<div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div>