diff options
author | Chase Qi <chase.qi@linaro.org> | 2017-05-18 16:49:09 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2017-05-19 08:17:49 +0000 |
commit | cef93f07cfaef880902fcea0e80898f6717b646e (patch) | |
tree | b2ecdfda15f2c2f24bbc8c85866f48c728eee13c | |
parent | 8a1e036448eb3e82e47a473c0cdcccc395e0efb2 (diff) |
automated: android: tjbench: add support for Android O and master
Change-Id: I909ec3a6285dd2a31bd60f3034c5875c3de06bc3
Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-x | automated/android/tjbench/tjbench.sh | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/automated/android/tjbench/tjbench.sh b/automated/android/tjbench/tjbench.sh index b94f42e..6961e66 100755 --- a/automated/android/tjbench/tjbench.sh +++ b/automated/android/tjbench/tjbench.sh @@ -48,12 +48,14 @@ parse_log() { | tee -a "${RESULT_FILE}" } -for test in tjbench32 tjbench64; do - if ! adb_shell_which "${test}"; then - report_fail "check_${test}_existence" - exit 0 - fi -done +if adb_shell_which "tjbench32" && adb_shell_which "tjbench64"; then + cmd_name="tjbench" +elif adb_shell_which "tj32" && adb_shell_which "tj64"; then + cmd_name="tj" +else + report_fail "check_cmd_existence" + exit 0 +fi for img in ${IMGS}; do [ ! -f "./${img}" ] && \ @@ -61,11 +63,11 @@ for img in ${IMGS}; do adb_push "./${img}" "/data/local/tmp/tjbench/" img_path="/data/local/tmp/tjbench/${img}" - for test in tjbench32 tjbench64; do + for test in ${cmd_name}32 ${cmd_name}64; do img_name="$(echo "${img}" | sed 's/[.]/_/g')" case "${test}" in - tjbench32) prefix="32bit_${img_name}" ;; - tjbench64) prefix="64bit_${img_name}" ;; + ${cmd_name}32) prefix="32bit_${img_name}" ;; + ${cmd_name}64) prefix="64bit_${img_name}" ;; esac info_msg "device-${ANDROID_SERIAL}: About to run ${test}..." |