summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/elfutils/elfutils_0.193.bb5
-rw-r--r--meta/recipes-devtools/elfutils/files/run-ptest2
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}
64PTEST_PARALLEL_MAKE = "" 64PTEST_PARALLEL_MAKE = ""
65 65
66PTEST_XFAILS ?= ""
67# See - https://sourceware.org/bugzilla/show_bug.cgi?id=32232
68PTEST_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
66do_install_ptest() { 70do_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
105EXTRA_OEMAKE:class-native = "" 110EXTRA_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
4cd tests 4cd tests
5 5
6make -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-, 6make -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@"