From 4c6a831aa2a57e2bcc20aa3fc2f1b7172f5be285 Mon Sep 17 00:00:00 2001 From: tanaka takashi Date: Mon, 29 Jun 2026 02:36:40 +0900 Subject: feat: 会話メモリのプロトタイプを実装 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 6種類のMCPツールと入力検証を追加 - バイナリログ、スナップショット、復旧、圧縮処理を実装 - Unicode n-gram検索とドメインモデルを追加 - 単体テストと統合テストを追加 - アーキテクチャと実装状況を文書化 - Cコードの記述スタイルを統一 --- tests/smoke.cmake | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'tests/smoke.cmake') diff --git a/tests/smoke.cmake b/tests/smoke.cmake index b741d4b..2481297 100644 --- a/tests/smoke.cmake +++ b/tests/smoke.cmake @@ -4,9 +4,14 @@ endif() if(NOT DEFINED INPUT OR NOT EXISTS "${INPUT}") message(FATAL_ERROR "INPUT does not name the smoke-test fixture") endif() +if(NOT DEFINED DATA_DIR) + message(FATAL_ERROR "DATA_DIR is required") +endif() + +file(REMOVE_RECURSE "${DATA_DIR}") execute_process( - COMMAND "${SERVER}" + COMMAND "${SERVER}" --data-dir "${DATA_DIR}" INPUT_FILE "${INPUT}" OUTPUT_VARIABLE server_output ERROR_VARIABLE server_error @@ -24,9 +29,17 @@ foreach(expected "\"protocolVersion\":\"2024-11-05\"" "\"serverInfo\"" "\"capabilities\"" - "\"name\":\"health\"" + "\"name\":\"write_message\"" + "\"name\":\"read_messages\"" + "\"name\":\"search_messages\"" + "\"name\":\"delete_message\"" + "\"name\":\"rebuild_index\"" + "\"name\":\"get_system_health\"" + "\"required\":[\"session_id\",\"role\",\"content\"]" "\"type\":\"text\"" - "\"text\":\"ok\"" + "\\\"status\\\":\\\"OK\\\"" + "\\\"code\\\":\\\"VALIDATION_ERROR\\\"" + "hello durable memory" ) string(FIND "${server_output}" "${expected}" match_position) if(match_position EQUAL -1) @@ -36,4 +49,4 @@ foreach(expected endif() endforeach() -message(STATUS "MCP initialize, tools/list, and health tools/call succeeded") +message(STATUS "MCP initialize, six-tool listing, write, read, search, rebuild, and health succeeded") -- cgit v1.2.3