按规划继续工作

结论:新增 namedparam_ini_semantics 夹具,将本地命名参数和 _ini[...] 查询纳入 upstream rs274 -i 基线,并接入 Node WASM 与浏览器 INI-aware 解释器 smoke;HAL 查询继续保留在 standalone adapter 边界。
This commit is contained in:
2026-06-08 12:18:02 +08:00
parent fb8fcee104
commit 657eecfcc3
9 changed files with 91 additions and 17 deletions

View File

@@ -29,6 +29,7 @@
saveMachineTextFiles,
} from "../../runtime/opfs/machine-file-store.js";
import {
INTERP_BASELINE_INI_FIXTURE,
INTERP_BROWSER_FILE_FIXTURES,
INTERP_BROWSER_MDI_FIXTURES,
INTERP_ERROR_FIXTURES,
@@ -240,6 +241,18 @@
namedParamExpectedText,
);
const baselineIniProgramText = await fetchText(
`../fixtures/gcode/${INTERP_BASELINE_INI_FIXTURE}.ngc`,
);
const baselineIniExpectedText = (
await fetchText(`../fixtures/canon/${INTERP_BASELINE_INI_FIXTURE}.events`)
).trimEnd();
verifyExpectedOutput(
INTERP_BASELINE_INI_FIXTURE,
interp.runProgramWithIni(baselineIniProgramText, namedParamIniPath),
baselineIniExpectedText,
);
const positionParamsText = await fetchText(
`../fixtures/gcode/${INTERP_POSITION_PARAMS_FILE_FIXTURE}.ngc`,
);
@@ -273,6 +286,14 @@
namedParamExpectedText,
);
const baselineIniPath = `/work/${INTERP_BASELINE_INI_FIXTURE}.ngc`;
interp.writeTextFile(baselineIniPath, baselineIniProgramText);
verifyExpectedOutput(
`${INTERP_BASELINE_INI_FIXTURE}_file`,
interp.runFileWithIni(baselineIniPath, namedParamIniPath),
baselineIniExpectedText,
);
verifyExpectedOutput(
"restore_parameters_missing_file",
interp.restoreParameters("/work/browser-missing.var"),