[PATCH] D150856: [lit] Add %{for-each-file} substitution

Vlad Serebrennikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 25 23:10:34 PDT 2023


Endill added a comment.

In D150856#4447419 <https://reviews.llvm.org/D150856#4447419>, @jdenny wrote:

> I don't yet understand what your `%lit-generate-directives` does, but I don't have time to investigate right now.

In a nutshell, It tells lit to treat contents of a `.py` file as inline PYTHON directives.

> Also, if `RUN: cmd` is treated as an alias for `PYTHON: lit.run(cmd_escaped_for_python)`, then it should be easier to annotate existing lit tests with `PYTHON: if cond:` directives and similar.

Can you elaborate on a second half of this sentence?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150856/new/

https://reviews.llvm.org/D150856



More information about the llvm-commits mailing list