summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:32:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-07-26 22:32:58 +0000
commitc1bb2d432501dabdfcb1e78eccfb7377664c4d14 (patch)
tree42e3584774cbe9c50693b8509b5bd292e644b590 /docs
parente7e612f22fb3993b490827bf341196def60d8871 (diff)
downloadllvm-c1bb2d432501dabdfcb1e78eccfb7377664c4d14.tar.gz
llvm-c1bb2d432501dabdfcb1e78eccfb7377664c4d14.tar.bz2
llvm-c1bb2d432501dabdfcb1e78eccfb7377664c4d14.tar.xz
Use pipefail when available.
This change makes test with RUN lines like RUN: opt ... | FileCheck fail if opt fails, even if it prints what FileCheck wants. Enabling this found some interesting cases of broken tests that were not being noticed because opt (or some other tool) was crashing late. Pipefail is used when the shell supports it or when using the internal python based tester. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187261 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/CommandGuide/lit.rst4
-rw-r--r--docs/ReleaseNotes.rst4
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/CommandGuide/lit.rst b/docs/CommandGuide/lit.rst
index 2f6d9a1556..a4681fb34c 100644
--- a/docs/CommandGuide/lit.rst
+++ b/docs/CommandGuide/lit.rst
@@ -316,6 +316,10 @@ executed, two important global variables are predefined:
*on_clone* function will generally modify), and (3) the test path to the new
directory being scanned.
+ **pipefail** Normally a test using a shell pipe fails if any of the commands
+ on the pipe fail. If this is not desired, setting this variable to false
+ makes the test fail only if the last command in the pipe fails.
+
TEST DISCOVERY
~~~~~~~~~~~~~~
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index 93f12e5974..e776dce29a 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -41,6 +41,10 @@ Non-comprehensive list of changes in this release
functionality, or simply have a lot to talk about), see the `NOTE` below
for adding a new subsection.
+* The regression tests now fail if any command in a pipe fails. To disable it in
+ a directory, just add ``config.pipefail = False`` to its ``lit.local.cfg``.
+ See :doc:`Lit <CommandGuide/lit>` for the details.
+
* Support for exception handling has been removed from the old JIT. Use MCJIT
if you need EH support.