接续上一轮:推进浏览器验证与M428配置收拢
结论:已完成浏览器侧真实加载验证,M428/M429/M430 的配置入口进一步从 LinuxCNC INI/HALFILE/REMAP 来源生成,native 与 source-link 验证通过。
This commit is contained in:
23
test-web-wasm-node-smoke.sh
Executable file
23
test-web-wasm-node-smoke.sh
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
missing=()
|
||||
for required in node web/public/cnc_sim.js web/public/cnc_sim.wasm; do
|
||||
if [[ "$required" == node ]]; then
|
||||
if ! command -v node >/dev/null 2>&1; then
|
||||
missing+=("node")
|
||||
fi
|
||||
elif [[ ! -f "$required" ]]; then
|
||||
missing+=("$required")
|
||||
fi
|
||||
done
|
||||
|
||||
if ((${#missing[@]} > 0)); then
|
||||
echo "WASM Node smoke prerequisites are missing: ${missing[*]}." >&2
|
||||
echo "Run ./build-wasm.sh after activating emsdk to generate web/public/cnc_sim.js and web/public/cnc_sim.wasm." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
node test-web-wasm-node-smoke.cjs
|
||||
Reference in New Issue
Block a user