File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # building project for the first time
4
- ./gradlew --info clean build || exit 1
5
-
6
3
function run_test() {
7
4
abi=$1
8
5
api_level=$2
9
6
emulator_name=" test_${abi} _${api_level} "
7
+ echo " ==============================================="
8
+ echo " Starting Tests for ${emulator_name} "
9
+ echo " ==============================================="
10
10
echo no | android create avd -c 50M --force -n ${emulator_name} -t ${api_level} --abi ${abi}
11
11
emulator -partition-size 256 -avd ${emulator_name} -no-skin -no-boot-anim -no-audio -no-window -gpu on &
12
12
EMU_PID=$!
13
13
./wait_for_emulator || exit 1
14
- adb shell input keyevent 82 &
15
-
14
+ adb -v time logcat -s FFmpegInstrumentationTest &
15
+ LOGCAT_PID= $!
16
16
# Running Tests
17
- ./gradlew --info connectedCheck || exit 1
17
+ ./gradlew --info build connectedCheck || exit 1
18
18
19
19
# Killing emulator
20
- kill -9 $EMU_PID
20
+ kill -9 $EMU_PID $LOGCAT_PID
21
21
22
22
# delete emulator
23
23
sleep 5 # wait for emulator to get killed
24
24
android delete avd -n ${emulator_name} # delete emulator
25
+ echo " ==============================================="
26
+ echo " Finished Tests for ${emulator_name} "
27
+ echo " ==============================================="
25
28
}
26
29
27
30
# x86 android-16
You can’t perform that action at this time.
0 commit comments