sh/tests/openclaw
2026-03-12 15:16:54 +08:00
..
README.md chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_api_color_align_min.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_api_protocol_detect_smoke.sh fix: drop openai-chat-completions protocol 2026-03-12 11:07:51 +08:00
tests_openclaw_api_sync_diff_smoke.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00
tests_openclaw_memory_auto_setup_smoke.sh refactor memory scheme auto setup menu 2026-03-12 13:53:29 +08:00
tests_openclaw_memory_menu_smoke.sh feat: auto-restart gateway after memory rebuild 2026-03-12 15:16:54 +08:00
tests_openclaw_plugin_skill_menu_smoke.sh chore: reorganize openclaw test scripts 2026-03-12 10:22:34 +08:00

OpenClaw tests

这里的脚本用于对 kejilion.sh 中的 OpenClaw 相关功能做最小回归与冒烟测试,主要覆盖:

  • API 模型同步/协议探测
  • 记忆菜单
  • 插件/技能菜单
  • API 列表颜色/对齐展示(最小验证)

运行方式

在仓库根目录执行(推荐):

bash tests/openclaw/tests_openclaw_api_protocol_detect_smoke.sh
bash tests/openclaw/tests_openclaw_api_sync_diff_smoke.sh
bash tests/openclaw/tests_openclaw_memory_menu_smoke.sh
bash tests/openclaw/tests_openclaw_plugin_skill_menu_smoke.sh
bash tests/openclaw/tests_openclaw_api_color_align_min.sh

也可在任意工作目录执行:

/path/to/repo/tests/openclaw/tests_openclaw_memory_menu_smoke.sh

安全说明

  • 脚本会创建临时工作目录与临时 HOME(位于 /tmp),并在结束后自动清理(除非设置 KEEP_WORKDIR=true)。
  • 运行过程使用 stub/模拟命令,不会改动真实 OpenClaw 配置或系统状态。
  • 如需保留临时目录用于排查,请执行:
KEEP_WORKDIR=true bash tests/openclaw/tests_openclaw_memory_menu_smoke.sh