]> granicus.if.org Git - clang/commit
[python] [tests] Support overriding library path via environment
authorMichal Gorny <mgorny@gentoo.org>
Thu, 11 Oct 2018 11:58:07 +0000 (11:58 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Thu, 11 Oct 2018 11:58:07 +0000 (11:58 +0000)
commit517f6f4f9eb1d3e7826dbdd0cee55cf023cd6dc0
tree03137debf05d69d5fcb3f159d74b8e302db156b1
parent4eb8e4f562fa0aff9e6e943b965206c17ce3b817
[python] [tests] Support overriding library path via environment

Support a new CLANG_LIBRARY_PATH environment variable for the Python
binding tests.  This variable can be used to force the bindings to load
libclang.* from a specific directory.

I plan to use this when integrating Python binding tests with the CMake
build system.  Currently, those tests load libclang.so from default
search paths, so I would have to rely on platform-specific mechanics
such as LD_LIBRARY_PATH.  Instead of copying the whole logic necessary
to handle platform differences into yet another place, it's easier to
just add a dedicated variable for this purpose.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344240 91177308-0d34-0410-b5e6-96231b3b80d8
18 files changed:
bindings/python/README.txt
bindings/python/tests/cindex/test_access_specifiers.py
bindings/python/tests/cindex/test_cdb.py
bindings/python/tests/cindex/test_code_completion.py
bindings/python/tests/cindex/test_comment.py
bindings/python/tests/cindex/test_cursor.py
bindings/python/tests/cindex/test_cursor_kind.py
bindings/python/tests/cindex/test_diagnostics.py
bindings/python/tests/cindex/test_exception_specification_kind.py
bindings/python/tests/cindex/test_file.py
bindings/python/tests/cindex/test_index.py
bindings/python/tests/cindex/test_linkage.py
bindings/python/tests/cindex/test_location.py
bindings/python/tests/cindex/test_tls_kind.py
bindings/python/tests/cindex/test_token_kind.py
bindings/python/tests/cindex/test_tokens.py
bindings/python/tests/cindex/test_translation_unit.py
bindings/python/tests/cindex/test_type.py