<div dir="ltr">You shouldn't have to point it anywhere. Just run lldb/test/dotest.py the same way you're currently running it and it should work if you use the right script. That use_lldb_suite also adds the location of the test folder to sys.path so it can find it.<div><br></div><div>The reason all this happened and everything was moved was to make a "real" python package out of the core of the test suite, which allows lots of functionality to be more easily reused both within the test suite itself, as well as within other scripts that are not part of the test suite.</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 2, 2015 at 2:43 PM Chuck Ries <<a href="mailto:Chuck.Ries@microsoft.com">Chuck.Ries@microsoft.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">I was confused because all the tests moved to the packages directory. Do I need to run the dotest.py from the lldb/test/ directory but point it to the individual
tests within the packages directory?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Zachary Turner [mailto:<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>]
<br>
<b>Sent:</b> Wednesday, December 2, 2015 2:41 PM<br>
<b>To:</b> Chuck Ries <<a href="mailto:Chuck.Ries@microsoft.com" target="_blank">Chuck.Ries@microsoft.com</a>>; <a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<b>Subject:</b> Re: [lldb-dev] Running lldb tests?<u></u><u></u></span></p></div></div><div lang="EN-US" link="blue" vlink="purple"><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Couple things:<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">1) Python 2.7.10 is still the officially supported way to run tests for all platforms<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">2) Python 3 is only supported for Windows and it's experimental. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">3) At some point I will drop support for 2.x on Windows, but 2.x will always be the officially supported way to run tests on every other platform.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Are you running lldb/test/dotest.py or lldb/packages/lldbsuite/test/dotest.py? You should be running the former. The `progress` module is located in lldb/third_party/Python/module/progress. That should be in your `sys.path` because when
you run `lldb/test/dotest.py` the first line calls `import use_lldb_suite`, which modifies `sys.path` to contain this and a few other directories.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Hopefully that gives you a starting point to diagnose what's wrong.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Wed, Dec 2, 2015 at 2:35 PM Chuck Ries via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal">I am trying to run the lldb tests with dotest.py but it is failing with
<u></u><u></u></p>
<p class="MsoNormal">chuckr-mac-build:test chuckr$ python ./dotest.py<u></u><u></u></p>
<p class="MsoNormal"><span style="background:yellow">Traceback (most recent call last):</span><u></u><u></u></p>
<p class="MsoNormal"><span style="background:yellow"> File "./dotest.py", line 30, in <module></span><u></u><u></u></p>
<p class="MsoNormal"><span style="background:yellow"> import progress</span><u></u><u></u></p>
<p class="MsoNormal"><span style="background:yellow">ImportError: No module named progress</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">It looks like some work was done to move to python 3 and I am using Python 2.7.10. The info at
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flldb.llvm.org%2ftest.html&data=01%7c01%7cChuck.Ries%40microsoft.com%7cc368de79692244e59c3608d2fb69ad67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=qxhosJ10KOMvHYU8ZpmthqFuWa%2b%2bzDEPN5Abm4d1KX0%3d" target="_blank">
http://lldb.llvm.org/test.html</a> does not seem to be up to date. Is there any fix to get the test script working?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">ChuckR<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.llvm.org%2fcgi-bin%2fmailman%2flistinfo%2flldb-dev&data=01%7c01%7cChuck.Ries%40microsoft.com%7cc368de79692244e59c3608d2fb69ad67%7c72f988bf86f141af91ab2d7cd011db47%7c1&sdata=lLp86pvBqEmFpt9q%2btFG2vXwJYN2QyLRQDbhn8X%2bjbQ%3d" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div></div></blockquote></div>