From 802e85cd636a5261004b42da5f701d9996099382 Mon Sep 17 00:00:00 2001 From: cnc Date: Wed, 3 Jun 2026 22:55:55 +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=E7=BB=93=E8=AE=BA=E4=B8=BA?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E5=AE=88=E4=BD=8F=20LinuxCNC=20fixture=20?= =?UTF-8?q?=E5=8F=8C=E8=B7=AF=E5=BE=84=E8=A6=86=E7=9B=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-all-native.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test-all-native.sh b/test-all-native.sh index 05236aa..df150e1 100755 --- a/test-all-native.sh +++ b/test-all-native.sh @@ -794,6 +794,22 @@ grep -F 'linuxcnc_unclosed_comment_error|Unclosed comment found' test-linuxcnc-r grep -F 'linuxcnc_nested_comment_error|Nested comment found' test-linuxcnc-rs274-native.sh >/dev/null grep -F 'linuxcnc_commented_percent_error|Bad character '\''%'\'' used' test-linuxcnc-rs274-native.sh >/dev/null grep -F 'linuxcnc_mid_program_percent_error|Bad character '\''%'\'' used' test-linuxcnc-rs274-native.sh >/dev/null +python3 - <<'PY' +from pathlib import Path + +fixtures = sorted(path.stem for path in Path("tests/gcode").glob("linuxcnc_*.ngc")) +for label, script in [ + ("native RS274", Path("test-linuxcnc-rs274-native.sh")), + ("source-linked RS274", Path("test-linuxcnc-source-link.sh")), +]: + text = script.read_text(encoding="utf-8") + missing = [fixture for fixture in fixtures if fixture not in text] + if missing: + raise SystemExit( + f"{label} regression script no longer covers LinuxCNC fixtures: " + + ", ".join(missing) + ) +PY for script in \ test-native.sh \