Divide a commonlib test and a client test


- An Axivion build generates the following warning:
build/src/openapicommon/common/qoaibaseapi.cpp:279:29: warning:
redefinition with differences compared to definition at
build/tests/auto/qtopenapigen/client/openapigen/cmake_generated/
commonlibtest/common/qoaibaseapi.cpp:279:29
violates ODR
[QtOpenApiCommon::QOAIBaseApi::execute(
QtOpenApiCommon::QOAIHttpRequestInput&,QNetworkRequest&,QByteArray&)]
(Linker-General_ODR_Violation)

The warning was triggered because the qtopenapigen binary contained
the openapicommon library code twice: once through the generated
client code and once through the separately generated openapicommon
library.

As a result, Axivion detected duplicate definitions and reported an
ODR violation.
To avoid this issue, the test was split into two separate binaries:
- A test binary that contains and validates
the openapicommon library.
- A test binary that contains and validates
the generated client library.

This ensures that the openapicommon code is included only once in
each binary and prevents the ODR warning.

Pick-to: 6.12
Change-Id: Iec133abf5752fe21ad32d81a04c555c7974342eb
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit74d26749240fa1f910ee99069a5ad0756a7af3fa
parent1ae2b6e04dfb8ae4fc12f84217fbd2c320984757
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeWed, 17 Jun 2026 09:59:47 +0000