♻️ refactor(cli): validate startup arguments
This commit is contained in:
@@ -28,6 +28,10 @@ if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/test_scheduler/CMakeLists.txt)
|
||||
add_subdirectory(test_scheduler)
|
||||
endif()
|
||||
|
||||
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/test_args_parser/CMakeLists.txt)
|
||||
add_subdirectory(test_args_parser)
|
||||
endif()
|
||||
|
||||
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/test_semantic/CMakeLists.txt)
|
||||
add_subdirectory(test_semantic)
|
||||
endif()
|
||||
@@ -48,6 +52,10 @@ if(BUILD_TESTS)
|
||||
COMMAND ${PYTHON3_EXECUTABLE}
|
||||
${CMAKE_CURRENT_LIST_DIR}/run_lsp_json_tests.py
|
||||
--server $<TARGET_FILE:tsl-server>)
|
||||
add_test(NAME test_cli_startup
|
||||
COMMAND ${PYTHON3_EXECUTABLE}
|
||||
${CMAKE_CURRENT_LIST_DIR}/test_cli_startup.py
|
||||
--server $<TARGET_FILE:tsl-server>)
|
||||
else()
|
||||
message(WARNING "python3 not found; skipping test_lsp_json registration")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user