diff options
author | Michal Gorny <mgorny@gentoo.org> | 2018-10-11 11:58:14 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2018-10-11 11:58:14 +0000 |
commit | 0f0140520db5ffd69ce824e68230550f92e96f62 (patch) | |
tree | 48a7be004430a68157c90503c99351f851d12ead /bindings | |
parent | 517f6f4f9eb1d3e7826dbdd0cee55cf023cd6dc0 (diff) |
[tests] Include Python binding tests in CMake rules
Add a new CMake rule check-clang-python to run the Python bindings'
test suite, and include it in check-all.
Differential Revision: https://reviews.llvm.org/D52840
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344241 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/tests/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bindings/python/tests/CMakeLists.txt b/bindings/python/tests/CMakeLists.txt new file mode 100644 index 0000000000..66758a3f2a --- /dev/null +++ b/bindings/python/tests/CMakeLists.txt @@ -0,0 +1,7 @@ +# Test target to run Python test suite from main build. + +add_custom_target(check-clang-python + COMMAND CLANG_LIBRARY_PATH=$<TARGET_FILE_DIR:libclang> ${PYTHON_EXECUTABLE} -m unittest discover + DEPENDS libclang + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..) +add_dependencies(check-all check-clang-python) |