From 708b2bee177f9ce99fd8f16b65d4c01bcf9377b5 Mon Sep 17 00:00:00 2001 From: cnc Date: Wed, 3 Jun 2026 23:39:09 +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?=20binding=20manifest=20=E7=BA=B3=E5=85=A5=20source-map=20?= =?UTF-8?q?=E5=AE=88=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-all-native.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test-all-native.sh b/test-all-native.sh index 1585cf1..78cc8ae 100755 --- a/test-all-native.sh +++ b/test-all-native.sh @@ -824,20 +824,40 @@ manifest_core = [ for line in Path("linuxcnc-rs274-source-files.txt").read_text(encoding="utf-8").splitlines() if line.startswith("core:") ] +manifest_bindings = [ + Path(line.split(":", 2)[1]).name + for line in Path("linuxcnc-rs274-source-files.txt").read_text(encoding="utf-8").splitlines() + if line.startswith("binding:") +] source_map_core = [] +source_map_bindings = [] in_core_section = False +in_binding_section = False for line in source_map.splitlines(): if line == "### Interpreter core": in_core_section = True + in_binding_section = False + continue + if line == "### Python binding modules": + in_core_section = False + in_binding_section = True continue if in_core_section and line.startswith("### "): break + if in_binding_section and line.startswith("### "): + in_binding_section = False if in_core_section and line.startswith("- `"): source_map_core.append(line.split("`", 2)[1]) + if in_binding_section and line.startswith("- `"): + source_map_bindings.append(line.split("`", 2)[1]) if source_map_core != manifest_core: raise SystemExit( "docs/linuxcnc-rs274-source-map.md interpreter core list no longer matches linuxcnc-rs274-source-files.txt core manifest" ) +if source_map_bindings != manifest_bindings: + raise SystemExit( + "docs/linuxcnc-rs274-source-map.md Python binding module list no longer matches linuxcnc-rs274-source-files.txt binding manifest" + ) PY for script in \