🧪 test: register remaining tests in ctest

This commit is contained in:
csh
2025-12-21 15:52:09 +08:00
parent f2d2aeb272
commit fbf6c85baa
6 changed files with 40 additions and 0 deletions
+12
View File
@@ -40,3 +40,15 @@ endif()
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/test_provider/CMakeLists.txt)
add_subdirectory(test_provider)
endif()
if(BUILD_TESTS)
find_program(PYTHON3_EXECUTABLE python3)
if(PYTHON3_EXECUTABLE)
add_test(NAME test_lsp_json
COMMAND ${PYTHON3_EXECUTABLE}
${CMAKE_CURRENT_LIST_DIR}/run_lsp_json_tests.py
--server $<TARGET_FILE:tsl-server>)
else()
message(WARNING "python3 not found; skipping test_lsp_json registration")
endif()
endif()