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 <samuli.piippo@qt.io>
This commit is contained in:
Ari Parkkila 2024-05-24 12:57:45 +03:00
parent 6391fcbd0d
commit df5ae777a4

View File

@ -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}}" \
' _ {} \;