[all-commits] [llvm/llvm-project] dd3fee: [lit] Print substitutions with --show-suites

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Apr 13 09:01:34 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dd3feecd7304bf611aa49247383fb78f51a9a6ab
      https://github.com/llvm/llvm-project/commit/dd3feecd7304bf611aa49247383fb78f51a9a6ab
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-04-13 (Mon, 13 Apr 2020)

  Changed paths:
    M llvm/utils/lit/lit/main.py
    M llvm/utils/lit/tests/Inputs/discovery/lit.cfg
    M llvm/utils/lit/tests/discovery.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list