This is an automated email from the ASF dual-hosted git repository.

jimjag pushed a commit to branch odf13-devel
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit fd58d992940e97b86b4988ec0e553733eff74a30
Author: Jim Jagielski <[email protected]>
AuthorDate: Fri Oct 30 09:56:11 2026 -0400

    test/odf-validate: add the ODF 1.3 modes to drive.sh and our gate
---
 test/odf-validate/drive.sh          |  5 +++--
 test/odf-validate/gate-volatile.tsv |  1 +
 test/odf-validate/gate.py           | 14 ++++++++------
 3 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/test/odf-validate/drive.sh b/test/odf-validate/drive.sh
index 1e0d3a5bc6..77f9157e88 100755
--- a/test/odf-validate/drive.sh
+++ b/test/odf-validate/drive.sh
@@ -19,14 +19,15 @@
 #  under the License.
 #
 #**************************************************************
-# usage: drive.sh <ext|strict|v00|v10|v11> <port> <jobs.tsv> <done.tsv>   
(DefaultVersion 3, 4, 0 UNKNOWN, 1 = ODF 1.0, 2 = ODF 1.1)
+# usage: drive.sh <ext|strict|v00|v10|v11|v13|x13> <port> <jobs.tsv> 
<done.tsv>   (DefaultVersion 3, 4, 0 UNKNOWN, 1 = ODF 1.0, 2 = ODF 1.1, 5 = ODF 
1.3, 6 = ODF 1.3 Extended)
+# No mode name may be a prefix of another: the kills below match 
"profile_<mode>" as a pattern (a mode ext13 died when ext finished).
 # Converts jobs in batches of 20. Stops on the first soffice crash; kills and 
resumes on a hang.
 source ${0:A:h}/env.sh
 mode=$1; port=$2; jobs=$3; done_=$4; log=${done_:r}.log
 prof=$mode
 if [[ ! -e $D/runs/profile_$prof/user/registrymodifications.xcu ]]; then
   mkdir -p $D/runs/profile_$prof/user
-  case $mode in v00) v=0;; v10) v=1;; v11) v=2;; ext) v=3;; strict) v=4;; *) 
echo "drive.sh: unknown mode $mode" >&2; exit 2;; esac
+  case $mode in v00) v=0;; v10) v=1;; v11) v=2;; ext) v=3;; strict) v=4;; v13) 
v=5;; x13) v=6;; *) echo "drive.sh: unknown mode $mode" >&2; exit 2;; esac
   cat > $D/runs/profile_$prof/user/registrymodifications.xcu <<XCU
 <?xml version="1.0" encoding="UTF-8"?>
 <oor:items xmlns:oor="http://openoffice.org/2001/registry"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
diff --git a/test/odf-validate/gate-volatile.tsv 
b/test/odf-validate/gate-volatile.tsv
index 146ef00618..ea980d51df 100644
--- a/test/odf-validate/gate-volatile.tsv
+++ b/test/odf-validate/gate-volatile.tsv
@@ -12,3 +12,4 @@
 0232_test-review-stack.odt     redline import stamps Unknown Author changes 
with the load time
 0266_RedlineTest.odt   redline import stamps Unknown Author changes with the 
load time
 0238_parentinvguid.odt the loader gives different shape and frame order in 
fresh sessions (the export is identical)
+0083_StarOffice_Delphi.odt     reload: the height of one frame comes out as 
2540 or 3067 between runs in every mode, cause not found (seen in p2c1 strict 
and p5a ext, not in the other gates)
diff --git a/test/odf-validate/gate.py b/test/odf-validate/gate.py
index 3b1ef99607..9e61f84900 100644
--- a/test/odf-validate/gate.py
+++ b/test/odf-validate/gate.py
@@ -19,7 +19,7 @@
 #
 #**************************************************************
 
-# usage: gate.py <tag> [--stages s,...] [--modes ext,strict] [--prev DIR] 
[--jobs FILE] [--limit N] [--port P]
+# usage: gate.py <tag> [--stages s,...] [--modes ext,strict] [--fixture-modes 
v00,v10,v11,ext,strict] [--prev DIR] [--jobs FILE] [--limit N] [--port P]
 #                [--build mod,...] [--libs lib.dylib,...] [--stall SECONDS] 
[--force] [--crosscheck]
 # The corpus regression gate as one resumable run in runs/gate-<tag>/. Stages, 
in order:
 #   build     rebuild the modules (--build) and deliver them to the solver
@@ -111,7 +111,7 @@ def bridge_dead(path):
         d = json.load(open(path))
     except Exception:
         return False
-    return isinstance(d, dict) and str(d.get("error", "")).startswith("Binary 
URP bridge")
+    return isinstance(d, dict) and (str(d.get("error", "")).startswith("Binary 
URP bridge") or str(d.get("body_error", "")).startswith("Binary URP bridge"))
 
 
 def dump_dir(src, dest, profile, port, stall, log, tool=None, poll=2.0):
@@ -176,6 +176,7 @@ class Gate:
         self.res_path = os.path.join(self.run, "results.json")
         self.res = json.load(open(self.res_path)) if 
os.path.exists(self.res_path) else {}
         self.modes = a.modes.split(",")
+        self.fix_modes = a.fixture_modes.split(",")
         self.prev = os.path.abspath(a.prev) if a.prev else None
 
     def save(self):
@@ -274,7 +275,7 @@ class Gate:
         val = json.load(open(os.path.join(md, "val.json")))
         r["errors"] = {v: len(e) for v, e in val["errors"].items()}
         r["packages"] = len(val["packages"])
-        for v in ("12", "14", "12x"):
+        for v in ("12", "14", "12x", "13", "13x"):
             kp = os.path.join(md, "kinds%s.json" % ("" if v == "12" else v))
             run(PY + [os.path.join(D, "report.py"), os.path.join(md, 
"val.json"), kp, v], os.path.join(md, "report%s.log" % v))
             r["kinds" + v] = len(json.load(open(kp)))
@@ -375,7 +376,7 @@ class Gate:
             return ("pf13-" if s.startswith("page-fill-1_3/") else "") + b + 
"." + ext
         sources = sorted({e[0] for e in entries})
         res, threads = {}, []
-        for i, mode in enumerate(FIX_MODES):
+        for i, mode in enumerate(self.fix_modes):
             def one(mode=mode, i=i):
                 md = os.path.join(self.run, "fixtures", mode)
                 out = os.path.join(md, "out")
@@ -408,14 +409,14 @@ class Gate:
         changed = []
         if pf:
             prev = json.load(open(pf)).get("fixtures", {})
-            for mode in FIX_MODES:
+            for mode in self.fix_modes:
                 for k, c in res.get(mode, {}).get("checks", {}).items():
                     pc = prev.get(mode, {}).get("checks", {}).get(k)
                     if pc is not None and pc != c:
                         changed.append("%s %s" % (mode, k))
         res["changed_vs_prev"] = changed if pf else "no previous fixtures 
results"
         res["ok"] = all(res[m]["drive_rc"] == 0 and res[m]["failed"] == 0 and 
not res[m]["missing"] and
-                        all("error" not in c and c["total"] for c in 
res[m]["checks"].values()) and not res[m]["problems"] for m in FIX_MODES) and 
not changed
+                        all("error" not in c and c["total"] for c in 
res[m]["checks"].values()) and not res[m]["problems"] for m in self.fix_modes) 
and not changed
         return res
 
 
@@ -424,6 +425,7 @@ def main():
     ap.add_argument("tag")
     ap.add_argument("--stages", 
default="refresh,corpus,validate,dump,diff,fixtures")
     ap.add_argument("--modes", default="ext,strict")
+    ap.add_argument("--fixture-modes", default=",".join(FIX_MODES))
     ap.add_argument("--prev")
     ap.add_argument("--jobs")
     ap.add_argument("--limit", type=int, default=0)

Reply via email to