From 9b48842834d6ab3939237affe5b19facc72031be Mon Sep 17 00:00:00 2001 From: Anuj Mittal Date: Fri, 5 Oct 2018 19:24:01 +0800 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-devtools/strace/strace_4.24.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-devtools/strace/strace_4.24.bb') 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() { do_install_ptest() { oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR} + install -m 755 ${S}/test-driver ${D}${PTEST_PATH} + install -m 644 ${B}/config.h ${D}${PTEST_PATH} sed -i -e '/^src/s/strace.*[1-9]/ptest/' \ -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \ -e 's|${DEBUG_PREFIX_MAP}||g' \ -- cgit v1.2.3-54-g00ecf