diff options
Diffstat (limited to 'android/scripts/bionic-benchmarks.sh')
-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 '/' '_') |