Are you going to fix all of the other recipes?  Very few recipes let
you run the tests from an arbitrary directory, and assume that you're
in the test directory already.

Ross

On Thu, 13 Jun 2019 at 09:08, Hongxu Jia <[email protected]> wrote:
>
> 1. Run run-ptest at arbitrary path
>
> 2. Fix large-subopt.in1 not found
> ...
> |diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in1:
> No such file or directory
> |diff: /lib32-diffutils/3.7-r0/build/../diffutils-3.7/tests/large-subopt.in2:
> No such file or directory
> ...
>
> Signed-off-by: Hongxu Jia <[email protected]>
> ---
>  meta/recipes-extended/diffutils/diffutils/run-ptest | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-extended/diffutils/diffutils/run-ptest 
> b/meta/recipes-extended/diffutils/diffutils/run-ptest
> index 695c5e8a7b..ad467d9bd0 100644
> --- a/meta/recipes-extended/diffutils/diffutils/run-ptest
> +++ b/meta/recipes-extended/diffutils/diffutils/run-ptest
> @@ -1,3 +1,4 @@
>  #!/bin/sh
>
> -make -C tests check-TESTS
> +abs_ptestdir=`echo "$(cd "$(dirname "$0")"; pwd)"`
> +make -C $abs_ptestdir/tests check-TESTS abs_top_srcdir="$abs_ptestdir"
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> [email protected]
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to