aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2019-06-13 04:06:24 -0400
committerArmin Kuster <akuster808@gmail.com>2019-06-27 06:56:20 -0700
commitba4e54609e80abe12939bc01871d78d1914fdbaf (patch)
tree94eda02aea93c6514a389f797363e10aa43d95b9
parentd498a41d89adcead8995668f54c01a175c081bca (diff)
downloadopenembedded-core-contrib-ba4e54609e80abe12939bc01871d78d1914fdbaf.tar.gz
openembedded-core-contrib-ba4e54609e80abe12939bc01871d78d1914fdbaf.tar.bz2
openembedded-core-contrib-ba4e54609e80abe12939bc01871d78d1914fdbaf.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 ... 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>
-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"