diff options
author | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-04-24 18:43:25 +0000 |
---|---|---|
committer | Joel E. Denny <jdenny.ornl@gmail.com> | 2018-04-24 18:43:25 +0000 |
commit | 8a475307bd2fdc1a414d7f0d72c6d1a40e831b3d (patch) | |
tree | c137bd5bc6f7a94466d179043dd3bc1f014d3f5d /llvm/docs/CommandGuide/lit.rst | |
parent | 080436fd0f0a14f3b39a25242f4bb6bee8f741af (diff) | |
download | bcm5719-llvm-8a475307bd2fdc1a414d7f0d72c6d1a40e831b3d.tar.gz bcm5719-llvm-8a475307bd2fdc1a414d7f0d72c6d1a40e831b3d.zip |
[lit] Report line number for failed RUN command
When debugging test failures with -vv (or -v in the case of the
internal shell), this makes it easier to locate the RUN line that
failed. For example, clang's test/Driver/linux-ld.c has 892 total RUN
lines, and clang's test/Driver/arm-cortex-cpus.c has 424 RUN lines
after concatenation for line continuations.
When reading the generated shell script, this also makes it easier to
locate the RUN line that produced each command.
To support reporting RUN line numbers in the case of the internal
shell, this patch extends the internal shell to support the null
command, ":", except pipelines are not supported.
Reviewed By: asmith, delcypher
Differential Revision: https://reviews.llvm.org/D44598
llvm-svn: 330755
Diffstat (limited to 'llvm/docs/CommandGuide/lit.rst')
-rw-r--r-- | llvm/docs/CommandGuide/lit.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/lit.rst b/llvm/docs/CommandGuide/lit.rst index fbe1a9ab184..11337696eb5 100644 --- a/llvm/docs/CommandGuide/lit.rst +++ b/llvm/docs/CommandGuide/lit.rst @@ -85,6 +85,8 @@ OUTPUT OPTIONS Echo all commands to stdout, as they are being executed. This can be valuable for debugging test failures, as the last echoed command will be the one which has failed. + To help you find the source RUN line, :program:`lit` inserts a no-op ``:`` + command with argument ``'RUN: at line N'`` before each command pipeline. This option implies ``--verbose``. .. option:: -a, --show-all |