elfutils: Add provisions for marking XFAILS in ptests
PATCH 1/2 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.
Signed-off-by Khem Raj <[email protected]>
--- meta/recipes-devtools/elfutils/elfutils_0.193.bb | 5 +++++ meta/recipes-devtools/elfutils/files/run-ptest | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
meta/recipes-devtools/elfutils/elfutils_0.193.bb +5 -0
@@ -63,6 +63,10 @@ do_compile_ptest() { } PTEST_PARALLEL_MAKE = "" +PTEST_XFAILS ?= "" +# See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232 +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)}" + 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"
@@ -100,6 +104,7 @@ do_install_ptest() { cp -r ${B}/debuginfod ${D}${PTEST_PATH} sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile find ${D}${PTEST_PATH} -type f -name *.[hoc] | xargs -i rm {} + sed -i -e 's|@XFAIL_TESTS@|${PTEST_XFAILS}|' ${D}${PTEST_PATH}/run-ptest } EXTRA_OEMAKE:class-native = ""
meta/recipes-devtools/elfutils/files/run-ptest +1 -1
@@ -3,4 +3,4 @@ #This script is used to run elfutils test suites cd tests -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-, +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@"
PATCH 2/2 elfutils: Mark failing ptests on musl as xfails
Elfutils tests do not all run cleanly on musl systems. Make the current set as baseline by making the failing tests as XFAILS. This helps to not regress further more.
Signed-off-by Khem Raj <[email protected]>
--- meta/recipes-devtools/elfutils/elfutils_0.193.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/elfutils/elfutils_0.193.bb +1 -0
@@ -66,6 +66,7 @@ PTEST_PARALLEL_MAKE = "" PTEST_XFAILS ?= "" # See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232 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-dwarf.sh run-stack-d-test.sh run-stack-i-test.sh run-stack-demangled-test.sh run-deleted.sh run-compress-test.sh" do_install_ptest() { # copy the files which needed by the cases