[all-commits] [llvm/llvm-project] faf415: [lit] Recursively expand substitutions

Louis Dionne via All-commits all-commits at lists.llvm.org
Fri Mar 27 06:25:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: faf415a1dec1b7f500b6938152dcd6b5a0845e4a
      https://github.com/llvm/llvm-project/commit/faf415a1dec1b7f500b6938152dcd6b5a0845e4a
  Author: Louis Dionne <ldionne at apple.com>
  Date:   2020-03-27 (Fri, 27 Mar 2020)

  Changed paths:
    M llvm/docs/CommandGuide/lit.rst
    M llvm/utils/lit/lit/LitConfig.py
    M llvm/utils/lit/lit/TestRunner.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-no-limit/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-no-limit/test.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-within-limit/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/does-not-substitute-within-limit/test.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/negative-integer/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/negative-integer/test.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/not-an-integer/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/not-an-integer/test.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/set-to-none/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/set-to-none/test.py
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/substitutes-within-limit/lit.cfg
    A llvm/utils/lit/tests/Inputs/shtest-recursive-substitution/substitutes-within-limit/test.py
    A llvm/utils/lit/tests/shtest-recursive-substitution.py
    M llvm/utils/lit/tests/unit/TestRunner.py

  Log Message:
  -----------
  [lit] Recursively expand substitutions

This allows defining substitutions in terms of other substitutions. For
example, a %build substitution could be defined in terms of a %cxx
substitution as '%cxx %s -o %t.exe' and the script would be properly
expanded.

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




More information about the All-commits mailing list