Pass the test executable path to the test script to avoid the assumption that they're both in the same directory.
Signed-off-by: Stuart Haslam <stuart.has...@linaro.org> --- Change in v2; correct name of executable test/performance/Makefile.am | 2 ++ test/performance/odp_scheduling_run | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/performance/Makefile.am b/test/performance/Makefile.am index 3be3721..54cf529 100644 --- a/test/performance/Makefile.am +++ b/test/performance/Makefile.am @@ -1,5 +1,7 @@ include $(top_srcdir)/test/Makefile.inc +TESTS_ENVIRONMENT = TEST_DIR=${builddir} + EXECUTABLES = COMPILE_ONLY = odp_scheduling diff --git a/test/performance/odp_scheduling_run b/test/performance/odp_scheduling_run index a96a3d2..b64a79d 100755 --- a/test/performance/odp_scheduling_run +++ b/test/performance/odp_scheduling_run @@ -3,6 +3,7 @@ # Script that passes command line arguments to odp_scheduling test when # launched by 'make check' +TEST_DIR="${TEST_DIR:-$(dirname $0)}" ret=0 run() @@ -10,7 +11,7 @@ run() echo odp_scheduling_run starts with $1 worker threads echo =============================================== - ./odp_scheduling -c $1 || ret=1 + $TEST_DIR/odp_scheduling -c $1 || ret=1 } run 1 -- 2.1.1 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp