From 2f8be55fa68295aba7a7b1b44d0c0b1e2d2782f4 Mon Sep 17 00:00:00 2001 From: wangdequan Date: Mon, 8 Jun 2026 05:28:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=A9=E5=B1=95=E8=A7=A3=E9=87=8A=E5=99=A8WA?= =?UTF-8?q?SM=E5=88=80=E5=85=B7=E5=A4=B9=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:解释器核心WASM验证新增刀具选择、刀表设置、刀具重载以及缺刀错误夹具,继续复用LinuxCNC解释器和tool adapter边界。 --- wasm-port/docs/compatibility-validation.md | 14 +++++++------- wasm-port/tests/wasm/node/verify_interp_wasm.mjs | 5 +++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wasm-port/docs/compatibility-validation.md b/wasm-port/docs/compatibility-validation.md index 22246d2..cd9d39d 100644 --- a/wasm-port/docs/compatibility-validation.md +++ b/wasm-port/docs/compatibility-validation.md @@ -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`, `plane_selection`, `coordinate_offsets`, `g53_machine_coordinates`, `feed_control_modes`, `position_params`, `probe_semantics`, `spindle_orient`, -`comment_logging`, `numbered_params`, and `namedparam_semantics`, plus the -`g1_zero_feed`, `arc_radius_mismatch`, `arc_zero_radius`, and -`g53_incremental` negative fixtures. The WASM interpreter file path -additionally covers `file_open_reset`, `percent_file_finish`, and +`comment_logging`, `numbered_params`, `tool_semantics`, `tool_table_setup`, +`tool_reload`, and `namedparam_semantics`, plus the `g1_zero_feed`, +`arc_radius_mismatch`, `arc_zero_radius`, `g53_incremental`, `tool_not_found`, +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 -adapter plus the INI -browser smoke harness. Full browser coverage, full SDK coverage, and full -machine-session validation remain future work. +adapter plus the INI browser smoke harness. Full browser coverage, full SDK +coverage, and full machine-session validation remain future work. The current fixture expectations validate standalone behavior against both the vendored LinuxCNC source path and an upstream `rs274` side-by-side baseline for diff --git a/wasm-port/tests/wasm/node/verify_interp_wasm.mjs b/wasm-port/tests/wasm/node/verify_interp_wasm.mjs index 7c56c92..43c0979 100644 --- a/wasm-port/tests/wasm/node/verify_interp_wasm.mjs +++ b/wasm-port/tests/wasm/node/verify_interp_wasm.mjs @@ -116,6 +116,9 @@ const fixtureNames = [ "spindle_orient", "comment_logging", "numbered_params", + "tool_semantics", + "tool_table_setup", + "tool_reload", ]; for (const fixtureName of fixtureNames) { @@ -157,6 +160,8 @@ const errorFixtureNames = [ "arc_radius_mismatch", "arc_zero_radius", "g53_incremental", + "tool_not_found", + "tool_length_offset_not_found", ]; for (const fixtureName of errorFixtureNames) {