mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
valgrind: fix call/cachegrind ptests
Use the *_annotate executables from ${bindir}
Actually install cachegrind/tests/a.c since it is used by
the call/cachegrind/tests/ann[12].vgtest files.
With this change and the previous commits, the ptest results
on qemux86-64 when invoked with:
runqemu qemux86 kvm nographic slirp qemuparams="-m 2048"
are:
=== Test Summary ===
TOTAL: 159
PASSED: 149
FAILED: 1
SKIPPED: 9
Only drd/tests/pth_detached3 remains to be fixed.
(From OE-Core rev: 7fc21775e62fddd6620d49a6cf00ca914ba6b4ba)
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5ee06716de
commit
3fc20fcef4
@@ -157,6 +157,8 @@ do_install_ptest() {
|
|||||||
cd $saved_dir
|
cd $saved_dir
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Hide then restore a.c that is used by ann[12].vgtest in call/cachegrind
|
||||||
|
mv ${D}${PTEST_PATH}/cachegrind/tests/a.c ${D}${PTEST_PATH}/cachegrind/tests/a_c
|
||||||
# clean out build artifacts before building the rpm
|
# clean out build artifacts before building the rpm
|
||||||
find ${D}${PTEST_PATH} \
|
find ${D}${PTEST_PATH} \
|
||||||
\( -name "Makefile*" \
|
\( -name "Makefile*" \
|
||||||
@@ -165,6 +167,14 @@ do_install_ptest() {
|
|||||||
-o -name "*.S" \
|
-o -name "*.S" \
|
||||||
-o -name "*.h" \) \
|
-o -name "*.h" \) \
|
||||||
-exec rm {} \;
|
-exec rm {} \;
|
||||||
|
mv ${D}${PTEST_PATH}/cachegrind/tests/a_c ${D}${PTEST_PATH}/cachegrind/tests/a.c
|
||||||
|
|
||||||
|
# find *_annotate in ${bindir} for yocto build
|
||||||
|
sed -i s:\.\./\.\./cachegrind/cg_annotate:${bindir}/cg_annotate: ${D}${PTEST_PATH}/cachegrind/tests/ann1.vgtest
|
||||||
|
sed -i s:\.\./\.\./cachegrind/cg_annotate:${bindir}/cg_annotate: ${D}${PTEST_PATH}/cachegrind/tests/ann2.vgtest
|
||||||
|
|
||||||
|
sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann1.vgtest
|
||||||
|
sed -i s:\.\./\.\./callgrind/callgrind_annotate:${bindir}/callgrind_annotate: ${D}${PTEST_PATH}/callgrind/tests/ann2.vgtest
|
||||||
|
|
||||||
# needed by massif tests
|
# needed by massif tests
|
||||||
cp ${B}/massif/ms_print ${D}${PTEST_PATH}/massif/ms_print
|
cp ${B}/massif/ms_print ${D}${PTEST_PATH}/massif/ms_print
|
||||||
|
|||||||
Reference in New Issue
Block a user