forked from pocmo/Yaaic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·35 lines (25 loc) · 709 Bytes
/
test.sh
File metadata and controls
executable file
·35 lines (25 loc) · 709 Bytes
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
###
# Run all unit and scenario tests
#
# TODO:
# - Build new version of Yaaic and Tests
# - Start device with -wipe-data
# - Deploy both APKs to device
#
if [ ! -f build.conf ]; then
echo "Config file missing: build.conf"
echo "Modify the build.conf.sample file and save it as build.conf"
exit 1
fi
. build.conf
echo "Starting emulator"
"$ANDROID_SDK"/tools/emulator -avd "$AVD_TEST" &
sleep 40
echo "Unlocking emulator"
echo "event send EV_KEY:KEY_MENU:1 EV_KEY:KEY_MENU:0" | telnet localhost 5554
sleep 5
echo "Running tests"
"$ANDROID_SDK"/platform-tools/adb -e shell "am instrument -w org.yaaic.test/android.test.InstrumentationTestRunner"
sleep 3
echo "Killing emulator"
kill $(jobs -p)