summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2016-09-22 22:24:59 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-18 09:45:41 +0000
commit5c86a25f24d3e961401fcad29cced0721c297758 (patch)
tree26c4947b33d493e46861812e74fcfd7d3f6faf57 /android
parent9407a03621c9080850e1fa16294ad2cb20eae5d2 (diff)
android bionic-benchmarks.sh: update to find the correct path
and set the bionic-benchmarks commands execute permission Change-Id: I028f9d5847b1214154c81251871180a08cc1008d Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Diffstat (limited to 'android')
-rwxr-xr-xandroid/scripts/bionic-benchmarks.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/android/scripts/bionic-benchmarks.sh b/android/scripts/bionic-benchmarks.sh
index 252bb4a..8f538ff 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 '/' '_')