[llvm-dev] RFC: A cross platform way of using shell commands in lit tests

Daniel Berlin via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 16 12:40:31 PDT 2016


If you went this route, you'd really want toybox, which is BSD licensed,
and not written by people with a penchant for litigation :)
www.landley.net/toybox/about.html


On Tue, Aug 16, 2016 at 12:39 PM, Alex Bradbury via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> On 16 August 2016 at 17:19, Zachary Turner via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > Well, It would be nice if we could remove the GnuWin32 dependency as
> well.
> > Lots of tests use grep, sed, cd, ln, or whatever.  Anyone who's ever
> tried
> > downloading and installing GnuWin32 knows what a pain it is.  It installs
> > programs called, for example, "link" which interfere with standard
> windows
> > tools, and puts them in your path.  There are other examples of this.
> And
> > it's also HUGE.  And nobody can ever figure out how to download it
> > correctly.  Plus there are some minor differences in the tools behavior.
> >
> > I'm proposing that we replace shell commands in tests with a tool that we
> > create which implements the most common shell commands and options.
>
> How about just using busybox-w32 for find, grep, sed, and other
> standard UNIX commands https://github.com/rmyorston/busybox-w32. It's
> a single exe < 500KiB.
>
> Alex
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160816/ec927e68/attachment.html>


More information about the llvm-dev mailing list