diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2016-09-22 22:24:59 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2016-09-22 22:24:59 +0800 |
commit | 210276a0fe8462dbe328fefb3677d545d6eef17f (patch) | |
tree | a4a962f10589157772f834f5f6bf97c3f7125272 | |
parent | 7f319ba82b05da329514f00e109a5689df11abf6 (diff) |
android bionic-benchmarks.sh: update to find the correct path
and set the bionic-benchmarks commands execute permission
Change-Id: Ia126fbbea7f65230a3df852f3be9ab25271bea31
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | android/scripts/bionic-benchmarks.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/android/scripts/bionic-benchmarks.sh b/android/scripts/bionic-benchmarks.sh index 252bb4a..6b01145 100755 --- a/android/scripts/bionic-benchmarks.sh +++ b/android/scripts/bionic-benchmarks.sh @@ -6,11 +6,16 @@ local_file_parent=$(cd $(dirname ${local_file_path}); pwd) test_bionic_benchmark(){ local arch=$1 - if [ "X$arch" != "X32" ] && [ "X$arch" != "X64" ]; then + local cmd="" + if [ "X$arch" != "X32" ]; then + cmd="/data/benchmarktest/bionic-benchmarks/bionic-benchmarks32" + elif [ "X$arch" != "X64" ]; then + cmd="/data/benchmarktest64/bionic-benchmarks/bionic-benchmarks64" + else echo "The specified $arch is not specified!" return fi - local cmd="bionic-benchmarks${arch}" + chmod +x ${cmd} if [ -n "$(which ${cmd})" ]; then for res_line in $(${cmd}|grep "BM_"|tr -s ' '|tr ' ' ','); do local key=$(echo $res_line|cut -d, -f1|tr '/' '_') |