[libcxx-commits] [PATCH] D154987: [lit] Implement PYTHON directive and config.prologue
Joel E. Denny via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Aug 27 08:26:39 PDT 2023
jdenny updated this revision to Diff 553795.
jdenny added a comment.
Replace `<lit test>` with the actual test file name when compiling PYTHON lines. This info helps the python interpreter produce more informative diagnostics, including not only the test file name but also sometimes full PYTHON lines quoted from the test file. After a future patch, I expect it to also help when setting breakpoints while using a python debugger on lit test files.
Also, set `__file__` (normally defined in python scripts) to the test file name.
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/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/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.553795.patch
Type: text/x-patch
Size: 77434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230827/9ad95c4e/attachment-0001.bin>
More information about the libcxx-commits
mailing list