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 11#! /bin/bash
22
3- # building project for the first time
4- ./gradlew --info clean build || exit 1
5-
63function run_test() {
74 abi=$1
85 api_level=$2
96 emulator_name=" test_${abi} _${api_level} "
7+ echo " ==============================================="
8+ echo " Starting Tests for ${emulator_name} "
9+ echo " ==============================================="
1010 echo no | android create avd -c 50M --force -n ${emulator_name} -t ${api_level} --abi ${abi}
1111 emulator -partition-size 256 -avd ${emulator_name} -no-skin -no-boot-anim -no-audio -no-window -gpu on &
1212 EMU_PID=$!
1313 ./wait_for_emulator || exit 1
14- adb shell input keyevent 82 &
15-
14+ adb -v time logcat -s FFmpegInstrumentationTest &
15+ LOGCAT_PID= $!
1616 # Running Tests
17- ./gradlew --info connectedCheck || exit 1
17+ ./gradlew --info build connectedCheck || exit 1
1818
1919 # Killing emulator
20- kill -9 $EMU_PID
20+ kill -9 $EMU_PID $LOGCAT_PID
2121
2222 # delete emulator
2323 sleep 5 # wait for emulator to get killed
2424 android delete avd -n ${emulator_name} # delete emulator
25+ echo " ==============================================="
26+ echo " Finished Tests for ${emulator_name} "
27+ echo " ==============================================="
2528}
2629
2730# x86 android-16
You can’t perform that action at this time.
0 commit comments