~fboucault/webbrowser-app/address_bar_populate_selected_suggestion

« back to all changes in this revision

Viewing changes to debian/tests/touch-session-autopilot

  • Committer: Florian Boucault
  • Date: 2017-04-04 14:22:14 UTC
  • mfrom: (1647.1.3 qmltests)
  • Revision ID: florian@boucault.net-20170404142214-pbk727f44poy4y36
Merged qmltests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
# Copyright 2015-2016 Canonical
4
 
#
5
 
# This program is free software: you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License version 3, as published
7
 
# by the Free Software Foundation.
8
 
#
9
 
# This program is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
 
# GNU General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License
15
 
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
 
 
17
 
# This runs the $1 autopilot suite ensuring that the testbed is configured
18
 
# properly
19
 
 
20
 
SUITE=$1
21
 
 
22
 
set -e
23
 
 
24
 
if ! pgrep -f unity-system-compositor ; then
25
 
   # We're not using Mir, setup enough of an X stack
26
 
 
27
 
   # FIXME: We won't need an X stack once Mir provides mirvfb or any other
28
 
   # mean to test consistently on all platforms -- vila 2015-04-22
29
 
   sudo -A ADT_NORMAL_USER=${USER} sh -e /usr/share/autopkgtest/setup-commands/ubuntu-touch-session
30
 
   # Import the environment produced above in the current shell
31
 
   set -a
32
 
   . /etc/environment
33
 
elif pgrep -f unity8 ; then
34
 
   # Work around https://launchpad.net/bugs/1574706
35
 
   initctl --session restart unity8
36
 
   sleep 20
37
 
   gdbus call --session --dest com.canonical.UnityGreeter --object-path / --method com.canonical.UnityGreeter.HideGreeter
38
 
fi
39
 
 
40
 
autopilot3 run --verbose --format xml --output "${ADT_ARTIFACTS}/${SUITE}.xml" ${SUITE}