Skip to content

Commit 341e7e1

Browse files
Updated Tests script
1 parent db6bf1b commit 341e7e1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

runTests.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
#!/bin/bash
22

3-
# building project for the first time
4-
./gradlew --info clean build || exit 1
5-
63
function 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

0 commit comments

Comments
 (0)