[lldb-dev] Using FileCheck in lldb inline tests
Zachary Turner via lldb-dev
lldb-dev at lists.llvm.org
Tue Aug 14 18:07:16 PDT 2018
On Tue, Aug 14, 2018 at 5:56 PM Vedant Kumar <vsk at apple.com> wrote:
>
>
> On Aug 14, 2018, at 5:34 PM, Zachary Turner <zturner at google.com> wrote:
>
> I’ve thought about this in the past but the conclusion I came to is that
> lldbinline tests are actually just filecheck tests in disguise. Why do we
> need both? I’d rather delete the lldbinline infrastructure entirely and
> make a new lit TestFormat that basically does what lldbinline already does
>
>
> An inline test does more than simply pattern-matching input. It builds a
> program, sets breakpoints, etc. I'd rather make this existing
> infrastructure easier to use than come up with something new.
>
> vedant
>
Right, but only one specific type of lit test depends on pattern matching,
and those are the SHTest format tests. You can make an arbitrary test
format, including one that builds programs, set breakpoints etc. the
format and structure of an lldbinline test need not even change at all
(except that I think we could eliminate the .py file). The lldbinline
tests are about as close to a drop in fit for lit as we can get, the only
thing that needs to happen is the code in lldbinline.py needs to move to
something called InlineTestFormat.py and then be hooked into lit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180814/82ff35f0/attachment.html>
More information about the lldb-dev
mailing list