diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-08-12 23:24:26 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-08-14 10:31:10 +0100 |
| commit | 7810f55a1555fb0f45032e7fde409e56e1e67f00 (patch) | |
| tree | 4caf2b61d8e20c2ec09b06949fad03d4fdb0f815 | |
| parent | 421747c600a55e40a4b34c2fc2dc73c0414eb7ef (diff) | |
| download | poky-7810f55a1555fb0f45032e7fde409e56e1e67f00.tar.gz | |
elfutils: Add provisions for marking XFAILS in ptests
elfuitls testsuites do not pass on all kind of distro features e.g.
with musl there are failures and with ld-is-lld less numer but it shows
failures too. Make run-ptest treat these as known failures.
(From OE-Core rev: 54f4588d49f5164aa8a404a1cb6a9984fd2b49cd)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/elfutils/elfutils_0.193.bb | 5 | ||||
| -rw-r--r-- | meta/recipes-devtools/elfutils/files/run-ptest | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/meta/recipes-devtools/elfutils/elfutils_0.193.bb b/meta/recipes-devtools/elfutils/elfutils_0.193.bb index 4ccea2bea3..e700c415be 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.193.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.193.bb | |||
| @@ -63,6 +63,10 @@ do_compile_ptest() { | |||
| 63 | } | 63 | } |
| 64 | PTEST_PARALLEL_MAKE = "" | 64 | PTEST_PARALLEL_MAKE = "" |
| 65 | 65 | ||
| 66 | PTEST_XFAILS ?= "" | ||
| 67 | # See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232 | ||
| 68 | 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)}" | ||
| 69 | |||
| 66 | do_install_ptest() { | 70 | do_install_ptest() { |
| 67 | # copy the files which needed by the cases | 71 | # copy the files which needed by the cases |
| 68 | TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles" | 72 | TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint elfcompress elfclassify stack unstrip srcfiles" |
| @@ -100,6 +104,7 @@ do_install_ptest() { | |||
| 100 | cp -r ${B}/debuginfod ${D}${PTEST_PATH} | 104 | cp -r ${B}/debuginfod ${D}${PTEST_PATH} |
| 101 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile | 105 | sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile |
| 102 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} | 106 | find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} |
| 107 | sed -i -e 's|@XFAIL_TESTS@|${PTEST_XFAILS}|' ${D}${PTEST_PATH}/run-ptest | ||
| 103 | } | 108 | } |
| 104 | 109 | ||
| 105 | EXTRA_OEMAKE:class-native = "" | 110 | EXTRA_OEMAKE:class-native = "" |
diff --git a/meta/recipes-devtools/elfutils/files/run-ptest b/meta/recipes-devtools/elfutils/files/run-ptest index d5776fdb53..3c6c14e47f 100644 --- a/meta/recipes-devtools/elfutils/files/run-ptest +++ b/meta/recipes-devtools/elfutils/files/run-ptest | |||
| @@ -3,4 +3,4 @@ | |||
| 3 | #This script is used to run elfutils test suites | 3 | #This script is used to run elfutils test suites |
| 4 | cd tests | 4 | cd tests |
| 5 | 5 | ||
| 6 | make -k installcheck-local CC=gcc abs_srcdir=$PWD abs_builddir=$PWD srcdir=$PWD top_srcdir=$PWD/../ abs_top_builddir=$PWD/../ elfutils_testrun=installed elfutils_tests_rpath=no program_transform_name=s,^,eu-, | 6 | make -k installcheck-local CC=gcc abs_srcdir=$PWD abs_builddir=$PWD srcdir=$PWD top_srcdir=$PWD/../ abs_top_builddir=$PWD/../ elfutils_testrun=installed elfutils_tests_rpath=no program_transform_name=s,^,eu-, XFAIL_TESTS="@XFAIL_TESTS@" |
