Add autopilot autopkgtest
commit90e95ae64d967061766fd31410ae77a75e4c0534
authorMichał Sawicz <michal.sawicz@canonical.com>
dateThu 25 Feb 2016, 21:54 (11 years ago)
parent7cdf423
debian/tests/autopilot.shnew file+13
@@ -0,0 +1,13 @@
1+#!/bin/sh
2+
3+# log all commands and abort on error
4+set -xe
5+
6+if [ ! -f /system/build.prop ]; then
7+ echo "WARNING: Skipping autopilot test, will only run on devices at the moment."
8+ exit 0
9+fi
10+
11+initctl --session stop unity8
12+autopilot3 run --verbose --format xml --output "${ADT_ARTIFACTS}/unity8.xml" unity8
13+initctl --session start unity8
debian/tests/control+4
@@ -3,3 +3,7 @@ Restrictions: allow-stderr
33Depends: @,
44 @builddeps@,
55 xvfb,
6+
7+Tests: autopilot.sh
8+Restrictions: isolation-machine
9+Depends: unity8-autopilot,