Skip to content

Commit cb74d2e

Browse files
committed
[clangd] Make bin/llvm-lit run standalone clangd tests
Summary: Currently clangd lit tests can't be run in isolation because we don't set some of the config parameters. This enables running ./bin/llvm-lit ../clang-tools-extra/clangd/test/ or any other test in that subdirectory. Reviewers: sammccall Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73538
1 parent 0d17410 commit cb74d2e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clang-tools-extra/clangd/test/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ endforeach()
2929

3030
configure_lit_site_cfg(
3131
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
32-
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py)
32+
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
33+
MAIN_CONFIG
34+
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
35+
)
3336

3437
add_lit_testsuite(check-clangd "Running the Clangd regression tests"
3538
${CMAKE_CURRENT_BINARY_DIR}/../unittests;${CMAKE_CURRENT_BINARY_DIR}

0 commit comments

Comments
 (0)