blob: a354889bc8e5c1da7d9792ded0b28209a21d2c2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#!/bin/bash
#need to be defined for different benchmark apks
activity="com.antutu.ABenchMark/.ABenchMarkStart"
apk_file_name="AnTuTu6.0.4.apk"
test_method="python vc.py"
apk_package="com.antutu.ABenchMark"
apk_3d_name="antutu_benchmark_v6_3d_f1.apk"
apk_3d_pkg="com.antutu.benchmark.full"
function install_3d_benchmark(){
get_file_with_base_url "${apk_3d_name}" "${BASE_URL}" "${D_APKS}"
if [ $? -ne 0 ];then
echo "Failed to get the Apk file of ${apk_3d_name}"
exit 1
fi
adb install -r "${D_APKS}/${apk_3d_name}"
if [ $? -ne 0 ]; then
echo "Failed to install ${loop_app_apk}."
exit 1
fi
}
# hack for https://bugs.linaro.org/show_bug.cgi?id=2389
function hack_for_dma_hdmi_audio(){
adb root
adb shell stop media
adb shell start media
}
function func_aututu6_post_install(){
install_3d_benchmark
hack_for_dma_hdmi_audio
}
function uninstall_3d_benchmark(){
pkg_3d="com.antutu.benchmark.full"
func_kill_uninstall "${apk_3d_name}" "${apk_3d_pkg}"
}
#following should no need to modify
parent_dir=`dirname ${0}`
source "${parent_dir}/../common/common.sh"
post_install="func_aututu6_post_install"
post_uninstall="uninstall_3d_benchmark"
timeout=30m
main "$@"
|