From 210276a0fe8462dbe328fefb3677d545d6eef17f Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Thu, 22 Sep 2016 22:24:59 +0800 Subject: 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 --- android/scripts/bionic-benchmarks.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'android') 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 '/' '_') -- cgit v1.2.3