1 Commits
Author SHA1 Message Date
zhifu gao 3610b759ce test: numerical regression harness (frozen golden vs ggml/VAD/CIF/CTC output) (#3003)
* test: numerical regression harness (frozen golden vs ggml/VAD/CIF/CTC output)

Adds tests/ — runs each runtime tool on a fixed 6 s clip and diffs against frozen
golden output, catching regressions in the ggml graphs, the FSMN-VAD state machine,
the CIF predictor and CTC decode.

- tests/run_regression.sh: auto-detects which tools are built; VAD model is auto-fetched
  (1.7 MB), ASR GGUFs tested when present or with RUN_FULL=1 (downloads from HF).
  Non-zero exit on any mismatch. BIN_DIR/MODELS_DIR overridable.
- tests/sample.wav (~6 s) + tests/golden/*.txt: golden captured on Linux x86-64 with the
  f16 GGUFs from FunAudioLLM/*-GGUF.

Verified locally: all present tools PASS; default mode fetches VAD + skips absent models.

* test: golden as text (binaries now detok in-process; merge after in-binary-detok)

* test: fix sensevoice golden (correct transcription text)
2026-06-20 16:12:24 +08:00