扩展解释器WASM刀具夹具

结论:解释器核心WASM验证新增刀具选择、刀表设置、刀具重载以及缺刀错误夹具,继续复用LinuxCNC解释器和tool adapter边界。
This commit is contained in:
2026-06-08 05:28:38 +08:00
parent 9c611b8a01
commit 2f8be55fa6
2 changed files with 12 additions and 7 deletions

View File

@@ -198,14 +198,14 @@ INI parser smoke harness and an initial interpreter-core canonical event smoke
for `minimal_linear`, `arc_semantics`, `length_units`, `modal_incremental`, for `minimal_linear`, `arc_semantics`, `length_units`, `modal_incremental`,
`plane_selection`, `coordinate_offsets`, `g53_machine_coordinates`, `plane_selection`, `coordinate_offsets`, `g53_machine_coordinates`,
`feed_control_modes`, `position_params`, `probe_semantics`, `spindle_orient`, `feed_control_modes`, `position_params`, `probe_semantics`, `spindle_orient`,
`comment_logging`, `numbered_params`, and `namedparam_semantics`, plus the `comment_logging`, `numbered_params`, `tool_semantics`, `tool_table_setup`,
`g1_zero_feed`, `arc_radius_mismatch`, `arc_zero_radius`, and `tool_reload`, and `namedparam_semantics`, plus the `g1_zero_feed`,
`g53_incremental` negative fixtures. The WASM interpreter file path `arc_radius_mismatch`, `arc_zero_radius`, `g53_incremental`, `tool_not_found`,
additionally covers `file_open_reset`, `percent_file_finish`, and and `tool_length_offset_not_found` negative fixtures. The WASM interpreter
file path additionally covers `file_open_reset`, `percent_file_finish`, and
`oword_subroutine`. OPFS validation is limited to the JavaScript host-boundary `oword_subroutine`. OPFS validation is limited to the JavaScript host-boundary
adapter plus the INI adapter plus the INI browser smoke harness. Full browser coverage, full SDK
browser smoke harness. Full browser coverage, full SDK coverage, and full coverage, and full machine-session validation remain future work.
machine-session validation remain future work.
The current fixture expectations validate standalone behavior against both the The current fixture expectations validate standalone behavior against both the
vendored LinuxCNC source path and an upstream `rs274` side-by-side baseline for vendored LinuxCNC source path and an upstream `rs274` side-by-side baseline for

View File

@@ -116,6 +116,9 @@ const fixtureNames = [
"spindle_orient", "spindle_orient",
"comment_logging", "comment_logging",
"numbered_params", "numbered_params",
"tool_semantics",
"tool_table_setup",
"tool_reload",
]; ];
for (const fixtureName of fixtureNames) { for (const fixtureName of fixtureNames) {
@@ -157,6 +160,8 @@ const errorFixtureNames = [
"arc_radius_mismatch", "arc_radius_mismatch",
"arc_zero_radius", "arc_zero_radius",
"g53_incremental", "g53_incremental",
"tool_not_found",
"tool_length_offset_not_found",
]; ];
for (const fixtureName of errorFixtureNames) { for (const fixtureName of errorFixtureNames) {