<div dir="ltr">Yea. And I should also make the if __name__ == "__main__" check actually work by putting it above the import statements. It's supposed to print out a message and tell you what to do when you accidentally run that, but it doesn't get that far because it fails to import a module.<br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 2, 2015 at 3:15 PM Jim Ingham <<a href="mailto:jingham@apple.com">jingham@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Should we change the name of lldb/packages/Python/lldbsuite/dotest.py to something else to avoid this confusion?<br>
<br>
Jim<br>
<br>
> On Dec 2, 2015, at 2:48 PM, Zachary Turner via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br>
><br>
> 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.<br>
><br>
> 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.<br>
><br>
> On Wed, Dec 2, 2015 at 2:43 PM Chuck Ries <<a href="mailto:Chuck.Ries@microsoft.com" target="_blank">Chuck.Ries@microsoft.com</a>> wrote:<br>
> 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?<br>
><br>
><br>
><br>
> From: Zachary Turner [mailto:<a href="mailto:zturner@google.com" target="_blank">zturner@google.com</a>]<br>
> Sent: Wednesday, December 2, 2015 2:41 PM<br>
> To: 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>
> Subject: Re: [lldb-dev] Running lldb tests?<br>
><br>
><br>
><br>
> Couple things:<br>
><br>
><br>
><br>
> 1) Python 2.7.10 is still the officially supported way to run tests for all platforms<br>
><br>
> 2) Python 3 is only supported for Windows and it's experimental.<br>
><br>
> 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.<br>
><br>
><br>
><br>
> 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.<br>
><br>
><br>
><br>
> Hopefully that gives you a starting point to diagnose what's wrong.<br>
><br>
><br>
><br>
> 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:<br>
><br>
> I am trying to run the lldb tests with dotest.py but it is failing with<br>
><br>
> chuckr-mac-build:test chuckr$ python ./dotest.py<br>
><br>
> Traceback (most recent call last):<br>
><br>
> File "./dotest.py", line 30, in <module><br>
><br>
> import progress<br>
><br>
> ImportError: No module named progress<br>
><br>
><br>
><br>
> 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="http://lldb.llvm.org/test.html" rel="noreferrer" 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?<br>
><br>
><br>
><br>
> ChuckR<br>
><br>
> _______________________________________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
><br>
> _______________________________________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
<br>
</blockquote></div>