<div dir="ltr">Does this require an update to <a href="http://llvm.org/docs/CommandGuide/lit.html">http://llvm.org/docs/CommandGuide/lit.html</a> (docs/CommandGuide/lit.rst) ?</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 2, 2015 at 8:13 AM, Matthias Braun via llvm-commits <span dir="ltr"><<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: matze<br>
Date: Mon Nov  2 10:13:46 2015<br>
New Revision: 251806<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=251806&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=251806&view=rev</a><br>
Log:<br>
lit: Add '-a' option to display commands+output of all tests<br>
<br>
The existing -v option only displays commands and outputs for failed<br>
tests, the newly introduced -a displays it for all executed tests.<br>
<br>
Modified:<br>
    llvm/trunk/utils/lit/lit/main.py<br>
<br>
Modified: llvm/trunk/utils/lit/lit/main.py<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=251806&r1=251805&r2=251806&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/main.py?rev=251806&r1=251805&r2=251806&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/utils/lit/lit/main.py (original)<br>
+++ llvm/trunk/utils/lit/lit/main.py Mon Nov  2 10:13:46 2015<br>
@@ -56,9 +56,11 @@ class TestingProgressDisplay(object):<br>
                                      self.completed, self.numTests))<br>
<br>
         # Show the test failure output, if requested.<br>
-        if test.result.code.isFailure and self.opts.showOutput:<br>
-            print("%s TEST '%s' FAILED %s" % ('*'*20, test.getFullName(),<br>
-                                              '*'*20))<br>
+        if (test.result.code.isFailure and self.opts.showOutput) or \<br>
+           self.opts.showAllOutput:<br>
+            if test.result.code.isFailure:<br>
+                print("%s TEST '%s' FAILED %s" % ('*'*20, test.getFullName(),<br>
+                                                  '*'*20))<br>
             print(test.result.output)<br>
             print("*" * 20)<br>
<br>
@@ -161,7 +163,10 @@ def main(builtinParameters = {}):<br>
                      help="Reduce amount of output",<br>
                      action="store_true", default=False)<br>
     group.add_option("-v", "--verbose", dest="showOutput",<br>
-                     help="Show all test output",<br>
+                     help="Show test output for failures",<br>
+                     action="store_true", default=False)<br>
+    group.add_option("-a", "--show-all", dest="showAllOutput",<br>
+                     help="Display all commandlines and output",<br>
                      action="store_true", default=False)<br>
     group.add_option("-o", "--output", dest="output_path",<br>
                      help="Write test results to the provided path",<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div>