继续推进:用LinuxCNC配置生成switchkins测试
结论:M428/M429/M430 的配置匹配测试已从手写列表改为由 LinuxCNC INI/MACHINE/KINEMATICS/HALFILE 生成,native 与 source-link 验证通过。
This commit is contained in:
@@ -7,7 +7,11 @@ linuxcnc_root=${LINUXCNC_ROOT:-../linuxcnc}
|
||||
manifest=${1:-linuxcnc-kinematics-source-files.txt}
|
||||
|
||||
generated_table=$(mktemp "${TMPDIR:-/tmp}/linuxcnc_switchkins_remap_table.XXXXXX.inc")
|
||||
trap 'rm -f "$generated_table"' EXIT
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user