🧪 test: register remaining tests in ctest
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user