<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Add option to lit that prints intermediate commands, regardless or whether the test passed or failed"
href="https://llvm.org/bugs/show_bug.cgi?id=30677">30677</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Add option to lit that prints intermediate commands, regardless or whether the test passed or failed
</td>
</tr>
<tr>
<th>Product</th>
<td>Test Suite
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>lit
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>modocache@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>daniel@zuster.org, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>LLVM and Swift developers frequently add `RUN: false` to their shell tests in
order to have lit stop execution and print the commands lit has run. This is
because lit only prints the commands it executed when the test fails.
Add an option to lit that prints these commands regardless of whether the test
passes. For example, it could look something like this:
lit -v --print-commands /path/to/tests
SCRIPT: tests :: test-one.py Script:
--
rm -rf /path/to/tests/Output
mkdir -p /path/to/tests/Output
python /path/to/tests/test.py > /path/to/tests/Output/out.txt
FileCheck < /path/to/tests/Output/out.txt /path/to/tests/test-one.py
---
PASS: tests :: test-one.py (1 of 1)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>