Add the QtOpenAPI generator test
- The tests verify that the generated files match the expected output.
The files are generated using the qt_add_openapi_client() command.
The test suite covers two generation targets:
* Common library
* Client library
- The test enables Axivion analysis checks for both the common
and a client libraries.
- The tests helps to detect future API changes, as any such changes will
require updates to the expected output files.
- Reuse qtopenapi-common.yaml for the common library test. This ensures
that the test uses exactly the same input as the actual library
generation.
- Update the description in qtopenapi-common.yaml, since the CI license
check requires every file containing an SPDX-License-Identifier entry
to also contain a copyright notice.
Pick-to: 6.12
Task-number: QTBUG-144767
Change-Id: Icd717ca9148c5b7697b12be7ec962b822e6d5f0f
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | c1cba3103a75c4c767086cbd2cb7bda5cedcf648 |
| parent | a2bf02c0aece577cb28f9330e48d190d6ddd30c6 |
| author | Tatiana Borisova <tatiana.borisova@qt.io> |
| committer | Tatiana Borisova <tatiana.borisova@qt.io> |
| commit time | Wed, 10 Jun 2026 17:10:18 +0000 |
- M REUSE.toml
- M licenseRule.json
- M src/openapicommon/qtopenapi-common.yaml
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/CMakeLists.txt.mustache
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/common/CMakeLists.txt.mustache
- M src/tools/qtopenapi-generator/src/main/resources/cpp-qt6-client/doc/Doxyfile.in.mustache
- M tests/auto/CMakeLists.txt
- A tests/auto/qtopenapigen/CMakeLists.txt
- A tests/auto/qtopenapigen/client/CMakeLists.txt
- A tests/auto/qtopenapigen/client/openapigen/CMakeLists.txt
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/README.md
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/apiresponse.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/apiresponse.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/category.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/category.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/cmakegeneratedclientexports.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/config.cmake.in
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/doc/Doxyfile.in
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/order.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/order.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/pet.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/pet.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/petapi.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/petapi.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/petstatus.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/petstatus.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/storeapi.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/storeapi.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/tag.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/tag.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/user.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/user.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/userapi.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/clienttest/client/userapi.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/config.cmake.in
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaibaseapi.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaibaseapi.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaicmakecommonlibgeneratedclientcommonexports.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaicommonglobal.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaienum.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaienum.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihelpers.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihelpers.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihttpfileelement.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihttpfileelement.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihttprequest.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaihttprequest.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiobject.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiobject.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiserverconfiguration.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiserverconfiguration.h
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiservervariable.cpp
- A tests/auto/qtopenapigen/client/openapigen/data/cmake_generated/commonlibtest/common/qoaiservervariable.h
- A tests/auto/qtopenapigen/client/openapigen/data/petstore.yaml
- A tests/auto/qtopenapigen/client/openapigen/tst_openapigen.cpp