Files
wasm-simulator/test-linuxcnc-wasm-interp-base-link.sh
cnc 428fc46f4e 使用刚更新的 AGENTS.md 和 align-linuxcnc 加速规则执行
结论:按 align-linuxcnc 先确认干净基线,避免 source-map-only 和 smoke 扩展;增强 WASM interp_base link probe,锁定 LinuxCNC src/emc/rs274ngc/interp_base.cc 的绝对/相对 interpreter 路径失败诊断均到达 wasm-safe dlfcn unavailable 边界。\n\n测试结论:./test-linuxcnc-wasm-interp-base-link.sh、./test-native.sh、./test-linuxcnc-source-link.sh 均通过。
2026-06-05 15:07:26 +08:00

17 lines
742 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
# LinuxCNC source basis: the standalone probe links src/emc/rs274ngc/interp_base.cc,
# whose runtime dynamic loading edge is satisfied by the wasm-safe dlfcn shim.
probe=$(./build-linuxcnc-wasm-standalone-probe.sh --mode interp-base-link)
"$probe" 2>"$probe.err"
grep -F "emcTaskInit: could not open interpreter '/tmp/cnc_sim_missing_absolute_interpreter.so': dynamic loading is unavailable in wasm-safe probe" \
"$probe.err" >/dev/null
grep -F "emcTaskInit: could not open interpreter '" "$probe.err" | \
grep -F "/lib/linuxcnc/nonexistent-interpreter.so': dynamic loading is unavailable in wasm-safe probe" >/dev/null
echo "linuxcnc wasm interp_base link probe passed"