[llvm-bugs] [Bug 30677] New: Add option to lit that prints intermediate commands, regardless or whether the test passed or failed

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Oct 12 09:00:28 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30677

            Bug ID: 30677
           Summary: Add option to lit that prints intermediate commands,
                    regardless or whether the test passed or failed
           Product: Test Suite
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: lit
          Assignee: unassignedbugs at nondot.org
          Reporter: modocache at gmail.com
                CC: daniel at zuster.org, llvm-bugs at lists.llvm.org
    Classification: Unclassified

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)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161012/a5eaba4d/attachment.html>


More information about the llvm-bugs mailing list