File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1010 - ' main'
1111 paths :
1212 - ' clang/bindings/python/**'
13- - ' clang/test/bindings/python/**'
1413 - ' clang/tools/libclang/**'
14+ - ' clang/CMakeList.txt'
1515 - ' .github/workflows/libclang-python-tests.yml'
1616 - ' .github/workflows/llvm-project-tests.yml'
1717 pull_request :
1818 paths :
1919 - ' clang/bindings/python/**'
20- - ' clang/test/bindings/python/**'
2120 - ' clang/tools/libclang/**'
21+ - ' clang/CMakeList.txt'
2222 - ' .github/workflows/libclang-python-tests.yml'
2323 - ' .github/workflows/llvm-project-tests.yml'
2424
3333 python-version : ["3.8", "3.13"]
3434 uses : ./.github/workflows/llvm-project-tests.yml
3535 with :
36- build_target : libclang
37- run : |
38- llvm-lit -v tools/clang/test --filter=bindings.sh
36+ build_target : check-clang-python
3937 projects : clang
4038 # There is an issue running on "windows-2019".
4139 # See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
Original file line number Diff line number Diff line change @@ -205,6 +205,17 @@ add_custom_target(clang-test)
205205add_dependencies (clang-test check-clang)
206206set_target_properties (clang-test PROPERTIES FOLDER "Clang/Tests" )
207207
208+ # Allow running Clang Python binding tests separately from CI.
209+ add_lit_testsuite(check-clang-python "Running the Clang Python tests"
210+ ${CMAKE_CURRENT_BINARY_DIR}
211+ #LIT ${LLVM_LIT}
212+ PARAMS ${CLANG_TEST_PARAMS}
213+ DEPENDS ${CLANG_TEST_DEPS}
214+ ARGS ${CLANG_TEST_EXTRA_ARGS} --filter =bindings.sh
215+ # Avoid running tests twice.
216+ EXCLUDE_FROM_CHECK_ALL
217+ )
218+
208219# FIXME: This logic can be removed once all buildbots have moved
209220# debuginfo-test from clang/test to llvm/projects or monorepo.
210221if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /debuginfo-tests)
You can’t perform that action at this time.
0 commit comments