summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2022-05-18 00:26:03 +0300
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-05-31 07:07:02 +0000
commit8330a7ec5988cc2f7187685a959d7daa8d8db610 (patch)
tree7ab7153b22e0e6fce4fc330e7ae17b31f529ab53
parent1fc533376ff488371a58864a7863b6a83869eea1 (diff)
Make sure qml test data is packaged as test resources
This will make sure the test data is packaged and available on device at runtime. Task-number: QTBUG-88846 Change-Id: I9a62299243a784b5e3857ddd968a2abcdd3d6d54 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Sami Varanka <sami.varanka@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit efdb022abcf46445f0dabffd1c2f4f690b6d9940) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--tests/auto/qmltest/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qmltest/CMakeLists.txt b/tests/auto/qmltest/CMakeLists.txt
index 8ab433b4..3a53e40f 100644
--- a/tests/auto/qmltest/CMakeLists.txt
+++ b/tests/auto/qmltest/CMakeLists.txt
@@ -1,9 +1,15 @@
+file(GLOB_RECURSE test_data_glob
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ *)
+list(APPEND test_data ${test_data_glob})
+
qt_internal_add_test(tst_qmltest
QMLTEST
SOURCES
tst_qmltest.cpp
PUBLIC_LIBRARIES
Qt::Gui
+ TESTDATA ${test_data}
)
set(qmltest_resource_files