summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-06-13 04:06:24 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-06-30 22:34:22 +0100
commitb734917ebcf0dc1ba5ffae30881559c1acb4f172 (patch)
treec33a3a6e4cc5a07a54eb6137daf4b89c040922fd
parenta4d9c34bb857de0998995dcc06889759196f8476 (diff)
downloadpoky-b734917ebcf0dc1ba5ffae30881559c1acb4f172.tar.gz
poky-b734917ebcf0dc1ba5ffae30881559c1acb4f172.tar.bz2
poky-b734917ebcf0dc1ba5ffae30881559c1acb4f172.zip
diffutils/run-ptest: support to run at arbitrary path
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 ... (From OE-Core rev: ba4e54609e80abe12939bc01871d78d1914fdbaf) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/diffutils/diffutils/run-ptest3
1 files changed, 2 insertions, 1 deletions
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"