diff options
| author | tanaka takashi <isazaka@gmail.com> | 2026-07-04 17:21:32 +0900 |
|---|---|---|
| committer | tanaka takashi <isazaka@gmail.com> | 2026-07-04 17:21:32 +0900 |
| commit | 0634f2048c7c9a474aab1d8104b964b3bf70a064 (patch) | |
| tree | 508c305a64cbd3b01f5146776e22865d283d5dbb /tests/CMakeLists.txt | |
| parent | eb5e9d9f37bda7d78f69614da70402357794168a (diff) | |
feat(P1-002): migrate offline JSONL import/export to dedicated CLI
- Replace the MCP import_messages tool with standalone CLI commands:
iny-convmem-mcp --data-dir <path> --import <file>
iny-convmem-mcp --data-dir <path> --export <file>
- Add src/cli/{import,export,cli.h} and a CTest process test (tiny-convmem-mcp.cli)
covering round-trip, manifest generation, overwrite/reject policies, and
include_deleted export.
- Fix Debug heap corruption in iny_store_import() by deep-copying imported
messages instead of taking ownership of caller-allocated records, which were
later freed by the caller.
- Remove the now-redundant src/mcp/tools/import_messages.c and keep the tool
registry at 7 MCP tools.
- Update docs/development-plan.md (P1-002 complete) and
docs/implementation-status.md with CLI test coverage.
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0bc5d89..b0d86b2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -115,6 +115,16 @@ add_test( ) set_tests_properties(tiny-convmem-mcp.lifecycle PROPERTIES TIMEOUT 15) +add_test( + NAME tiny-convmem-mcp.cli + COMMAND "${CMAKE_COMMAND}" + "-DSERVER=$<TARGET_FILE:tiny-convmem-mcp>" + "-DIMPORT_INPUT=${CMAKE_CURRENT_SOURCE_DIR}/fixtures/import-sample.jsonl" + "-DDATA_DIR=${CMAKE_CURRENT_BINARY_DIR}/cli-data" + -P "${CMAKE_CURRENT_SOURCE_DIR}/cli.cmake" +) +set_tests_properties(tiny-convmem-mcp.cli PROPERTIES TIMEOUT 15) + add_test(NAME tiny-convmem-mcp.requires-data-dir COMMAND $<TARGET_FILE:tiny-convmem-mcp>) set_tests_properties(tiny-convmem-mcp.requires-data-dir PROPERTIES WILL_FAIL TRUE) @@ -150,6 +160,7 @@ if(TINY_CONVMEM_ENABLE_ASAN AND MSVC) tiny-convmem-mcp.sys tiny-convmem-mcp.storage tiny-convmem-mcp.lifecycle + tiny-convmem-mcp.cli tiny-convmem-mcp.requires-data-dir tiny-convmem-mcp.audit APPEND PROPERTY ENVIRONMENT_MODIFICATION |
