Files
wasm-simulator/test-linuxcnc-wasm-tooldata-link.sh

16 lines
563 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
echo "linuxcnc wasm tooldata shim link probe passed"