aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorJannick Kremer <jannick.kremer@mailbox.org>2025-07-03 12:56:54 +0100
committerGitHub <noreply@github.com>2025-07-03 13:56:54 +0200
commit2532bde0388980ac7e299b02bc554e6fde6c686e (patch)
tree854b6ac2e361da295f134c8ba6682cf1cbdff648 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent76274eb2b3439aac6991c6b505248e00627e5693 (diff)
downloadllvm-2532bde0388980ac7e299b02bc554e6fde6c686e.zip
llvm-2532bde0388980ac7e299b02bc554e6fde6c686e.tar.gz
llvm-2532bde0388980ac7e299b02bc554e6fde6c686e.tar.bz2
[clang][python][test] Move python binding tests to lit framework (#146844)
As discussed in PR #142353, the current testsuite of the `clang` Python bindings has several issues: - It `libclang.so` cannot be loaded into `python` to run the testsuite, the whole `ninja check-all` aborts. - The result of running the testsuite isn't report like the `lit`-based tests, rendering them almost invisible. - The testsuite is disabled in a non-obvious way (`RUN_PYTHON_TESTS`) in `tests/CMakeLists.txt`, which again doesn't show up in the test results. All these issues can be avoided by integrating the Python bindings tests with `lit`, which is what this patch does: - The actual test lives in `clang/test/bindings/python/bindings.sh` and is run by `lit`. - The current `clang/bindings/python/tests` directory (minus the now-subperfluous `CMakeLists.txt`) is moved into the same directory. - The check if `libclang` is loadable (originally from PR #142353) is now handled via a new `lit` feature, `libclang-loadable`. - The various ways to disable the tests have been turned into `XFAIL`s as appropriate. This isn't complete and not completely tested yet. Tested on `sparc-sun-solaris2.11`, `sparcv9-sun-solaris2.11`, `i386-pc-solaris2.11`, `amd64-pc-solaris2.11`, `i686-pc-linux-gnu`, and `x86_64-pc-linux-gnu`. Co-authored-by: Rainer Orth <ro@gcc.gnu.org>
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions