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
- function create_emulator () {
3
+ function run_test () {
4
4
abi=$1
5
5
api_level=$2
6
6
port1=$3
@@ -9,15 +9,18 @@ function create_emulator() {
9
9
emulator_serial=" emulator-${port1} "
10
10
echo no | android create avd -c 50M --force -n $emulator_name -t ${api_level} --abi ${abi}
11
11
emulator -ports ${port1} ,${port2} -partition-size 256 -avd $emulator_name -no-skin -no-boot-anim -no-audio -no-window -gpu on &
12
+ EMU_PID=$!
12
13
./wait_for_emulator ${emulator_serial} || exit 1
13
14
adb -s ${emulator_serial} shell input keyevent 82 &
15
+ kill -9 $EMU_PID
16
+
17
+ # Running Tests
18
+ ./gradlew --info clean build connectedCheck || exit 1
14
19
}
15
20
16
- # x86 emulator android-16
17
- create_emulator x86 android-16 5554 5555
21
+ # x86 android-16
22
+ run_test x86 android-16 5554 5555
18
23
19
- # armeabi-v7a emulator android-16
20
- create_emulator armeabi-v7a android-16 5556 5557
24
+ # armeabi-v7a android-16
25
+ run_test armeabi-v7a android-16 5556 5557
21
26
22
- # Running Tests
23
- ./gradlew --info clean build connectedCheck || exit 1
You can’t perform that action at this time.
0 commit comments