[llvm] r251806 - lit: Add '-a' option to display commands+output of all tests
Sean Silva via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 4 20:32:28 PST 2015
Does this require an update to http://llvm.org/docs/CommandGuide/lit.html
(docs/CommandGuide/lit.rst) ?
On Mon, Nov 2, 2015 at 8:13 AM, Matthias Braun via llvm-commits <
llvm-commits at lists.llvm.org> wrote:
> Author: matze
> Date: Mon Nov 2 10:13:46 2015
> New Revision: 251806
>
> URL: http://llvm.org/viewvc/llvm-project?rev=251806&view=rev
> Log:
> lit: Add '-a' option to display commands+output of all tests
>
> The existing -v option only displays commands and outputs for failed
> tests, the newly introduced -a displays it for all executed tests.
>
> Modified:
> llvm/trunk/utils/lit/lit/main.py
>
> Modified: llvm/trunk/utils/lit/lit/main.py
> URL:
> http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=251806&r1=251805&r2=251806&view=diff
>
> ==============================================================================
> --- llvm/trunk/utils/lit/lit/main.py (original)
> +++ llvm/trunk/utils/lit/lit/main.py Mon Nov 2 10:13:46 2015
> @@ -56,9 +56,11 @@ class TestingProgressDisplay(object):
> self.completed, self.numTests))
>
> # Show the test failure output, if requested.
> - if test.result.code.isFailure and self.opts.showOutput:
> - print("%s TEST '%s' FAILED %s" % ('*'*20, test.getFullName(),
> - '*'*20))
> + if (test.result.code.isFailure and self.opts.showOutput) or \
> + self.opts.showAllOutput:
> + if test.result.code.isFailure:
> + print("%s TEST '%s' FAILED %s" % ('*'*20,
> test.getFullName(),
> + '*'*20))
> print(test.result.output)
> print("*" * 20)
>
> @@ -161,7 +163,10 @@ def main(builtinParameters = {}):
> help="Reduce amount of output",
> action="store_true", default=False)
> group.add_option("-v", "--verbose", dest="showOutput",
> - help="Show all test output",
> + help="Show test output for failures",
> + action="store_true", default=False)
> + group.add_option("-a", "--show-all", dest="showAllOutput",
> + help="Display all commandlines and output",
> action="store_true", default=False)
> group.add_option("-o", "--output", dest="output_path",
> help="Write test results to the provided path",
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151104/e89c2069/attachment.html>
More information about the llvm-commits
mailing list