qtdeclarative/tests/auto/cmake
Alexandru Croitor c5483d1e53 CMake: Add qml app deployment auto test
Add a cmake test that builds two user qml modules and a qml app,
installs the built binaries, in a shared Qt build deploys the
runtime dependencies and then runs the app to confirm that it works.

With a static Qt, the installation of the runtime dependencies is
skipped, but the app should still run, because all the modules plugins
and resources are statically linked in.

The test is expected to pass only when targeting Windows and macOS
(both when using shared and static Qt).

For the static case to work, we explicitly need to add a qrc:///
qml import path, to ensure that user module qmldir files are found.

Pick-to: 6.3
Task-number: QTBUG-98545
Change-Id: Id2abbd669f22f30b4e639bba0b4e14b792e08714
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
2022-03-19 02:55:50 +01:00
..
empty_qmldir Android: various test fixes 2022-03-02 15:21:09 +02:00
qmlimportscanner
qmlquery Provide a function for querying QML module details for deployment 2021-12-13 18:14:45 +01:00
qtquickcompiler
test_import_static_shapes_plugin_resources CMake: Bump almost all cmake_minimum_required calls to 3.16 2021-09-22 20:39:52 +02:00
test_plugins CMake: Bump almost all cmake_minimum_required calls to 3.16 2021-09-22 20:39:52 +02:00
test_qml_app_deployment CMake: Add qml app deployment auto test 2022-03-19 02:55:50 +01:00
tooling_imports
CMakeLists.txt CMake: Add qml app deployment auto test 2022-03-19 02:55:50 +01:00