1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# Copy music app to device
adb push ../../. /tmp/music-app-unit-test
# Generate files
./generate_files.sh
# Copy files to device
adb push files/generated /home/phablet/Music/QMLTest
# TODO: make writeable ?
# Install requirements
# FIXME: I have to adb into the device and run manually?
adb shell "sudo apt-get install ubuntu-app-test qtdeclarative5-dev-tools qml-module-qttest -y"
# Run qmltestrunner
adb shell "cd /tmp/music-app-unit-test/tests/unit && ubuntu-app-test qmltestrunner -silent -eventdelay 500"
# Clean up
adb shell "rm -rf /home/phablet/Music/QMLTest"
adb shell "rm -rf /tmp/music-app-unit-test"
rm -rf files/generated
|