[OE-core] [PATCH 1/1] strace: fix ptest execution failure

Tudor Florea Tudor.Florea at enea.com
Tue May 27 15:16:02 UTC 2014



> -----Original Message-----
> From: openembedded-core-bounces at lists.openembedded.org
> [mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf
> Of Chong Lu
> Sent: Tuesday, May 27, 2014 10:03
> To: openembedded-core at lists.openembedded.org
> Subject: [OE-core] [PATCH 1/1] strace: fix ptest execution failure
> 
> Modify ptest suite to make it execute successfully.
> 
> Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
> ---
>  meta/recipes-devtools/strace/strace-4.8/run-ptest | 2 +-
>  meta/recipes-devtools/strace/strace_4.8.bb        | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/strace/strace-4.8/run-ptest
> b/meta/recipes-devtools/strace/strace-4.8/run-ptest
> index 133cf92..66639fb 100755
> --- a/meta/recipes-devtools/strace/strace-4.8/run-ptest
> +++ b/meta/recipes-devtools/strace/strace-4.8/run-ptest
> @@ -1,2 +1,2 @@
>  #!/bin/sh
> -make -C tests -k runtest-TESTS
> +make -C tests -k check-TESTS
I have the same comment as in the previous patch. I'd rather use serial-tests in configure.ac file instead of this change.

> diff --git a/meta/recipes-devtools/strace/strace_4.8.bb b/meta/recipes-
> devtools/strace/strace_4.8.bb
> index 71563d4..9769cd4 100644
> --- a/meta/recipes-devtools/strace/strace_4.8.bb
> +++ b/meta/recipes-devtools/strace/strace_4.8.bb
> @@ -41,6 +41,12 @@ do_compile_ptest() {
> 
>  do_install_ptest() {
>  	oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B}
> DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
> +	install ${S}/test-driver ${D}${PTEST_PATH}
> +	sed -e 's/bash/sh/' \
> +	    -e 's/gawk/awk/' \
> +	    -e 's/^top_srcdir = \(.*\)/top_srcdir = ../' \
> +	    -e '/^all:/a\\t@:' \
> +	    -i ${D}${PTEST_PATH}/${TESTDIR}/Makefile
>  }
> 
>  BBCLASSEXTEND = "native"
> --
> 1.8.1.2
> 
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list