pTest-strace fail fixed
cover pTest-strace fail fixed
The following changes since commit 4e5e501155a21fe64a470c626b3afe6d9748308e:
bitbake: data_smart: Drop default expand=False to getVarFlag [API change] (2016-02-18 07:48:00 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib dengke/pTest-strace-fail-fixed
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=dengke/pTest-strace-fail-fixed
Dengke Du (1):
pTest-strace fails fixed
meta/recipes-devtools/strace/strace_4.11.bb | 1 + 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
PATCH 1/1 pTest-strace fails 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--- meta/recipes-devtools/strace/strace_4.11.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-devtools/strace/strace_4.11.bb +1 -0
@@ -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"
Signature · 1 line
1.9.1