参考所有分组,完成尽量多的内容:结论为动态守住 LinuxCNC fixture 双路径覆盖

This commit is contained in:
cnc
2026-06-03 22:55:55 +08:00
parent 0de612651e
commit 802e85cd63

View File

@@ -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 \