5 # No tests for it, but we should still make sure they build.
10 list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client)
11 list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests)
14 if(CLANGD_ENABLE_REMOTE)
15 list(APPEND CLANGD_TEST_DEPS clangd-index-server clangd-index-server-monitor)
18 foreach(dep FileCheck count not llvm-config)
20 list(APPEND CLANGD_TEST_DEPS ${dep})
24 configure_lit_site_cfg(
25 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
26 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
28 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
31 add_lit_testsuite(check-clangd "Running the Clangd regression tests"
32 # clangd doesn't put unittest configs in test/unit like every other project.
33 # Because of that, this needs to pass two folders here, while every other
34 # project only needs to pass CMAKE_CURRENT_BINARY_DIR.
35 ${CMAKE_CURRENT_BINARY_DIR}/../unittests;${CMAKE_CURRENT_BINARY_DIR}
36 DEPENDS ${CLANGD_TEST_DEPS})