Merge lp:~sil2100/click-update-manager/autopilot_package into lp:click-update-manager

Proposed by Łukasz Zemczak
Status: Merged
Approved by: Łukasz Zemczak
Approved revision: 26
Merged at revision: 27
Proposed branch: lp:~sil2100/click-update-manager/autopilot_package
Merge into: lp:click-update-manager
Diff against target: 143 lines (+41/-25)
8 files modified
CMakeLists.txt (+2/-0)
debian/click-update-manager-autopilot.install (+1/-0)
debian/click-update-manager.install (+2/-0)
debian/control (+25/-11)
debian/rules (+1/-1)
tests/autopilot/CMakeLists.txt (+8/-0)
tests/autopilot/click_update_manager/main/test_main.py (+2/-2)
tests/autopilot/run (+0/-11)
To merge this branch: bzr merge lp:~sil2100/click-update-manager/autopilot_package
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Diego Sarmentero (community) Approve
Review via email: mp+188783@code.launchpad.net

Commit message

Add an -autopilot binary package for running integration tests, modify the tests themselves so that they work from a separate package

Description of the change

Add an -autopilot binary package for running integration tests, modify the tests themselves so that they work from a separate package

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Diego Sarmentero (diegosarmentero) wrote :

+1

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-09-27 17:16:57 +0000
3+++ CMakeLists.txt 2013-10-02 12:49:22 +0000
4@@ -14,3 +14,5 @@
5 add_custom_target(check
6 COMMAND xvfb-run -a qmltestrunner -input ${CMAKE_CURRENT_SOURCE_DIR}/tests/unit
7 )
8+
9+add_subdirectory(tests/autopilot)
10
11=== added file 'debian/click-update-manager-autopilot.install'
12--- debian/click-update-manager-autopilot.install 1970-01-01 00:00:00 +0000
13+++ debian/click-update-manager-autopilot.install 2013-10-02 12:49:22 +0000
14@@ -0,0 +1,1 @@
15+/usr/lib/python*/dist-packages/click_update_manager/
16
17=== added file 'debian/click-update-manager.install'
18--- debian/click-update-manager.install 1970-01-01 00:00:00 +0000
19+++ debian/click-update-manager.install 2013-10-02 12:49:22 +0000
20@@ -0,0 +1,2 @@
21+/usr/share/applications/click-update-manager.desktop
22+/usr/share/click-update-manager/*
23
24=== modified file 'debian/control'
25--- debian/control 2013-09-27 17:43:14 +0000
26+++ debian/control 2013-10-02 12:49:22 +0000
27@@ -3,17 +3,18 @@
28 Priority: optional
29 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
30 Build-Depends: cmake,
31- dbus,
32- dbus-x11,
33- debhelper (>= 9),
34- qt5-default,
35- qtdeclarative5-dev,
36- qtdeclarative5-dev-tools,
37- qtdeclarative5-qtquick2-plugin,
38- qtdeclarative5-test-plugin,
39- qtdeclarative5-ubuntu-click0.1,
40- qtdeclarative5-ubuntu-ui-toolkit-plugin,
41- xvfb,
42+ dbus,
43+ dbus-x11,
44+ debhelper (>= 9),
45+ python:any (>= 2.7),
46+ qt5-default,
47+ qtdeclarative5-dev,
48+ qtdeclarative5-dev-tools,
49+ qtdeclarative5-qtquick2-plugin,
50+ qtdeclarative5-test-plugin,
51+ qtdeclarative5-ubuntu-click0.1,
52+ qtdeclarative5-ubuntu-ui-toolkit-plugin,
53+ xvfb,
54 Standards-Version: 3.9.4
55 Homepage: https://launchpad.net/click-update-manager
56 XS-Testsuite: autopkgtest
57@@ -22,6 +23,7 @@
58 # again.
59 Vcs-Bzr: https://code.launchpad.net/~ubuntuone-hackers/click-update-manager/trunk
60 Vcs-Browser: http://bazaar.launchpad.net/~ubuntuone-hackers/click-update-manager/trunk/files
61+X-Python-Version: 2.7
62
63 Package: click-update-manager
64 Architecture: any
65@@ -33,3 +35,15 @@
66 qtdeclarative5-ubuntu-click0.1,
67 Description: UpdateManager for Click packages
68 A QML application for managing click package updates
69+
70+Package: click-update-manager-autopilot
71+Architecture: all
72+Depends: ${misc:Depends},
73+ ${python:Depends},
74+ python-autopilot,
75+ libautopilot-qt,
76+ libqt5test5,
77+ click-update-manager (>= ${binary:Version}),
78+Description: Test package for the UpdateManager
79+ A QML application for managing click package updates. This package contains
80+ autopilot integration tests.
81
82=== modified file 'debian/rules'
83--- debian/rules 2013-09-26 21:07:17 +0000
84+++ debian/rules 2013-10-02 12:49:22 +0000
85@@ -7,7 +7,7 @@
86 export DPKG_GENSYMBOLS_CHECK_LEVEL=4
87
88 %:
89- dh $@ --parallel --fail-missing
90+ dh $@ --parallel --fail-missing --with python2
91
92 override_dh_auto_test:
93 dh_auto_build -- check
94
95=== added file 'tests/autopilot/CMakeLists.txt'
96--- tests/autopilot/CMakeLists.txt 1970-01-01 00:00:00 +0000
97+++ tests/autopilot/CMakeLists.txt 2013-10-02 12:49:22 +0000
98@@ -0,0 +1,8 @@
99+set(AUTOPILOT_DIR click_update_manager)
100+
101+execute_process(COMMAND python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"
102+ OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
103+
104+install(DIRECTORY ${AUTOPILOT_DIR}
105+ DESTINATION ${PYTHON_PACKAGE_DIR}
106+ )
107
108=== renamed directory 'tests/autopilot/UpdateManager' => 'tests/autopilot/click_update_manager'
109=== modified file 'tests/autopilot/click_update_manager/main/test_main.py'
110--- tests/autopilot/UpdateManager/main/test_main.py 2013-09-27 18:26:22 +0000
111+++ tests/autopilot/click_update_manager/main/test_main.py 2013-10-02 12:49:22 +0000
112@@ -9,13 +9,13 @@
113 from testtools.matchers import Is, Not, Equals
114 from testtools import skip
115
116-from UpdateManager import UbuntuTouchAppTestCase
117+from click_update_manager import UbuntuTouchAppTestCase
118
119
120 class PageUpdateTests(UbuntuTouchAppTestCase):
121 """Page Update Tests."""
122
123- test_qml_file = "%s/%s.qml" % (os.path.dirname(os.path.realpath(__file__)),"../../../../updatemanager")
124+ test_qml_file = "/usr/share/click-update-manager/updatemanager.qml"
125
126 def test_UI_is_loaded(self):
127 """Must be able to see the mainview."""
128
129=== removed file 'tests/autopilot/run'
130--- tests/autopilot/run 2013-09-20 20:04:44 +0000
131+++ tests/autopilot/run 1970-01-01 00:00:00 +0000
132@@ -1,11 +0,0 @@
133-#!/bin/bash
134-
135-if [[ -z `which autopilot` ]]; then
136- echo "Autopilot is not installed. Skip"
137- exit
138-fi
139-
140-SCRIPTPATH=`dirname $0`
141-pushd ${SCRIPTPATH}
142-autopilot run UpdateManager
143-popd

Subscribers

People subscribed via source and target branches