This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch aoo-test-suite in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 374ad9f7d6f766690bf69484f0ee5cb301d3837a Author: Jim Jagielski <[email protected]> AuthorDate: Mon Nov 2 09:30:46 2026 -0500 test/aoo-test: add ASF headers, exclude the JSON files from RAT --- main/rat-excludes | 2 ++ test/aoo-test/.gitignore | 21 +++++++++++++++++++++ test/aoo-test/README.md | 19 +++++++++++++++++++ test/aoo-test/USAGE.md | 19 +++++++++++++++++++ test/aoo-test/data/calcval-cases.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/calcval.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/crash.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/crosscheck.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/odf14.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/reload.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/schema.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/stability.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/expect/twins.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/formula-cases.tsv | 21 +++++++++++++++++++++ test/aoo-test/data/openformula-functions.txt | 21 +++++++++++++++++++++ test/aoo-test/pyproject.toml | 21 +++++++++++++++++++++ 16 files changed, 313 insertions(+) diff --git a/main/rat-excludes b/main/rat-excludes index cc0e6fde53..982ff05d00 100644 --- a/main/rat-excludes +++ b/main/rat-excludes @@ -1044,6 +1044,8 @@ main/xmlsecurity/test_docs/CAs/Sub_CA_2_Root_8/demoCA/crl/DO_NOT_INSTALL_THIS_CR main/xmlsecurity/test_docs/CAs/Sub_CA_2_Root_8/demoCA/crlnumber main/xmlsecurity/test_docs/CAs/Sub_CA_2_Root_8/demoCA/serial main/xmlsecurity/tools/demo/manifest +test/aoo-test/data/fetch.json +test/aoo-test/data/checks/**/*.json test/smoketestdoc/MANIFEST.MF test/testassistant/META-INF/MANIFEST.MF test/testassistant.feature/.project diff --git a/test/aoo-test/.gitignore b/test/aoo-test/.gitignore index 5831ca4913..b22ecf2d48 100644 --- a/test/aoo-test/.gitignore +++ b/test/aoo-test/.gitignore @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + .venv/ __pycache__/ .pytest_cache/ diff --git a/test/aoo-test/README.md b/test/aoo-test/README.md index a3f5a4dc55..549d54ec87 100644 --- a/test/aoo-test/README.md +++ b/test/aoo-test/README.md @@ -1,3 +1,22 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + # AOO test suite A pytest suite for an installed Apache OpenOffice 5 or later. It starts the office you point it at, drives it over UNO, and checks what comes out: ODF conformance in each save mode, import of ODF 1.2 and 1.3 files, document conversion, and a smoke test of the main components. diff --git a/test/aoo-test/USAGE.md b/test/aoo-test/USAGE.md index 11c2cd8b05..3bad674655 100644 --- a/test/aoo-test/USAGE.md +++ b/test/aoo-test/USAGE.md @@ -1,3 +1,22 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> + # Using the suite Run everything from this directory. `python3 -m pytest` is enough; `uv` is not required. diff --git a/test/aoo-test/data/calcval-cases.tsv b/test/aoo-test/data/calcval-cases.tsv index e3a92af72c..e5269141f9 100644 --- a/test/aoo-test/data/calcval-cases.tsv +++ b/test/aoo-test/data/calcval-cases.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # calcval cases for calcval.py. Columns (tab separated): id, formula, mode, expected, note. # formula: AOO API syntax (English function names, ';' separators, '|' row separator in inline arrays), leading '='. # mode: cell | cell@N (plain cell, scratch cell AA<N>; default AA1) | array[:CxR] (setArrayFormula on AA1 sized C columns x R rows; default 1x1). diff --git a/test/aoo-test/data/expect/calcval.tsv b/test/aoo-test/data/expect/calcval.tsv index 0dc630ebed..a6ca8e0b9b 100644 --- a/test/aoo-test/data/expect/calcval.tsv +++ b/test/aoo-test/data/expect/calcval.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. # Deviations from ODF 1.3 Part 4 that AOO keeps on purpose; the case notes in data/calcval-cases.tsv and ODF13-KNOWN-LIMITATIONS.md of the ODF work give the reasons. test_formula_result[DCOUNT.zero.crit] xfail field 0 means the whole database in AOO (legacy); Part 4 4.11.10 wants an error diff --git a/test/aoo-test/data/expect/crash.tsv b/test/aoo-test/data/expect/crash.tsv index fbaca99a90..aeb6067120 100644 --- a/test/aoo-test/data/expect/crash.tsv +++ b/test/aoo-test/data/expect/crash.tsv @@ -1,2 +1,23 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_paragraph_bitmap_fill_mode_does_not_kill_the_office xfail setting FillBitmapMode on a Writer paragraph kills the trunk dev app (SIGSEGV in SwXParagraph::setPropertyValue); the installed 5.1.0 does not crash diff --git a/test/aoo-test/data/expect/crosscheck.tsv b/test/aoo-test/data/expect/crosscheck.tsv index 3e494a6a3e..b640ea1bd4 100644 --- a/test/aoo-test/data/expect/crosscheck.tsv +++ b/test/aoo-test/data/expect/crosscheck.tsv @@ -1,2 +1,23 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_validators_agree[built/t13/annot.odt-ext-extended] xfail odfvalidator -e reports "unexpected character literal" at the annotation text:p that follows the extension element textooo:sender-initials (content.xml 2:3154); jing with foreign content removed reports no error; cause not examined diff --git a/test/aoo-test/data/expect/odf14.tsv b/test/aoo-test/data/expect/odf14.tsv index 134063de4d..1184134353 100644 --- a/test/aoo-test/data/expect/odf14.tsv +++ b/test/aoo-test/data/expect/odf14.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_valid_against_odf_schema[built/t13/chart.ods-strict-14] xfail the ODF 1.4 schema rejects table:cell-range-address in the chart content (C1/content.xml); the ODF 1.2 and 1.3 schemas accept it test_valid_against_odf_schema[built/chart-shapes/chart-shapes.ods-strict-14] xfail the ODF 1.4 schema rejects table:cell-range-address in the chart content (c1/content.xml); the ODF 1.2 and 1.3 schemas accept it diff --git a/test/aoo-test/data/expect/reload.tsv b/test/aoo-test/data/expect/reload.tsv index ff89cd2c7a..921c7a6e21 100644 --- a/test/aoo-test/data/expect/reload.tsv +++ b/test/aoo-test/data/expect/reload.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_reload_check[strict|built/page-fill/page-fill.odt|page_fill] xfail the value read back from the strict copy differs from the one recorded from the extended-mode copy; recorded on the trunk dev app, not analysed per check test_reload_check[strict|built/page-fill/page-fill.odt|hf_fill] xfail the value read back from the strict copy differs from the one recorded from the extended-mode copy; recorded on the trunk dev app, not analysed per check diff --git a/test/aoo-test/data/expect/schema.tsv b/test/aoo-test/data/expect/schema.tsv index c8bcabc7eb..07abf9300a 100644 --- a/test/aoo-test/data/expect/schema.tsv +++ b/test/aoo-test/data/expect/schema.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_valid_against_odf_schema[built/normal-values5b/normal5b.ods-strict-12] xfail the saved chart content has style:chart-properties for a graphic symbol but no chart:symbol-image element, which the schema requires; the symbol-image reload check for the same document also fails and the original fixture file passes it; not analysed test_valid_against_odf_schema[built/normal-values5b/normal5b.ods-strict-13] xfail the saved chart content has style:chart-properties for a graphic symbol but no chart:symbol-image element, which the schema requires; the symbol-image reload check for the same document also fails and the original fixture file passes it; not analysed diff --git a/test/aoo-test/data/expect/stability.tsv b/test/aoo-test/data/expect/stability.tsv index 753890ab13..0fa2dd450c 100644 --- a/test/aoo-test/data/expect/stability.tsv +++ b/test/aoo-test/data/expect/stability.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-strict] flaky in some runs the automatic paragraph styles P1 and P2 swap names between two saves (each heading keeps a style with the same parent); cause not examined test_saving_twice_gives_the_same_content[shipped/template/en-US/internal/idxexample.odt-ext] flaky in some runs the automatic paragraph styles P1 and P2 swap names between two saves (each heading keeps a style with the same parent); cause not examined diff --git a/test/aoo-test/data/expect/twins.tsv b/test/aoo-test/data/expect/twins.tsv index c3c4a39137..6cad3e3153 100644 --- a/test/aoo-test/data/expect/twins.tsv +++ b/test/aoo-test/data/expect/twins.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # test_name<TAB>kind<TAB>reason. See aootest/expect.py. # From the ODF harness's smoke13-known.tsv: twin pairs whose reload dumps differ for a known reason. test_twins_import_alike[*|AddInChart.ods] xfail volatile Calc formula (NOW, TODAY or RAND), as in gate-volatile.tsv diff --git a/test/aoo-test/data/formula-cases.tsv b/test/aoo-test/data/formula-cases.tsv index ca3ec01dca..6fc7bdb034 100644 --- a/test/aoo-test/data/formula-cases.tsv +++ b/test/aoo-test/data/formula-cases.tsv @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # status<TAB>attribute<TAB>value<TAB>message substring. status: ok, or level:rule[+level:rule] (exact findings). attribute@text: outside office:spreadsheet. # values are the attribute text, with \n for a line feed and \u00a0 for a no-break space; the first rule's message must contain the substring. ok table:formula of:=1 diff --git a/test/aoo-test/data/openformula-functions.txt b/test/aoo-test/data/openformula-functions.txt index adac44e131..90b21af170 100644 --- a/test/aoo-test/data/openformula-functions.txt +++ b/test/aoo-test/data/openformula-functions.txt @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + # Names of the functions defined in OpenDocument 1.2 Part 2 (OpenFormula) chapter 6, one per line. # Used by formulacheck.py to tell standard functions from nonstandard ones (Part 2 5.7). ABS diff --git a/test/aoo-test/pyproject.toml b/test/aoo-test/pyproject.toml index bd280d8255..9c50e7fedc 100644 --- a/test/aoo-test/pyproject.toml +++ b/test/aoo-test/pyproject.toml @@ -1,3 +1,24 @@ +################################################################ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# +################################################################ + [project] name = "aoo-test" version = "0.1.0"
