[lldb-dev] Test status (Linux) and run expectation question

Todd Fiala tfiala at google.com
Mon Jul 7 08:47:04 PDT 2014


Hey Randy,

Great questions.  See a few threads we had on this a while back when I
started looking into this:

http://lists.cs.uiuc.edu/pipermail/lldb-dev/2014-March/003470.html
http://lists.cs.uiuc.edu/pipermail/lldb-dev/2014-March/003474.html

> I'm seeing a lot of "UNSUPPORTED" tests when I run on Linux and that
makes me wonder how much test coverage I'm actually getting if I run those
tests before submitting patches

Roughly half the tests won't run under Linux on the local test suite.
 MacOSX has two different mechanisms for handling debug info packaging, so
they test a large swath of lldb two ways, one of which isn't appropriate
for Linux.  Those will all show as skipped.

Back in March I did a few things on Linux:

   - Went through all the tests that were entirely disabled.  I turned them
   on, and if they made sense to run at all on Linux, I saw if they either
   always failed or always succeeded.  If they did, I turned them on in the
   normal state (where they are expected to pass).  Those that always failed I
   marked as XFAIL (expected failure).  Those that passed intermittently for
   me I marked as skipped to avoid noise and ensured there was at least one
   bug tracking them in bugzilla.
   - Enabled code coverage for the local Linux test run.  As expected, much
   of the remote functionality wasn't covered, but a non-trivial amount of the
   code was hit by the tests running on Linux.  When I eventually get a build
   bot up, I'm hoping to include a code coverage run for local tests, so we
   can get an idea of which code is tested by the local test suite.  (Soon I
   will have lldb-platform running for Linux x86-based, in which case we can
   run the remote suite as well).

My goal at the time was to find out just how bad the state of the Linux
code was w/r/t the MacOSX side.  It ended up being not quite as bad as I
expected due to some of that info I published.

I have several people on my team now that are working their way through the
bug database and will be making a point of correcting the more egregious
issues on Linux.  We're working our way towards getting Android working via
the lldb-gdbserver (llgs) remote support.

Hope that helps!

Sincerely,
Todd Fiala


On Sun, Jul 6, 2014 at 6:46 PM, Randy Smith <rdsmith at chromium.org> wrote:

>
> Two questions:
> * What is the expectation as to which tests will be run before submission
> of patches?
> * What is the current status for the Linux tests?  Is anyone already
> looking at bringing the test coverage to parity with Darwin?
>
> I'm seeing a lot of "UNSUPPORTED" tests when I run on Linux and that makes
> me wonder how much test coverage I'm actually getting if I run those tests
> before submitting patches (though of the 616 UNSUPPORTED tests on Linux,
> all but 186 seem to involve dsym, which is probably ok to be unsupported on
> Linux).  So I'm wondering about what the expectations are for test runs
> before patch submission, and how easily I can meet those expectations if my
> primary work environment is Linux.
>
> The context is that I'm trying to learn enough about lldb to make real
> contributions, and I'm doing that by first trying to use it and make it
> work well as my primary debugger in my usual work environment (Linux
> targeting chromium).
>
> Thanks in advance for any enlightenment ...
>
> -- Randy Smith
>
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>


-- 
Todd Fiala | Software Engineer | tfiala at google.com | 650-943-3180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20140707/8711ed62/attachment.html>


More information about the lldb-dev mailing list