[PATCH] D154987: [lit] Implement PYTHON directive and config.prologue

Joel E. Denny via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 17 07:10:49 PDT 2023


jdenny updated this revision to Diff 556911.
jdenny edited the summary of this revision.
jdenny added a comment.

Rebased onto PR #66408 <https://github.com/llvm/llvm-project/pull/66408>, which includes recent changes from main.  Within `TestRunner.py`, this rebase required moving `runShScript` and `PythonDirectiveLitAPI` into `runOnce` to make the per-run `--per-test-coverage` file index visible to `lit.run(cmd)` calls.  Extended tests to cover that case.

Applied python formatting suggestions from darker.


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

https://reviews.llvm.org/D154987

Files:
  libcxx/utils/libcxx/test/format.py
  llvm/docs/TestingGuide.rst
  llvm/utils/lit/lit/TestRunner.py
  llvm/utils/lit/lit/TestingConfig.py
  llvm/utils/lit/tests/Inputs/per-test-coverage-by-lit-cfg/per-test-coverage-by-lit-cfg.py
  llvm/utils/lit/tests/Inputs/per-test-coverage/per-test-coverage.py
  llvm/utils/lit/tests/Inputs/shtest-define/errors/no-run.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/README.md
  llvm/utils/lit/tests/Inputs/shtest-python/errors/incomplete-python.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/inconsistent-indent-2-lines.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/inconsistent-indent-3-lines.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/internal-api-inaccessible.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/lit.prologue.py
  llvm/utils/lit/tests/Inputs/shtest-python/errors/python-syntax-error-1-line.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/python-syntax-error-2-lines.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/python-syntax-error-3-lines.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/python-syntax-error-leading-indent.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/trace-compile-error.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/trace-exception.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/trace-prologue-exception.txt
  llvm/utils/lit/tests/Inputs/shtest-python/errors/trace-run-compile-error.txt
  llvm/utils/lit/tests/Inputs/shtest-python/exampleModule.py
  llvm/utils/lit/tests/Inputs/shtest-python/file.txt
  llvm/utils/lit/tests/Inputs/shtest-python/has.txt
  llvm/utils/lit/tests/Inputs/shtest-python/import.txt
  llvm/utils/lit/tests/Inputs/shtest-python/lit.cfg
  llvm/utils/lit/tests/Inputs/shtest-python/lit.prologue.py
  llvm/utils/lit/tests/Inputs/shtest-python/no-shell-commands.txt
  llvm/utils/lit/tests/Inputs/shtest-python/prologue.txt
  llvm/utils/lit/tests/Inputs/shtest-python/shell-affects-python.txt
  llvm/utils/lit/tests/Inputs/shtest-python/substs-affects-python.txt
  llvm/utils/lit/tests/Inputs/shtest-python/trace.txt
  llvm/utils/lit/tests/Inputs/shtest-python/write-to-stderr.py
  llvm/utils/lit/tests/Inputs/shtest-python/write-to-stdout-and-stderr.py
  llvm/utils/lit/tests/lit.cfg
  llvm/utils/lit/tests/per-test-coverage-by-lit-cfg.py
  llvm/utils/lit/tests/per-test-coverage.py
  llvm/utils/lit/tests/shtest-keyword-parse-errors.py
  llvm/utils/lit/tests/shtest-python.py
  llvm/utils/lit/tests/shtest-shell.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154987.556911.patch
Type: text/x-patch
Size: 82733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230917/b922f260/attachment.bin>


More information about the llvm-commits mailing list