Introduce a new module `TestInternalPrivate`. Kitware's RunCMake allows to create more granular unit tests using `cmake -P` scripts instead of configuring, generating and building full projects. [ChangeLog][Third-Party Code] Add upstream cmake's RunCMake test infrastructure module to src/testinternal/3rdparty/cmake to aid in creation of cmake auto-tests. Change-Id: I08cb7c6dc6f61bde29f176d58295f4f660b34ca8 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 39e7946cb6562c6f9b1baf5c44b1694922d0538e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 926abdce783542638dcfa59fa1f4218b9cf3a151) |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| README.md | ||
README.md
RunCMake tests
These test suites use upstream CMake's RunCMake test module. See the upstream
documentation on how to add tests.
A few minor adjustments we make:
add_RunCMake_test()function is defined inQtRunCMakeTestHelpersmodule instead of theCMakeLists.txtCMAKE_CMAKE_COMMANDis replaced withCMAKE_COMMANDCMAKE_MODULE_PATHpoints toCMAKE_CURRENT_LIST_DIR(indirectly via variableRunCMakeDir) instead ofCMAKE_CURRENT_SOURCE_DIR
Update /cmake/3rdparty/cmake as needed. Last fetched from v3.31.5.