结论:对齐 LinuxCNC tooldata_nml.cc 与 tooldata_db.cc 的失败诊断输出,收紧 WASM tooldata link probe;未扩展临时 smoke 行为。
20 lines
809 B
Bash
Executable File
20 lines
809 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
# LinuxCNC source basis: this link probe runs the wasm-safe tooldata shim
|
|
# against LinuxCNC tooldata_mmap/tooldata_nml expectations recorded from
|
|
# src/emc/tooldata/Submakefile and tooldata runtime sources.
|
|
probe=$(./build-linuxcnc-wasm-standalone-probe.sh --mode tooldata-link)
|
|
|
|
"$probe" 2>"$probe.err"
|
|
grep -F "tool_mmap_user(): tool mmap not available" "$probe.err" >/dev/null
|
|
grep -F "tooldata_put() no tool_mmap_base" "$probe.err" >/dev/null
|
|
grep -F "!!!PROBLEM tool_nml_register()" "$probe.err" >/dev/null
|
|
grep -F "!!!!db_init: <" "$probe.err" >/dev/null
|
|
grep -F "not executable" "$probe.err" >/dev/null
|
|
grep -F "!!!!db_init: argc exceeds MAX_DB_PROGRAM_ARGS=10" "$probe.err" >/dev/null
|
|
|
|
echo "linuxcnc wasm tooldata shim link probe passed"
|