Files
wasm-simulator/check-linuxcnc-switchkins-remap-table.sh
cnc c2d1aa6fe3 继续推进:用LinuxCNC配置生成switchkins测试
结论:M428/M429/M430 的配置匹配测试已从手写列表改为由 LinuxCNC INI/MACHINE/KINEMATICS/HALFILE 生成,native 与 source-link 验证通过。
2026-05-30 10:10:49 +08:00

18 lines
785 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
manifest=${1:-linuxcnc-kinematics-source-files.txt}
generated_table=$(mktemp "${TMPDIR:-/tmp}/linuxcnc_switchkins_remap_table.XXXXXX.inc")
generated_cases=$(mktemp "${TMPDIR:-/tmp}/linuxcnc_switchkins_remap_config_cases.XXXXXX.inc")
trap 'rm -f "$generated_table" "$generated_cases"' EXIT
LINUXCNC_ROOT="$linuxcnc_root" ./generate-linuxcnc-switchkins-remap-table.sh "$manifest" > "$generated_table"
diff -u core/src/linuxcnc_switchkins_remap_table.inc "$generated_table"
LINUXCNC_ROOT="$linuxcnc_root" ./generate-linuxcnc-switchkins-remap-table.sh --config-cases "$manifest" > "$generated_cases"
diff -u core/tests/linuxcnc_switchkins_remap_config_cases.inc "$generated_cases"