From 41820820280b67a97cd77e5ed4b5cd63a5dd95d5 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 7 May 2024 09:17:48 +0000 Subject: [PATCH] ptest: use builtin test data Builtin testdata packages all test data files into resources. This is used on mobile platforms by default. Enable it for the ptest builds. We can then remove copying of the source files for the tests. Change-Id: I5e27b3a3a43ed2993eb5570628f023da3f1ed4d5 Reviewed-by: Ari Parkkila Reviewed-by: Alex Bu --- recipes-qt/qt6/qt6-ptest.inc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc index 68667a5..f13dfa5 100644 --- a/recipes-qt/qt6/qt6-ptest.inc +++ b/recipes-qt/qt6/qt6-ptest.inc @@ -33,6 +33,7 @@ EOF -DCMAKE_STAGING_PREFIX=${D}${prefix} \ -DCMAKE_SKIP_RPATH=ON \ -DQT_DISABLE_NO_DEFAULT_PATH_IN_QT_PACKAGES=ON \ + -DQT_FORCE_BUILTIN_TESTDATA=ON \ ${S} \ -Wno-dev ${CMAKE_VERBOSE} cmake --build ${B_PTEST} --target all @@ -48,9 +49,6 @@ EOF \) -exec sh -c '\ install -D "$1" "${D}${PTEST_PATH}${1#${B_PTEST}}" \ ' _ {} \; - - # tests may depend on files from sources - cp -r ${S}/tests/$tests ${D}${PTEST_PATH}/tests fi done }