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 # Copy an empty compile_flags.txt to make sure tests don't pick up arbitrary
32 # commands from parents.
35 ${CMAKE_CURRENT_BINARY_DIR}/compile_flags.txt
38 add_lit_testsuite(check-clangd "Running the Clangd regression tests"
39 # clangd doesn't put unittest configs in test/unit like every other project.
40 # Because of that, this needs to pass two folders here, while every other
41 # project only needs to pass CMAKE_CURRENT_BINARY_DIR.
42 ${CMAKE_CURRENT_BINARY_DIR}/../unittests;${CMAKE_CURRENT_BINARY_DIR}
43 DEPENDS ${CLANGD_TEST_DEPS})