diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-06-29 02:36:40 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-06-29 02:36:40 +0900 |
| commit | 4c6a831aa2a57e2bcc20aa3fc2f1b7172f5be285 (patch) | |
| tree | 074021381abf57cad434430f25027115b681b8a9 /tests/smoke.cmake | |
| parent | 8d38b06f11c713e547d70468340242f23322152c (diff) | |
feat: 会話メモリのプロトタイプを実装
- 6種類のMCPツールと入力検証を追加
- バイナリログ、スナップショット、復旧、圧縮処理を実装
- Unicode n-gram検索とドメインモデルを追加
- 単体テストと統合テストを追加
- アーキテクチャと実装状況を文書化
- Cコードの記述スタイルを統一
Diffstat (limited to 'tests/smoke.cmake')
| -rw-r--r-- | tests/smoke.cmake | 21 |
1 files changed, 17 insertions, 4 deletions
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") |
