mirror of
https://github.com/iDvel/rime-ice.git
synced 2026-05-14 00:30:37 +08:00
1.3 KiB
1.3 KiB
Smoke Test Framework
This directory contains the shell-based smoke test framework for the current repository.
Layout
run.sh: suite entrypointlib/common.sh: shared shell helperssuites/config_repo.sh: generic suite implementation for the current config repositorycases/rime_ice/input_cases.tsv: data-driven input cases
Current Flow
- uses local
rime_deployerandrime_api_consolefromPATHwhen available - otherwise downloads the public Linux CLI bundle when
RIME_CLI_URLis set - deploys the current repository with
rime_deployer --build - runs
rime_api_console - verifies basic pinyin commit and a stable Lua-driven Unicode commit
Environment Variables
RIME_CLI_URL: optional public CLI bundle URLRIME_CONFIG_ROOT: optional repository root override
Extending
Add more rows to cases/rime_ice/input_cases.tsv.
The current tab-separated case format is:
case_idschema_idkey_sequenceexpected_text
expected_text also supports:
@today:<date format>, for example@today:%Y-%m-%d@regex:<pattern>, matched against the normalized stdout log
rime_api_console is used as the default runner because it is more reliable than rime_console for smoke tests that reuse an already deployed workspace.