diff options
author | Stuart Haslam <stuart.haslam@linaro.org> | 2015-03-17 10:31:56 +0000 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-03-20 12:25:18 +0300 |
commit | e83523a8c05aa6821f0620cf4afba9485bd17acc (patch) | |
tree | 5fe1af4eb040d67138018c0fc8d5d32fb4204ada /test/performance/odp_scheduling_run | |
parent | bb96116e7f780517f687cf7e61eac1bdfa72d93b (diff) |
performance: scheduling: add support for VPATH builds
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>
Tested-by: Mike Holmes <mike.holmes@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'test/performance/odp_scheduling_run')
-rwxr-xr-x | test/performance/odp_scheduling_run | 3 |
1 files changed, 2 insertions, 1 deletions
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 |