按规划继续工作

结论:将现有负向 G-code fixture 纳入 upstream rs274 -g side-by-side 基线,校验错误文本和 absent canonical 事件约束,继续保持解释器语义来源于 LinuxCNC。
This commit is contained in:
2026-06-08 12:23:05 +08:00
parent 657eecfcc3
commit 775f0d9c4c
4 changed files with 84 additions and 2 deletions

View File

@@ -266,6 +266,11 @@ Negative fixtures currently cover:
- missing tool
- missing tool length offset
The negative fixture expectations are also checked against upstream
`rs274 -g`: the baseline requires LinuxCNC to reject each program, to emit the
expected error text, and to omit the canonical event lines marked as absent in
`tests/fixtures/canon_errors/`.
## Validation Boundaries
Current full-core validation is native-only. WASM/SDK validation covers the
@@ -520,7 +525,9 @@ numbered-parameter, local named-parameter plus `_ini[...]` lookup through
tool-reload, tool select/change/length-offset, canned-cycle, state-tag motion,
tool-table setup, and O-word subroutine fixtures, plus threading/rigid tap,
NURBS dispatch boundaries, and the comparable canonical runtime edge and
program-end cleanup calls. Fixtures that depend on standalone-only runtime
program-end cleanup calls. The same upstream baseline also validates the
current negative fixture error text and absent canonical-event constraints.
Fixtures that depend on standalone-only runtime
adapters, HAL/tool-change state, upstream `rs274` output gaps such as
`WAIT` or hidden NURBS control-point detail, or richer machine session state
still need dedicated native LinuxCNC baselines.

View File

@@ -96,7 +96,9 @@ semantic rewrites:
select/change/length-offset, canned-cycle, state-tag motion, tool-table
setup, and O-word subroutine fixtures; it also covers threading/rigid tap,
NURBS dispatch boundaries, and comparable canonical runtime edge and
program-end cleanup calls.
program-end cleanup calls. It now also checks the negative fixture set
against upstream `rs274 -g` for expected error text and absent canonical
event constraints.
HAL-backed adapter-heavy fixtures, standalone modal-state assertions, and upstream
`rs274` output gaps such as `WAIT` or hidden NURBS control-point detail still
need dedicated native LinuxCNC baselines.

View File

@@ -65,6 +65,9 @@ Negative fixture coverage includes:
- missing tool
- missing tool length offset
The native baseline compares those negative fixtures with upstream
`rs274 -g` for expected error text and absent canonical-event constraints.
Machine baseline is still limited to standalone interpreter, trajectory
planner, LinuxCNC identity/trivial kinematics, LinuxCNC `5axiskins` XYZBCW
bridge-mill probing, and LinuxCNC TRT `xyzac`/`xyzbc` probing. Additional