Message ID | 1426588316-13309-3-git-send-email-stuart.haslam@linaro.org |
---|---|
State | Accepted |
Commit | e83523a8c05aa6821f0620cf4afba9485bd17acc |
Headers | show |
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
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.haslam@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(-)