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

Alex Bradbury via llvm-dev llvm-dev at lists.llvm.org
Tue Aug 16 12:39:39 PDT 2016


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


More information about the llvm-dev mailing list