diff --git a/recipes-qt/qt6/qt6-ptest.inc b/recipes-qt/qt6/qt6-ptest.inc index bc9481e..d9baf87 100644 --- a/recipes-qt/qt6/qt6-ptest.inc +++ b/recipes-qt/qt6/qt6-ptest.inc @@ -51,6 +51,14 @@ EOF ' _ {} \; fi done + + if [ -e "${B_PTEST}/${baselib}" ]; then + find ${B_PTEST}/${baselib} \ + ! -type d -a \( -executable -o -name qmldir \) \ + -exec sh -c '\ + install -D "$1" "${D}${PTEST_PATH}${1#${B_PTEST}/${baselib}}" \ + ' _ {} \; + fi } fakeroot python do_create_ptest_list() { @@ -91,7 +99,7 @@ INSANE_SKIP:${PN}-ptest += "file-rdeps" PACKAGESPLITFUNCS =+ "remove_ptest_debug" remove_ptest_debug() { - if [ -e ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests ]; then - find ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest/tests -depth -type d -name .debug -exec rm -rf '{}' \; + if [ -e ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest ]; then + find ${PKGD}${QT6_INSTALL_LIBDIR}/${BPN}/ptest -depth -type d -name .debug -exec rm -rf '{}' \; fi }