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
    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 :: Script:
    rm -rf /path/to/tests/Output
    mkdir -p /path/to/tests/Output
    python /path/to/tests/ > /path/to/tests/Output/out.txt
    FileCheck < /path/to/tests/Output/out.txt /path/to/tests/
    PASS: tests :: (1 of 1)

You are receiving this mail because:
You are on the CC list for the bug.
llvm-bugs mailing list

Reply via email to