Message ID | 20251018101937.3979005-1-skandigraun@gmail.com |
---|---|
State | New |
Headers | show |
Series | [meta-oe,kirkstone] oprofile: Fix failing ptests | expand |
Thanks for fixing the ptests Gyorgi, I do run the meta-openembedded ptests regularly and every bit helps in keeping the bar up. On Sat, Oct 18, 2025 at 3:19 AM Gyorgy Sarvari via lists.openembedded.org <skandigraun=gmail.com@lists.openembedded.org> wrote: > > From: Khem Raj <raj.khem@gmail.com> > > Files need to be in right directory structure > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > (cherry picked from commit 51b38953a6e7f2769b5f4ac021f55299f3c68b99) > Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> > --- > meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb > index 23e7d3d5c3..fb10992890 100644 > --- a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb > +++ b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb > @@ -56,16 +56,18 @@ do_install_ptest() { > find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} > done > > - # needed by some libop tests > - cp -r events ${D}${PTEST_PATH} > - > + install -d ${D}${PTEST_PATH}/../${BP}/events ${D}${PTEST_PATH}/../${BP}/libutil++/tests > # needed by libregex regex_test > cp libregex/stl.pat ${D}${PTEST_PATH}/libregex > cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests > > # needed by litutil++ file_manip_tests > + cp ${S}/libutil++/tests/file_manip_tests.cpp \ > + libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/../${BP}/libutil++/tests > cp ${S}/libutil++/tests/file_manip_tests.cpp \ > libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests > + # needed by some libop tests > + cp -R --no-dereference --preserve=mode,links -v ${S}/events ${D}${PTEST_PATH}/../${BP} > } > > RDEPENDS:${PN} = "binutils-symlinks" > @@ -73,3 +75,4 @@ RDEPENDS:${PN} = "binutils-symlinks" > FILES:${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" > FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" > FILES:${PN}-staticdev += "${libdir}/${BPN}/lib*.a" > +FILES:${PN}-ptest += "${libdir}/${BPN}/${BP}" > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#120783): https://lists.openembedded.org/g/openembedded-devel/message/120783 > Mute This Topic: https://lists.openembedded.org/mt/115821404/1997914 > Group Owner: openembedded-devel+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb index 23e7d3d5c3..fb10992890 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb +++ b/meta-oe/recipes-kernel/oprofile/oprofile_1.4.0.bb @@ -56,16 +56,18 @@ do_install_ptest() { find ${tooltest} -perm /u=x -type f| cpio -pvdu ${D}${PTEST_PATH} done - # needed by some libop tests - cp -r events ${D}${PTEST_PATH} - + install -d ${D}${PTEST_PATH}/../${BP}/events ${D}${PTEST_PATH}/../${BP}/libutil++/tests # needed by libregex regex_test cp libregex/stl.pat ${D}${PTEST_PATH}/libregex cp libregex/tests/mangled-name ${D}${PTEST_PATH}/libregex/tests # needed by litutil++ file_manip_tests + cp ${S}/libutil++/tests/file_manip_tests.cpp \ + libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/../${BP}/libutil++/tests cp ${S}/libutil++/tests/file_manip_tests.cpp \ libutil++/tests/file_manip_tests.o ${D}${PTEST_PATH}/libutil++/tests + # needed by some libop tests + cp -R --no-dereference --preserve=mode,links -v ${S}/events ${D}${PTEST_PATH}/../${BP} } RDEPENDS:${PN} = "binutils-symlinks" @@ -73,3 +75,4 @@ RDEPENDS:${PN} = "binutils-symlinks" FILES:${PN} = "${bindir} ${libdir}/${BPN}/lib*${SOLIBS} ${datadir}/${BPN}" FILES:${PN}-dev += "${libdir}/${BPN}/lib*${SOLIBSDEV} ${libdir}/${BPN}/lib*.la" FILES:${PN}-staticdev += "${libdir}/${BPN}/lib*.a" +FILES:${PN}-ptest += "${libdir}/${BPN}/${BP}"