[oe-commits] [openembedded-core] 25/116: strace: fix ptest execution

git at git.openembedded.org git at git.openembedded.org
Sun Feb 28 11:29:11 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit f64d2ed055d58a36ace276cfd5956d1970ee80ee
Author: Dengke Du <dengke.du at windriver.com>
AuthorDate: Tue Feb 23 02:59:04 2016 -0500

    strace: fix ptest execution
    
    When run the strace ptest on the target, the test files located in the "/usr/lib/strace/ptest/tests",
    but the run-test script use the path "srcdir = ../../strace-*/tests"to find the necessary files, so it
    can't find the necessary files, it fails. So change the variable srcdir, replace the strace-* to ptest
    when do the do_install_ptest() function using the following:
    	sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
    
    Signed-off-by: Dengke Du <dengke.du at windriver.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-devtools/strace/strace_4.11.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/strace/strace_4.11.bb b/meta/recipes-devtools/strace/strace_4.11.bb
index 3e542ca..51ec5b5 100644
--- a/meta/recipes-devtools/strace/strace_4.11.bb
+++ b/meta/recipes-devtools/strace/strace_4.11.bb
@@ -41,6 +41,7 @@ do_compile_ptest() {
 
 do_install_ptest() {
 	oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
+	sed -i -e '/^src/s/strace.*[1-9]/ptest/' ${D}/${PTEST_PATH}/${TESTDIR}/Makefile
 }
 
 BBCLASSEXTEND = "native"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list