[lldb-dev] Running lldb tests?

Chuck Ries via lldb-dev lldb-dev at lists.llvm.org
Wed Dec 2 14:43:36 PST 2015


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?

From: Zachary Turner [mailto:zturner at google.com]
Sent: Wednesday, December 2, 2015 2:41 PM
To: Chuck Ries <Chuck.Ries at microsoft.com>; lldb-dev at lists.llvm.org
Subject: Re: [lldb-dev] Running lldb tests?

Couple things:

1) Python 2.7.10 is still the officially supported way to run tests for all platforms
2) Python 3 is only supported for Windows and it's experimental.
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.

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.

Hopefully that gives you a starting point to diagnose what's wrong.

On Wed, Dec 2, 2015 at 2:35 PM Chuck Ries via lldb-dev <lldb-dev at lists.llvm.org<mailto:lldb-dev at lists.llvm.org>> wrote:
I am trying to run the lldb tests with dotest.py but it is failing with
chuckr-mac-build:test chuckr$ python ./dotest.py
Traceback (most recent call last):
  File "./dotest.py", line 30, in <module>
    import progress
ImportError: No module named progress

It looks like some work was done to move to python 3 and I am using Python 2.7.10. The info at http://lldb.llvm.org/test.html<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> does not seem to be up to date. Is there any fix to get the test script working?

ChuckR
_______________________________________________
lldb-dev mailing list
lldb-dev at lists.llvm.org<mailto:lldb-dev at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20151202/5eb2a493/attachment-0001.html>


More information about the lldb-dev mailing list