hanchenye-llvm-project/llvm
Joel E. Denny 2152ae985c [lit] Make internal diff work in pipelines
When using lit's internal shell, RUN lines like the following
accidentally execute an external `diff` instead of lit's internal
`diff`:

```
 # RUN: program | diff file -
 # RUN: not diff file1 file2 | FileCheck %s
```

Such cases exist now, in `clang/test/Analysis` for example.  We are
preparing patches to ensure lit's internal `diff` is called in such
cases, which will then fail because lit's internal `diff` cannot
currently be used in pipelines and doesn't recognize `-` as a
command-line option.

To enable pipelines, this patch moves lit's `diff` implementation into
an out-of-process script, similar to lit's `cat` implementation.  A
follow-up patch will implement `-` to mean stdin.

Reviewed By: probinson, stella.stamenova

Differential Revision: https://reviews.llvm.org/D66574

llvm-svn: 372035
2019-09-16 21:22:29 +00:00
..
benchmarks
bindings
cmake [CMake] Don't pass all LLVM_COMPILE_FLAGS to the C compiler 2019-09-10 14:19:52 +00:00
docs [Docs] Bug fix for docs homepage 2019-09-16 20:29:56 +00:00
examples [Orc] Roll back ThreadPool to std::function 2019-09-13 11:59:51 +00:00
include [Coverage] Speed up file-based queries for coverage info, NFC 2019-09-16 19:08:44 +00:00
lib [Coverage] Speed up file-based queries for coverage info, NFC 2019-09-16 19:08:44 +00:00
projects
resources
runtimes Revert "Adding support for overriding LLVM_ENABLE_RUNTIMES for runtimes builds." 2019-09-11 00:43:35 +00:00
test [NFC] Test commit access 2019-09-16 20:44:15 +00:00
tools [LTO][Legacy] Add new C inferface to query libcall functions 2019-09-16 18:49:54 +00:00
unittests [Remarks][NFC] Forward declare ParsedStringTable 2019-09-13 17:27:28 +00:00
utils [lit] Make internal diff work in pipelines 2019-09-16 21:22:29 +00:00
.arcconfig
.clang-format
.clang-tidy
.gitattributes Fix the "git modified" issue on the preserve-comments-crlf.s. 2019-09-10 12:17:49 +00:00
.gitignore
CMakeLists.txt Revert "[utils] Implement the llvm-locstats tool" 2019-09-10 14:48:52 +00:00
CODE_OWNERS.TXT
CREDITS.TXT
LICENSE.TXT
LLVMBuild.txt
README.txt
RELEASE_TESTERS.TXT
configure
llvm.spec.in

README.txt

The LLVM Compiler Infrastructure
================================

This directory and its subdirectories contain source code for LLVM,
a toolkit for the construction of highly optimized compilers,
optimizers, and runtime environments.

LLVM is open source software. You may freely distribute it under the terms of
the license agreement found in LICENSE.txt.

Please see the documentation provided in docs/ for further
assistance with LLVM, and in particular docs/GettingStarted.rst for getting
started with LLVM and docs/README.txt for an overview of LLVM's
documentation setup.

If you are writing a package for LLVM, see docs/Packaging.rst for our
suggestions.