elfutils: skip run-stackprof-system.sh ptest under qemu
PATCH 1/1 elfutils: skip run-stackprof-system.sh ptest under qemu
Non-deterministic under qemu as needs userspace perf samples in a fixed window Issue already reported upstream and updated ticket with details
Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544
Skip test case via ELFUTILS_PTEST_SKIP
ptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILED
with change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILED
[YOCTO #16473]
--- meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
meta/recipes-devtools/elfutils/elfutils_0.197.bb +10 -0
@@ -65,6 +65,9 @@ PTEST_XFAILS ?= "" PTEST_XFAILS:append = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', ' run-strip-strmerge.sh run-elflint-self.sh run-backtrace-data.sh run-reverse-sections-self.sh', '', d)}" PTEST_XFAILS:append:libc-musl = " run-large-elf-file.sh run-backtrace-data.sh run-backtrace-native.sh run-backtrace-native-core.sh run-stack-d-test.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-compress-test.sh" +ELFUTILS_PTEST_SKIP ?= "" +ELFUTILS_PTEST_SKIP:append:qemuall = " run-stackprof-system.sh" + do_install_ptest() { # copy the files which needed by the cases TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles stackprof"
@@ -106,6 +109,13 @@ do_install_ptest() { sed -i -e 's|@XFAIL_TESTS@|${PTEST_XFAILS}|' ${D}${PTEST_PATH}/run-ptest } +do_install_ptest:append() { + for t in ${ELFUTILS_PTEST_SKIP}; do + sed -i -e '\|stackprof-subr.sh|a echo "unreliable under qemu, skipping (PR34544)"; exit 77' \ + ${D}${PTEST_PATH}/tests/$t + done +} + EXTRA_OEMAKE:class-native = "" EXTRA_OEMAKE:class-nativesdk = ""
Hello, Jaipaul
Quoted 18 lines · Jaipaul Cheernam
Non-deterministic under qemu as needs userspace perf samples in a fixed window Issue already reported upstream and updated ticket with details
Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544
Skip test case via
ELFUTILS_PTEST_SKIPptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILEDwith change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILED
Quoted 6 lines
[YOCTO #16473]
Signed-off-by Jaipaul Cheernam <[email protected]>--- meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)
(...)
Thanks for the patch.
Out of curiosity, why using an :append (unconditional) for do_install_ptest() instead of simply adding the chunk of code into the task itself?
Signature · 2 lines
Best regards, João Marcos Costa
I am carrying some patches to fix them, see if they can help and you can consolidate. -
https://git.openembedded.org/openembedded-core-contrib/commit/?h=yoe/mut&id=0d9347b760902b451e02ccda31c34abdc2c62acb
Quoted 53 lines · Joao Marcos Costa via openembedded-core
Hello, Jaipaul
Quoted 1 line · Jaipaul Cheernam
Non-deterministic under qemu as needs userspace perf samples in a fixed
window
Quoted 17 lines
Issue already reported upstream and updated ticket with details
Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=34544
Skip test case via
ELFUTILS_PTEST_SKIPptest results:
Before:
glibc: 263 PASSED, 45 SKIPPED, 0 FAILED
musl: 255 PASSED, 44 SKIPPED, 0 FAILED
clang: 263 PASSED, 45 SKIPPED, 0 FAILEDwith change:
glibc: 262 PASSED, 46 SKIPPED, 0 FAILED
musl: 254 PASSED, 45 SKIPPED, 0 FAILED,
clang: 262 PASSED, 46 SKIPPED, 0 FAILEDQuoted 6 lines
[YOCTO #16473]
Signed-off-by Jaipaul Cheernam <[email protected]>--- meta/recipes-devtools/elfutils/elfutils_0.197.bb | 10 ++++++++++ 1 file changed, 10 insertions(+)(...)
Thanks for the patch.
Out of curiosity, why using an :append (unconditional) for
do_install_ptest()instead of simply adding the chunk of code into the task itself?Reviewed-by João Marcos Costa <[email protected]>--
Best regards,
João Marcos Costa-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#249051):
https://lists.openembedded.org/g/openembedded-core/message/249051
Mute This Topic: https://lists.openembedded.org/mt/122011114/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-