From df5ae777a4a526a7d5cd0b7ec2f6ca77e5dd0a9f Mon Sep 17 00:00:00 2001 From: Ari Parkkila Date: Fri, 24 May 2024 12:57:45 +0300 Subject: [PATCH] ptests: Install external resource files Install .rcc files to support testing of loading resources at runtime. Task-number: QTBUG-118680 Change-Id: I9963c2cdc5c51165b7656e01237f09e499a838fc Reviewed-by: Samuli Piippo --- recipes-qt/qt6/qt6-ptest.inc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc index 9ecd8ae..68667a5 100644 --- a/recipes-qt/qt6/qt6-ptest.inc +++ b/recipes-qt/qt6/qt6-ptest.inc @@ -41,9 +41,11 @@ EOF do if [ -e "${B_PTEST}/tests/$tests" ]; then install -d ${D}${PTEST_PATH}/tests - find ${B_PTEST}/tests/$tests \ - \( -executable \! -type d -o -name qmldir \) \ - -exec sh -c '\ + find ${B_PTEST}/tests/$tests ! -type d -a \( \ + -executable -o \ + -name qmldir -o \ + -name *.rcc \ + \) -exec sh -c '\ install -D "$1" "${D}${PTEST_PATH}${1#${B_PTEST}}" \ ' _ {} \;