Expand LinuxCNC interpreter regression coverage
This commit is contained in:
@@ -25,6 +25,7 @@ Use `src/index.js` for stable imports:
|
||||
import {
|
||||
createLinuxCncIniSdk,
|
||||
createLinuxCncInterpSdk,
|
||||
planIniFileContextStaging,
|
||||
planSimConfigStaging,
|
||||
} from "./src/index.js";
|
||||
```
|
||||
@@ -86,14 +87,22 @@ into the Emscripten filesystem, applies executable bits for user M-code files,
|
||||
then forwards to `runFileWithIni()` by default or to `runFiveAxisRemapFile()`
|
||||
when `executionMode: "fiveAxisRemap"` is explicitly requested.
|
||||
|
||||
`planSimConfigStaging()` is the companion file-staging planner for
|
||||
`planIniFileContextStaging()` is the generic file-staging planner for
|
||||
LinuxCNC INI-driven interpreter runs. Callers provide vendored source-manifest
|
||||
text, a source root, an INI file name, INI text, and a target WASM directory.
|
||||
The planner reads only INI file references and the manifest, then returns the
|
||||
INI, `[DISPLAY]OPEN_FILE`, `[EMCIO]TOOL_TABLE`,
|
||||
`[RS274NGC]PARAMETER_FILE`, `[RS274NGC]SUBROUTINE_PATH`,
|
||||
`[RS274NGC]USER_M_PATH`, and remap-NGC files that should be copied into the
|
||||
Emscripten filesystem. Each planned file includes `sourceRel`, `wasmPath`, the
|
||||
legacy alias `path`, and `executable`. It does not implement G-code, tool,
|
||||
parameter, remap, or user-M semantics.
|
||||
|
||||
`planSimConfigStaging()` is the companion convenience wrapper for
|
||||
representative LinuxCNC `configs/sim` programs. Callers provide the vendored
|
||||
source manifest text, machine relative path, INI file name, and INI text. The
|
||||
planner reads only INI file references and the manifest, then returns the INI,
|
||||
`[DISPLAY]OPEN_FILE`, `[EMCIO]TOOL_TABLE`, `[RS274NGC]PARAMETER_FILE`,
|
||||
`[RS274NGC]SUBROUTINE_PATH`, `[RS274NGC]USER_M_PATH`, and remap-NGC files that
|
||||
should be copied into the Emscripten filesystem. It does not implement G-code,
|
||||
tool, parameter, remap, or user-M semantics.
|
||||
source manifest text, machine relative path, INI file name, and INI text. It
|
||||
uses `planIniFileContextStaging()` with a `configs/sim/<machine>` source root
|
||||
and `configs/sim` upward-search boundary.
|
||||
|
||||
`runFileWithIniContinueOnError()` uses the same LinuxCNC-backed file execution
|
||||
path but keeps the runner loop going after LinuxCNC reports an error, matching
|
||||
|
||||
Reference in New Issue
Block a user