HomePhabricator

[lit] Print substitutions with --show-suites

Authored by ldionne on Apr 9 2020, 11:34 AM.

Description

[lit] Print substitutions with --show-suites

We already print available features, and it can be useful to print
substitutions as well since those are a pretty fundamental part of
a test suite. We could also consider printing other things like the
test environment, however the need doesn't appear to be as strong.

As a fly-by fix, we also always print available features, even when
there are none.

Before:

$ lit -sv libcxx/test --show-suites
-- Test Suites --
  libc++ - 6350 tests
    Source Root: [...]
    Exec Root  : [...]
    Available Features : -faligned-allocation -fsized-deallocation [...]

After:

$ lit -sv libcxx/test --show-suites
-- Test Suites --
  libc++ - 6350 tests
    Source Root: [...]
    Exec Root  : [...]
    Available Features: -faligned-allocation -fsized-deallocation [...]
    Available Substitutions: %{build_module} => [...]
                             %{build} => %{cxx} -o [...]

Differential Revision: https://reviews.llvm.org/D77818

Details

Committed
ldionneApr 13 2020, 9:01 AM
Differential Revision
D77818: [lit] Print substitutions with --show-suites
Parents
rGa59ba3384e9d: Fix an indent.
Branches
Unknown
Tags
Unknown