summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/strace/strace_4.24.bb
diff options
context:
space:
mode:
authorAnuj Mittal <anuj.mittal@intel.com>2018-10-05 19:24:01 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-09 19:04:02 +0100
commit9b48842834d6ab3939237affe5b19facc72031be (patch)
tree302bd021663da2f752f8197dd4eb8e823b74a0c3 /meta/recipes-devtools/strace/strace_4.24.bb
parent194ce1539ee89b4e8ddce927623079dbe0b7c56b (diff)
downloadpoky-9b48842834d6ab3939237affe5b19facc72031be.tar.gz
strace: fix ptests
* Let automake use parallel test harness which ensures that appropriate environment variables are actually used. * Copy generated config.h as part of ptest package and define a variable in tests Makefile to control the name of target that we'd like to invoke for tests instead of relying on default value. * configure relies on tools that are not available in release tarballs resulting in warnings and failed tests. Get the required information from available files instead. * Reduces the count of failing tests to 18 from 35. The rest of tests fail or get skipped mostly because of missing syscalls. Number of tests getting skipped can probably be reduced further. Fixes [YOCTO #12948] (From OE-Core rev: dcd674181f31a12c100f91cf6a1c3f3d52b775a2) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/strace/strace_4.24.bb')
-rw-r--r--meta/recipes-devtools/strace/strace_4.24.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace_4.24.bb b/meta/recipes-devtools/strace/strace_4.24.bb
index e6f7e9cba7..9e40a064f8 100644
--- a/meta/recipes-devtools/strace/strace_4.24.bb
+++ b/meta/recipes-devtools/strace/strace_4.24.bb
@@ -44,6 +44,8 @@ do_compile_ptest() {
44 44
45do_install_ptest() { 45do_install_ptest() {
46 oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} 46 oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
47 install -m 755 ${S}/test-driver ${D}${PTEST_PATH}
48 install -m 644 ${B}/config.h ${D}${PTEST_PATH}
47 sed -i -e '/^src/s/strace.*[1-9]/ptest/' \ 49 sed -i -e '/^src/s/strace.*[1-9]/ptest/' \
48 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ 50 -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
49 -e 's|${DEBUG_PREFIX_MAP}||g' \ 51 -e 's|${DEBUG_PREFIX_MAP}||g' \