summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDengke Du <dengke.du@windriver.com>2016-02-23 01:03:38 -0500
committerDengke Du <dengke.du@windriver.com>2016-02-23 01:18:39 -0500
commit133afa4c8a5b79a1b6bceb0ef058a12e2b208b6c (patch)
tree279dc04106a74f88ae15623c473b25f2a1980a16
parent4e5e501155a21fe64a470c626b3afe6d9748308e (diff)
downloadopenembedded-core-contrib-dengke/pTest-strace-fail-fixed.tar.gz
openembedded-core-contrib-dengke/pTest-strace-fail-fixed.tar.bz2
openembedded-core-contrib-dengke/pTest-strace-fail-fixed.zip
pTest-strace fails fixeddengke/pTest-strace-fail-fixed
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@windriver.com>
-rw-r--r--meta/recipes-devtools/strace/strace_4.11.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-devtools/strace/strace_4.11.bb b/meta/recipes-devtools/strace/strace_4.11.bb
index 3e542ca049..51ec5b5427 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"