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 10
10
- ' main'
11
11
paths :
12
12
- ' clang/bindings/python/**'
13
- - ' clang/test/bindings/python/**'
14
13
- ' clang/tools/libclang/**'
14
+ - ' clang/CMakeList.txt'
15
15
- ' .github/workflows/libclang-python-tests.yml'
16
16
- ' .github/workflows/llvm-project-tests.yml'
17
17
pull_request :
18
18
paths :
19
19
- ' clang/bindings/python/**'
20
- - ' clang/test/bindings/python/**'
21
20
- ' clang/tools/libclang/**'
21
+ - ' clang/CMakeList.txt'
22
22
- ' .github/workflows/libclang-python-tests.yml'
23
23
- ' .github/workflows/llvm-project-tests.yml'
24
24
33
33
python-version : ["3.8", "3.13"]
34
34
uses : ./.github/workflows/llvm-project-tests.yml
35
35
with :
36
- build_target : libclang
37
- run : |
38
- llvm-lit -v tools/clang/test --filter=bindings.sh
36
+ build_target : check-clang-python
39
37
projects : clang
40
38
# There is an issue running on "windows-2019".
41
39
# See https://github.com/llvm/llvm-project/issues/76601#issuecomment-1873049082.
Original file line number Diff line number Diff line change @@ -211,6 +211,17 @@ add_custom_target(clang-test)
211
211
add_dependencies (clang-test check-clang )
212
212
set_target_properties (clang-test PROPERTIES FOLDER "Clang/Tests" )
213
213
214
+ # Allow running Clang Python binding tests separately from CI.
215
+ add_lit_testsuite (check-clang-python "Running the Clang Python tests"
216
+ ${CMAKE_CURRENT_BINARY_DIR}
217
+ #LIT ${LLVM_LIT}
218
+ PARAMS ${CLANG_TEST_PARAMS}
219
+ DEPENDS ${CLANG_TEST_DEPS}
220
+ ARGS ${CLANG_TEST_EXTRA_ARGS} --filter=bindings.sh
221
+ # Avoid running tests twice.
222
+ EXCLUDE_FROM_CHECK_ALL
223
+ )
224
+
214
225
# FIXME: This logic can be removed once all buildbots have moved
215
226
# debuginfo-test from clang/test to llvm/projects or monorepo.
216
227
if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /debuginfo-tests )
You can’t perform that action at this time.
0 commit comments