[llvm-dev] can llvm-lit pass output of one RUN command as an argument to another RUN command
don hinton via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 2 16:22:56 PDT 2017
Btw, this works on *nix type systems, but I'm not sure about Windows.
On Wed, Aug 2, 2017 at 4:06 PM, don hinton <hintonda at gmail.com> wrote:
> Is there a way to do this with llvm-lit, i.e., use the equivalent of
> backticks?
>
> foo takes a single argument, but doesn't read from stdin.
>
> // RUN foo some_arg > %t; FileCheck %s < %t
> // RUN foo `cat %t` | FileCheck --check-prefix=INVERSE
>
> // CHECK: {{^[0-9]+$}}
> // INVERSE: some_arg
>
> thanks...
> don
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170802/75c661ec/attachment.html>
More information about the llvm-dev
mailing list