From 32b4a96a9ffaf2a0d8d9892b7b81c3d6195a6e87 Mon Sep 17 00:00:00 2001 From: cnc Date: Wed, 3 Jun 2026 18:06:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E8=80=83=E6=89=80=E6=9C=89=E5=88=86?= =?UTF-8?q?=E7=BB=84=EF=BC=8C=E5=AE=8C=E6=88=90=E5=B0=BD=E9=87=8F=E5=A4=9A?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AE=B9=EF=BC=9A=E6=94=B6=E7=B4=A7=20switch?= =?UTF-8?q?kins=20=E7=94=9F=E6=88=90=E5=99=A8=20manifest=20=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 结论:switchkins/remap 生成器现在先复用 LinuxCNC manifest 输入校验,坏行、未知组、重复源等会在生成 table/config/json 前被拦截;未扩展 smoke 功能。 --- generate-linuxcnc-switchkins-remap-table.sh | 1 + test-all-native.sh | 1 + test-native.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/generate-linuxcnc-switchkins-remap-table.sh b/generate-linuxcnc-switchkins-remap-table.sh index 938b62f..b9fdc45 100755 --- a/generate-linuxcnc-switchkins-remap-table.sh +++ b/generate-linuxcnc-switchkins-remap-table.sh @@ -59,6 +59,7 @@ if [[ ! -f "$manifest" ]]; then echo "missing kinematics manifest: $manifest" >&2 exit 1 fi +LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh "$manifest" if [[ "$mode" == all && -z "$all_output_dir" ]]; then echo "missing output directory for --all-output-dir" >&2 exit 1 diff --git a/test-all-native.sh b/test-all-native.sh index a8ee51b..f7d166c 100755 --- a/test-all-native.sh +++ b/test-all-native.sh @@ -86,6 +86,7 @@ grep -F 'missing LinuxCNC switchkins REMAP INI in manifest:' check-linuxcnc-swit grep -F 'missing LinuxCNC switchkins remap source in manifest:' check-linuxcnc-switchkins-remap-table.sh >/dev/null grep -F 'LinuxCNC source basis: cached switchkins/remap validation hashes the LinuxCNC' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null grep -F 'LinuxCNC source basis: generated switchkins/remap tables are extracted from' generate-linuxcnc-switchkins-remap-table.sh >/dev/null +grep -F 'LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh "$manifest"' generate-linuxcnc-switchkins-remap-table.sh >/dev/null grep -F 'LinuxCNC source basis: Puma560 DH parameter output is generated from' generate-linuxcnc-puma560-dh-parameters.sh >/dev/null grep -F 'LinuxCNC source basis: all-native guardrails lock source-backed manifests' test-all-native.sh >/dev/null test -x check-linuxcnc-inputs-cached.sh diff --git a/test-native.sh b/test-native.sh index 099bc95..773432e 100755 --- a/test-native.sh +++ b/test-native.sh @@ -60,6 +60,7 @@ grep -F 'missing LinuxCNC switchkins REMAP INI in manifest:' check-linuxcnc-swit grep -F 'missing LinuxCNC switchkins remap source in manifest:' check-linuxcnc-switchkins-remap-table.sh >/dev/null grep -F 'LinuxCNC source basis: cached switchkins/remap validation hashes the LinuxCNC' check-linuxcnc-switchkins-remap-table-cached.sh >/dev/null grep -F 'LinuxCNC source basis: generated switchkins/remap tables are extracted from' generate-linuxcnc-switchkins-remap-table.sh >/dev/null +grep -F 'LINUXCNC_ROOT="$linuxcnc_root" ./check-linuxcnc-inputs-cached.sh "$manifest"' generate-linuxcnc-switchkins-remap-table.sh >/dev/null grep -F 'LinuxCNC source basis: Puma560 DH parameter output is generated from' generate-linuxcnc-puma560-dh-parameters.sh >/dev/null grep -F 'LinuxCNC source basis: all-native guardrails lock source-backed manifests' test-all-native.sh >/dev/null grep -F 'LinuxCNC source basis: this probe derives required Python C API exports from' test-linuxcnc-wasm-python-c-api-symbols.sh >/dev/null