[OE-core] [PATCH] diffutils/run-ptest: support to run at arbitrary path
Burton, Ross
ross.burton at intel.com
Thu Jun 13 10:07:49 UTC 2019
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 <hongxu.jia at windriver.com> 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 <hongxu.jia at windriver.com>
> ---
> 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
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
More information about the Openembedded-core
mailing list