6 # No tests for it, but we should still make sure they build.
11 list(APPEND CLANGD_TEST_DEPS clangd-xpc-test-client)
12 list(APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests)
15 if(CLANGD_ENABLE_REMOTE)
16 list(APPEND CLANGD_TEST_DEPS clangd-index-server clangd-index-server-monitor)
19 foreach(dep FileCheck count not llvm-config)
21 list(APPEND CLANGD_TEST_DEPS ${dep})
25 configure_lit_site_cfg(
26 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
27 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
29 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
32 # Copy an empty compile_flags.txt to make sure tests don't pick up arbitrary
33 # commands from parents.
36 ${CMAKE_CURRENT_BINARY_DIR}/compile_flags.txt
39 add_lit_testsuite(check-clangd "Running the Clangd regression tests"
40 # clangd doesn't put unittest configs in test/unit like every other project.
41 # Because of that, this needs to pass two folders here, while every other
42 # project only needs to pass CMAKE_CURRENT_BINARY_DIR.
43 ${CMAKE_CURRENT_BINARY_DIR}/../unittests;${CMAKE_CURRENT_BINARY_DIR}
44 DEPENDS ${CLANGD_TEST_DEPS})