Merge lp:~larryprice/acolyterm/jenkins into lp:acolyterm
- jenkins
- Merge into trunk
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Larry Price | ||||
Approved revision: | 236 | ||||
Merged at revision: | 210 | ||||
Proposed branch: | lp:~larryprice/acolyterm/jenkins | ||||
Merge into: | lp:acolyterm | ||||
Diff against target: |
834 lines (+288/-277) 22 files modified
.bzr-builddeb/default.conf (+2/-0) CMakeLists.txt (+2/-3) README.autopilot.md (+7/-7) README.md (+3/-3) README.translations (+1/-1) debian/acolyterm-autopilot.install (+1/-0) debian/acolyterm.install (+2/-0) debian/changelog (+8/-2) debian/control (+14/-12) debian/copyright (+4/-9) debian/ubuntu-terminal-app-autopilot.install (+0/-1) debian/ubuntu-terminal-app.install (+0/-2) manifest.json.in (+2/-2) src/app/CMakeLists.txt (+6/-6) tests/CMakeLists.txt (+16/-1) tests/autopilot/CMakeLists.txt (+0/-8) tests/autopilot/acolyterm/__init__.py (+41/-0) tests/autopilot/acolyterm/tests/__init__.py (+162/-0) tests/autopilot/acolyterm/tests/test_acolyterm.py (+17/-0) tests/autopilot/ubuntu_terminal_app/__init__.py (+0/-41) tests/autopilot/ubuntu_terminal_app/tests/__init__.py (+0/-162) tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py (+0/-17) |
||||
To merge this branch: | bzr merge lp:~larryprice/acolyterm/jenkins | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Larry Price | Approve | ||
Libertine CI Bot | continuous-integration | Approve | |
Review via email: mp+297805@code.launchpad.net |
Commit message
Update codebase to work with jenkins.
Description of the change
Update codebase to work with jenkins.
Libertine CI Bot (libertine-ci-bot) wrote : | # |
- 211. By Larry Price
-
more names that needed updating
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:211
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 212. By Larry Price
-
updating changelog with new name
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:212
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 213. By Larry Price
-
updating changelog with new entry
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:213
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 214. By Larry Price
-
removing qt5-default and updating standards
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:214
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 215. By Larry Price
-
trying to get things native
- 216. By Larry Price
-
verbose output
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:216
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 217. By Larry Price
-
redoing changelog entirely and resetting version number to 0.1
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:217
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 218. By Larry Price
-
shooting in the dark
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:218
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 219. By Larry Price
-
Updating changelog again
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:219
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 220. By Larry Price
-
adding bzr builddeb with no split
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:220
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 221. By Larry Price
-
undoing a few changes
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:221
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 222. By Larry Price
-
rename terminal to acolyterm in cmake
- 223. By Larry Price
-
renaming some cmake objects
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:223
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 224. By Larry Price
-
removing awkward installs to see where that gets me
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:224
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 225. By Larry Price
-
attempting to add autopilot
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:225
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 226. By Larry Price
-
adding qtdeclarative installs back
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:226
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
- 227. By Larry Price
-
add missing deps
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:227
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 228. By Larry Price
-
working on autopilot tests
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:228
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 229. By Larry Price
-
autopkgtest stuff
- 230. By Larry Price
-
updating autopkgtest depends
- 231. By Larry Price
-
adding deps
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:231
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 232. By Larry Price
-
attempting to mimic system settings online accounts
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:232
https:/
Executed test runs:
SUCCESS: https:/
UNSTABLE: https:/
UNSTABLE: https:/
UNSTABLE: https:/
UNSTABLE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 233. By Larry Price
-
giving up on autopkgtest
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:233
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
- 234. By Larry Price
-
fixing make autopilot
- 235. By Larry Price
-
adding back in autopilot dep
- 236. By Larry Price
-
updating copyrights
Libertine CI Bot (libertine-ci-bot) wrote : | # |
FAILED: Continuous integration, rev:234
https:/
Executed test runs:
FAILURE: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
FAILURE: https:/
Click here to trigger a rebuild:
https:/
Libertine CI Bot (libertine-ci-bot) wrote : | # |
PASSED: Continuous integration, rev:236
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
None: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
SUCCESS: https:/
deb: https:/
Click here to trigger a rebuild:
https:/
Larry Price (larryprice) wrote : | # |
jenkins passes so we're good to go
Preview Diff
1 | === added directory '.bzr-builddeb' |
2 | === added file '.bzr-builddeb/default.conf' |
3 | --- .bzr-builddeb/default.conf 1970-01-01 00:00:00 +0000 |
4 | +++ .bzr-builddeb/default.conf 2016-06-21 17:48:56 +0000 |
5 | @@ -0,0 +1,2 @@ |
6 | +[BUILDDEB] |
7 | +split = True |
8 | |
9 | === modified file 'CMakeLists.txt' |
10 | --- CMakeLists.txt 2016-06-16 20:27:27 +0000 |
11 | +++ CMakeLists.txt 2016-06-21 17:48:56 +0000 |
12 | @@ -12,12 +12,11 @@ |
13 | option(INSTALL_TESTS "Install the tests on make install" on) |
14 | option(CLICK_MODE "Installs to a contained location" on) |
15 | |
16 | -set(APP_NAME terminal) |
17 | +set(APP_NAME acolyterm) |
18 | set(DESKTOP_FILE "${PROJECT_NAME}.desktop") |
19 | set(APP_HARDCODE acolyterm) |
20 | set(MAIN_QML acolyterm.qml) |
21 | set(ICON_FILE terminal64.png) |
22 | -set(AUTOPILOT_DIR ubuntu_terminal_app) |
23 | set(EXEC "${APP_NAME}") |
24 | set(UBUNTU_MANIFEST_PATH "manifest.json.in" CACHE INTERNAL "Relative path to the manifest file") |
25 | |
26 | @@ -62,7 +61,7 @@ |
27 | RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} |
28 | *.json *.json.in *.apparmor) |
29 | |
30 | - add_custom_target(com_ubuntu_terminal_CLICKFiles ALL SOURCES ${CLICK_FILES}) |
31 | + add_custom_target(com_ubuntu_acolyterm_CLICKFiles ALL SOURCES ${CLICK_FILES}) |
32 | else(CLICK_MODE) |
33 | execute_process( |
34 | COMMAND qmake -query QT_INSTALL_QML |
35 | |
36 | === modified file 'README.autopilot.md' |
37 | --- README.autopilot.md 2016-03-08 13:54:33 +0000 |
38 | +++ README.autopilot.md 2016-06-21 17:48:56 +0000 |
39 | @@ -23,7 +23,7 @@ |
40 | |
41 | * Branch the code |
42 | |
43 | - $ bzr branch lp:ubuntu-terminal-app |
44 | + $ bzr branch lp:acolyterm |
45 | |
46 | * Navigate to the tests/autopilot directory. |
47 | |
48 | @@ -31,15 +31,15 @@ |
49 | |
50 | * run all tests. |
51 | |
52 | - $ autopilot3 run -vv ubuntu_terminal_app |
53 | + $ autopilot3 run -vv acolyterm |
54 | |
55 | * to list all tests: |
56 | |
57 | - $ autopilot3 list ubuntu_terminal_app |
58 | + $ autopilot3 list acolyterm |
59 | |
60 | To run only one test |
61 | |
62 | - $ autopilot3 run -vv ubuntu_terminal_app.tests.test_name |
63 | + $ autopilot3 run -vv acolyterm.tests.test_name |
64 | |
65 | * Debugging tests using autopilot vis |
66 | |
67 | @@ -59,11 +59,11 @@ |
68 | |
69 | * Branch the code, for example, |
70 | |
71 | - $ bzr branch lp:ubuntu-terminal-app |
72 | + $ bzr branch lp:acolyterm |
73 | |
74 | * Navigate to the source directory. |
75 | |
76 | - $ cd ubuntu-terminal-app |
77 | + $ cd acolyterm |
78 | |
79 | * Build a click package |
80 | |
81 | @@ -71,4 +71,4 @@ |
82 | |
83 | * Run the tests on device (assumes only one click package in the directory) |
84 | |
85 | - $ adt-run . *.click --- ssh -s adb -- -p <PASSWORD> |
86 | \ No newline at end of file |
87 | + $ adt-run . *.click --- ssh -s adb -- -p <PASSWORD> |
88 | |
89 | === modified file 'README.md' |
90 | --- README.md 2015-08-02 13:00:09 +0000 |
91 | +++ README.md 2016-06-21 17:48:56 +0000 |
92 | @@ -30,7 +30,7 @@ |
93 | password |
94 | 4. Once created, you'll need to add the build dependencies for the app: |
95 | - Click on the Maintain button on your chroot |
96 | - - On the terminal prompt that is started, type |
97 | + - On the terminal prompt that is started, type |
98 | apt-get install libpam0g-dev:armhf |
99 | - Close the terminal when the installation finishes |
100 | 5. Now you can either do a clean checkout and wait to be prompted by Qt Creator |
101 | @@ -63,7 +63,7 @@ |
102 | |
103 | Due to Qt Creator's bug #1312094 in launchpad.net, there needs to be a manual |
104 | workaround done before the app can run on the device: |
105 | - |
106 | + |
107 | 1. Modify the desktop.in file: change the Exec line to read: |
108 | Exec=lib/arm-linux-gnueabihf/bin/@EXEC@ |
109 | |
110 | @@ -147,4 +147,4 @@ |
111 | Once the app has been built, you can go to the build directory and run: |
112 | |
113 | cd tests/autopilot |
114 | - autopilot run ubuntu_terminal_app |
115 | + autopilot run acolyterm |
116 | |
117 | === modified file 'README.translations' |
118 | --- README.translations 2014-10-25 04:42:31 +0000 |
119 | +++ README.translations 2016-06-21 17:48:56 +0000 |
120 | @@ -31,5 +31,5 @@ |
121 | |
122 | Translations for core apps follow the standard [gettext format][]. |
123 | |
124 | - [Launchpad Translations]: https://translations.launchpad.net/ubuntu-terminal-app |
125 | + [Launchpad Translations]: https://translations.launchpad.net/acolyterm |
126 | [gettext format]: https://www.gnu.org/software/gettext/ |
127 | |
128 | === added file 'debian/acolyterm-autopilot.install' |
129 | --- debian/acolyterm-autopilot.install 1970-01-01 00:00:00 +0000 |
130 | +++ debian/acolyterm-autopilot.install 2016-06-21 17:48:56 +0000 |
131 | @@ -0,0 +1,1 @@ |
132 | +usr/lib/*/dist-packages/acolyterm/ |
133 | |
134 | === added file 'debian/acolyterm.install' |
135 | --- debian/acolyterm.install 1970-01-01 00:00:00 +0000 |
136 | +++ debian/acolyterm.install 2016-06-21 17:48:56 +0000 |
137 | @@ -0,0 +1,2 @@ |
138 | +usr/bin/* |
139 | +usr/share/* |
140 | |
141 | === modified file 'debian/changelog' |
142 | --- debian/changelog 2015-07-04 08:41:27 +0000 |
143 | +++ debian/changelog 2016-06-21 17:48:56 +0000 |
144 | @@ -1,3 +1,9 @@ |
145 | +acolyterm (0.1) xenial; urgency=high |
146 | + |
147 | + * Forking ubuntu-terminal-app into acolyterm |
148 | + |
149 | + -- Larry Price <larry.price@canonical.com> Mon, 20 Jun 2016 09:15:00 -0400 |
150 | + |
151 | ubuntu-terminal-app (0.7) wily; urgency=medium |
152 | |
153 | * Bumped changelog version (LP: #1468385) |
154 | @@ -7,10 +13,10 @@ |
155 | ubuntu-terminal-app (0.5ubuntu2) trusty; urgency=medium |
156 | |
157 | [ Alan Pope ] |
158 | - * Add -qt5 command line option (LP: #1288885) |
159 | + * Add -qt5 command line option (LP: #1288885) |
160 | |
161 | [ David Planella ] |
162 | - * Merge konsole plugin into the app's repo. |
163 | + * Merge konsole plugin into the app's repo. |
164 | |
165 | -- David Planella <david.planella@ubuntu.com> Sun, 27 Apr 2014 12:08:04 +0200 |
166 | |
167 | |
168 | === modified file 'debian/control' |
169 | --- debian/control 2016-03-15 14:20:16 +0000 |
170 | +++ debian/control 2016-06-21 17:48:56 +0000 |
171 | @@ -1,21 +1,22 @@ |
172 | -Source: ubuntu-terminal-app |
173 | +Source: acolyterm |
174 | Priority: extra |
175 | -Maintainer: Ubuntu App Cats <ubuntu-touch-coreapps@lists.launchpad.net> |
176 | +Maintainer: Libertine Developers <libertine-team@lists.launchpad.net> |
177 | Build-Depends: cmake, |
178 | + cmake-extras, |
179 | debhelper (>= 9), |
180 | python3-all, |
181 | gettext, |
182 | intltool, |
183 | libpam0g-dev, |
184 | + qt5-default, |
185 | qtbase5-dev, |
186 | qtdeclarative5-dev, |
187 | - qt5-default, |
188 | -Standards-Version: 3.9.6 |
189 | +Standards-Version: 3.9.7 |
190 | Section: misc |
191 | -Homepage: https://launchpad.net/ubuntu-terminal-app |
192 | -Vcs-Bzr: https://code.launchpad.net/~ubuntu-terminal-dev/ubuntu-terminal-app/trunk |
193 | +Homepage: https://launchpad.net/acolyterm |
194 | +Vcs-Bzr: https://code.launchpad.net/~libertine-team/acolyterm/trunk |
195 | |
196 | -Package: ubuntu-terminal-app |
197 | +Package: acolyterm |
198 | Section: misc |
199 | Architecture: any |
200 | Depends: ${misc:Depends}, |
201 | @@ -25,8 +26,8 @@ |
202 | qtdeclarative5-qtquick2-plugin, |
203 | qtdeclarative5-ubuntu-ui-toolkit-plugin, |
204 | qml-module-qtsysteminfo (>= 5.0~), |
205 | -Description: Terminal application |
206 | - Core Terminal application |
207 | +Description: Terminal helper |
208 | + Core Terminal helper |
209 | |
210 | Package: qtdeclarative5-qmltermwidget1.0 |
211 | Architecture: any |
212 | @@ -48,13 +49,14 @@ |
213 | This package contains a plugin that enables QML apps to do |
214 | password authentication via the PAM API. |
215 | |
216 | -Package: ubuntu-terminal-app-autopilot |
217 | +Package: acolyterm-autopilot |
218 | Architecture: all |
219 | Depends: ${misc:Depends}, |
220 | - libautopilot-qt, |
221 | + autopilot-qt5, |
222 | libqt5test5, |
223 | python3-autopilot, |
224 | - ubuntu-terminal-app (>= ${source:Version}), |
225 | ubuntu-ui-toolkit-autopilot, |
226 | + click-dev, |
227 | + acolyterm (>= ${source:Version}), |
228 | Description: Autopilot tests for Terminal Application |
229 | This package contains the autopilot tests for the Terminal |
230 | |
231 | === modified file 'debian/copyright' |
232 | --- debian/copyright 2014-10-25 04:42:31 +0000 |
233 | +++ debian/copyright 2016-06-21 17:48:56 +0000 |
234 | @@ -1,18 +1,13 @@ |
235 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ |
236 | -Upstream-Name: ubuntu-terminal-app |
237 | -Source: https://launchpad.net/ubuntu-terminal-app |
238 | +Upstream-Name: acolyterm |
239 | +Source: https://launchpad.net/acolyterm |
240 | |
241 | Files: * |
242 | -Copyright: 2013 Canonical Ltd. |
243 | - 2013 Dmitry Zagnoyko <hiroshidi@gmail.com> |
244 | - 2013 Omer Akram <om26er@ubuntu.com> |
245 | - 2013 Paolo Rotolo <paolorotolo@ubuntu.com> |
246 | - 2013 Riccardo Padovani <rpadovani@ubuntu-it.org> |
247 | - 2013 Sam Hewitt <snwh@ubuntu.com> |
248 | +Copyright: 2013-2016 Canonical Ltd. |
249 | License: GPL-3 |
250 | |
251 | Files: debian/* |
252 | -Copyright: 2013 Canonical Ltd. |
253 | +Copyright: 2013-2016 Canonical Ltd. |
254 | License: LGPL-3 |
255 | |
256 | License: GPL-3 |
257 | |
258 | === removed file 'debian/ubuntu-terminal-app-autopilot.install' |
259 | --- debian/ubuntu-terminal-app-autopilot.install 2014-10-25 04:42:31 +0000 |
260 | +++ debian/ubuntu-terminal-app-autopilot.install 1970-01-01 00:00:00 +0000 |
261 | @@ -1,1 +0,0 @@ |
262 | -usr/lib/*/dist-packages/ubuntu_terminal_app/ |
263 | |
264 | === removed file 'debian/ubuntu-terminal-app.install' |
265 | --- debian/ubuntu-terminal-app.install 2014-10-25 04:42:31 +0000 |
266 | +++ debian/ubuntu-terminal-app.install 1970-01-01 00:00:00 +0000 |
267 | @@ -1,2 +0,0 @@ |
268 | -usr/bin/* |
269 | -usr/share/* |
270 | |
271 | === modified file 'manifest.json.in' |
272 | --- manifest.json.in 2016-06-16 20:27:27 +0000 |
273 | +++ manifest.json.in 2016-06-21 17:48:56 +0000 |
274 | @@ -1,5 +1,5 @@ |
275 | { |
276 | - "description": "Terminal application", |
277 | + "description": "Terminal helper", |
278 | "framework": "ubuntu-sdk-15.04.4", |
279 | "architecture": "@CLICK_ARCH@", |
280 | "hooks": { |
281 | @@ -12,7 +12,7 @@ |
282 | "maintainer": "Libertine Developers <libertine-team@lists.launchpad.net>", |
283 | "name": "com.ubuntu.acolyterm", |
284 | "title": "acolyterm", |
285 | - "version": "0.7.@BZR_REVNO@", |
286 | + "version": "0.1.@BZR_REVNO@", |
287 | "x-source": { |
288 | "vcs-bzr": "@BZR_SOURCE@", |
289 | "vcs-bzr-revno": "@BZR_REVNO@" |
290 | |
291 | === modified file 'src/app/CMakeLists.txt' |
292 | --- src/app/CMakeLists.txt 2016-03-15 14:18:34 +0000 |
293 | +++ src/app/CMakeLists.txt 2016-06-21 17:48:56 +0000 |
294 | @@ -1,17 +1,17 @@ |
295 | file(GLOB_RECURSE QML_SRCS *.qml *.js *.json) |
296 | |
297 | -set(terminal_SRCS |
298 | +set(acolyterm_SRCS |
299 | main.cpp |
300 | fileio.cpp |
301 | ${QML_SRCS} |
302 | ) |
303 | |
304 | -add_executable(terminal ${terminal_SRCS}) |
305 | +add_executable(acolyterm ${acolyterm_SRCS}) |
306 | |
307 | -qt5_use_modules(terminal Gui Qml Quick Widgets) |
308 | +qt5_use_modules(acolyterm Gui Qml Quick Widgets) |
309 | |
310 | if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}") |
311 | -add_custom_target(terminal-qmlfiles ALL |
312 | +add_custom_target(acolyterm-qmlfiles ALL |
313 | COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/qml ${CMAKE_CURRENT_BINARY_DIR} |
314 | DEPENDS ${QMLFILES} |
315 | ) |
316 | @@ -19,7 +19,7 @@ |
317 | |
318 | install(DIRECTORY qml DESTINATION ${DATA_DIR}) |
319 | if(CLICK_MODE) |
320 | - install(TARGETS terminal DESTINATION ${BIN_DIR}) |
321 | + install(TARGETS acolyterm DESTINATION ${BIN_DIR}) |
322 | else() |
323 | - install(TARGETS terminal RUNTIME DESTINATION bin) |
324 | + install(TARGETS acolyterm RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) |
325 | endif() |
326 | |
327 | === modified file 'tests/CMakeLists.txt' |
328 | --- tests/CMakeLists.txt 2015-02-24 23:23:36 +0000 |
329 | +++ tests/CMakeLists.txt 2016-06-21 17:48:56 +0000 |
330 | @@ -1,1 +1,16 @@ |
331 | -add_subdirectory(autopilot) |
332 | +set(AUTOPILOT_DIR acolyterm) |
333 | + |
334 | +execute_process ( |
335 | + COMMAND python3 -c "from distutils import sysconfig; print(sysconfig.get_python_lib())" |
336 | + COMMAND sed -r -e "s|/usr/(local/)?||g" |
337 | + OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
338 | + |
339 | +install ( |
340 | + DIRECTORY autopilot/${AUTOPILOT_DIR} |
341 | + DESTINATION ${PYTHON_PACKAGE_DIR} |
342 | +) |
343 | + |
344 | +add_custom_target(autopilot |
345 | + COMMAND PYTHONPATH=$ENV{PYTHONPATH}:../${COMMON_PYTHONPATH} BUILD_DIR=${CMAKE_CURRENT_BINARY_DIR} autopilot3 run -v ${AUTOPILOT_DIR} |
346 | + WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/autopilot |
347 | +) |
348 | |
349 | === removed file 'tests/autopilot/CMakeLists.txt' |
350 | --- tests/autopilot/CMakeLists.txt 2015-02-24 23:23:36 +0000 |
351 | +++ tests/autopilot/CMakeLists.txt 1970-01-01 00:00:00 +0000 |
352 | @@ -1,8 +0,0 @@ |
353 | -if(INSTALL_TESTS) |
354 | -execute_process(COMMAND python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" |
355 | - OUTPUT_VARIABLE PYTHON_PACKAGE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE) |
356 | - |
357 | -install(DIRECTORY ${AUTOPILOT_DIR} |
358 | - DESTINATION ${PYTHON_PACKAGE_DIR} |
359 | - ) |
360 | -endif(INSTALL_TESTS) |
361 | |
362 | === added directory 'tests/autopilot/acolyterm' |
363 | === added file 'tests/autopilot/acolyterm/__init__.py' |
364 | --- tests/autopilot/acolyterm/__init__.py 1970-01-01 00:00:00 +0000 |
365 | +++ tests/autopilot/acolyterm/__init__.py 2016-06-21 17:48:56 +0000 |
366 | @@ -0,0 +1,41 @@ |
367 | +# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
368 | +# |
369 | +# Copyright (C) 2013-2016 Canonical Ltd. |
370 | +# |
371 | +# This program is free software; you can redistribute it and/or modify |
372 | +# it under the terms of the GNU Lesser General Public License as published by |
373 | +# the Free Software Foundation; version 3. |
374 | +# |
375 | +# This program is distributed in the hope that it will be useful, |
376 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
377 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
378 | +# GNU Lesser General Public License for more details. |
379 | +# |
380 | +# You should have received a copy of the GNU Lesser General Public License |
381 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
382 | + |
383 | +"""Acolyterm app autopilot helpers.""" |
384 | + |
385 | +import ubuntuuitoolkit |
386 | + |
387 | + |
388 | +class AcolytermApp(object): |
389 | + |
390 | + """Autopilot helper object for the terminal application.""" |
391 | + |
392 | + def __init__(self, app_proxy): |
393 | + self.app = app_proxy |
394 | + self.main_view = self.app.select_single(MainView) |
395 | + |
396 | + @property |
397 | + def pointing_device(self): |
398 | + return self.app.pointing_device |
399 | + |
400 | + |
401 | +class MainView(ubuntuuitoolkit.MainView): |
402 | + |
403 | + """Autopilot custom proxy object for the MainView.""" |
404 | + |
405 | + def __init__(self, *args): |
406 | + super(MainView, self).__init__(*args) |
407 | + self.visible.wait_for(True) |
408 | |
409 | === added directory 'tests/autopilot/acolyterm/tests' |
410 | === added file 'tests/autopilot/acolyterm/tests/__init__.py' |
411 | --- tests/autopilot/acolyterm/tests/__init__.py 1970-01-01 00:00:00 +0000 |
412 | +++ tests/autopilot/acolyterm/tests/__init__.py 2016-06-21 17:48:56 +0000 |
413 | @@ -0,0 +1,162 @@ |
414 | +# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
415 | +# Copyright 2013-2016 Canonical |
416 | +# |
417 | +# This program is free software: you can redistribute it and/or modify it |
418 | +# under the terms of the GNU General Public License version 3, as published |
419 | +# by the Free Software Foundation. |
420 | + |
421 | +"""Acolyterm app autopilot tests.""" |
422 | + |
423 | +import os |
424 | +import fixtures |
425 | +import logging |
426 | +import tempfile |
427 | +import gi |
428 | + |
429 | +from autopilot import logging as autopilot_logging |
430 | +from autopilot.testcase import AutopilotTestCase |
431 | +import ubuntuuitoolkit |
432 | + |
433 | +import acolyterm |
434 | +gi.require_version('Click', '0.4') |
435 | +from gi.repository import Click |
436 | + |
437 | + |
438 | +logger = logging.getLogger(__name__) |
439 | + |
440 | + |
441 | +class AcolytermTestCase(AutopilotTestCase): |
442 | + """ |
443 | + A common testcase class that provides useful methods for the acolyterm |
444 | + app. |
445 | + """ |
446 | + |
447 | + local_build_location = os.path.dirname(os.environ["BUILD_DIR"]) |
448 | + sdk_build_location = os.path.join(os.path.dirname(local_build_location), |
449 | + os.path.basename(local_build_location) |
450 | + + '-build') |
451 | + |
452 | + local_build_location_qml = os.path.join( |
453 | + local_build_location, 'src', 'app', 'qml', 'acolyterm.qml') |
454 | + local_build_location_binary = os.path.join(local_build_location, |
455 | + 'src', 'app', 'acolyterm') |
456 | + |
457 | + sdk_build_location_qml = os.path.join( |
458 | + sdk_build_location, 'src', 'app', 'qml', 'acolyterm.qml') |
459 | + sdk_build_location_binary = os.path.join(sdk_build_location, |
460 | + 'src', 'app', 'acolyterm') |
461 | + installed_location_binary = os.path.join('usr', 'bin', |
462 | + 'acolyterm') |
463 | + installed_location_qml = os.path.join('usr', 'share', |
464 | + 'acolyterm', 'qml', |
465 | + 'acolyterm.qml') |
466 | + |
467 | + def setUp(self): |
468 | + super(AcolytermTestCase, self).setUp() |
469 | + launcher_method, _ = self.get_launcher_method_and_type() |
470 | + self.app = acolyterm.AcolytermApp(launcher_method()) |
471 | + |
472 | + def get_launcher_method_and_type(self): |
473 | + if os.path.exists(self.local_build_location_binary): |
474 | + launcher = self.launch_test_local |
475 | + test_type = 'local' |
476 | + elif os.path.exists(self.sdk_build_location_binary): |
477 | + launcher = self.launch_test_sdk |
478 | + test_type = 'sdk' |
479 | + elif os.path.exists(self.installed_location_binary): |
480 | + launcher = self.launch_test_installed |
481 | + test_type = 'deb' |
482 | + else: |
483 | + launcher = self.launch_test_click |
484 | + test_type = 'click' |
485 | + return launcher, test_type |
486 | + |
487 | + @autopilot_logging.log_action(logger.info) |
488 | + def launch_test_local(self): |
489 | + plugin_location = os.path.join(self.local_build_location, |
490 | + 'src', 'plugin') |
491 | + self.useFixture(fixtures.EnvironmentVariable( |
492 | + 'QML2_IMPORT_PATH', newvalue=plugin_location)) |
493 | + return self.launch_test_application( |
494 | + self.local_build_location_binary, |
495 | + app_type='qt', |
496 | + emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
497 | + |
498 | + @autopilot_logging.log_action(logger.info) |
499 | + def launch_test_sdk(self): |
500 | + plugin_location = os.path.join(self.sdk_build_location, |
501 | + 'src', 'plugin') |
502 | + self.useFixture(fixtures.EnvironmentVariable( |
503 | + 'QML2_IMPORT_PATH', newvalue=plugin_location)) |
504 | + |
505 | + return self.launch_test_application( |
506 | + self.sdk_build_location_binary, |
507 | + app_type='qt', |
508 | + emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
509 | + |
510 | + @autopilot_logging.log_action(logger.info) |
511 | + def launch_test_installed(self): |
512 | + return self.launch_test_application( |
513 | + self.installed_location_binary, |
514 | + '-q', self.installed_location_qml, |
515 | + app_type='qt', |
516 | + emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
517 | + |
518 | + @autopilot_logging.log_action(logger.info) |
519 | + def launch_test_click(self): |
520 | + # We need to pass the "--forceAuth false" argument to the acolyterm app |
521 | + # binary, but ubuntu-app-launch doesn't pass arguments to the exec line |
522 | + # on the desktop file. So we make a test desktop file that has the |
523 | + # "--forceAuth false" on the exec line. |
524 | + desktop_file_path = self.write_sandbox_desktop_file() |
525 | + desktop_file_name = os.path.basename(desktop_file_path) |
526 | + application_name, _ = os.path.splitext(desktop_file_name) |
527 | + return self.launch_upstart_application( |
528 | + application_name, |
529 | + emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
530 | + |
531 | + def write_sandbox_desktop_file(self): |
532 | + desktop_file_dir = self.get_local_desktop_file_directory() |
533 | + desktop_file = self.get_named_temporary_file( |
534 | + suffix='.desktop', dir=desktop_file_dir) |
535 | + desktop_file.write('[Desktop Entry]\n') |
536 | + version, installed_path = self.get_installed_version_and_directory() |
537 | + acolyterm_sandbox_exec = ( |
538 | + 'aa-exec-click -p com.ubuntu.acolyterm_acolyterm_{}' |
539 | + ' -- acolyterm --forceAuth false'.format(version)) |
540 | + desktop_file_dict = { |
541 | + 'Type': 'Application', |
542 | + 'Name': 'acolyterm', |
543 | + 'Exec': acolyterm_sandbox_exec, |
544 | + 'Icon': 'Not important', |
545 | + 'Path': installed_path |
546 | + } |
547 | + for key, value in desktop_file_dict.items(): |
548 | + desktop_file.write('{key}={value}\n'.format(key=key, value=value)) |
549 | + desktop_file.close() |
550 | + logger.debug(acolyterm_sandbox_exec) |
551 | + for key, value in desktop_file_dict.items(): |
552 | + logger.debug("%s: %s" % (key, value)) |
553 | + return desktop_file.name |
554 | + |
555 | + def get_local_desktop_file_directory(self): |
556 | + return os.path.join( |
557 | + os.path.expanduser('~'), '.local', 'share', 'applications') |
558 | + |
559 | + def get_named_temporary_file( |
560 | + self, dir=None, mode='w+t', delete=False, suffix=''): |
561 | + # Discard files with underscores which look like an APP_ID to Unity |
562 | + # See https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1329141 |
563 | + chars = tempfile._RandomNameSequence.characters.strip("_") |
564 | + tempfile._RandomNameSequence.characters = chars |
565 | + return tempfile.NamedTemporaryFile( |
566 | + dir=dir, mode=mode, delete=delete, suffix=suffix) |
567 | + |
568 | + def get_installed_version_and_directory(self): |
569 | + db = Click.DB() |
570 | + db.read() |
571 | + package_name = 'com.ubuntu.acolyterm' |
572 | + registry = Click.User.for_user(db, name=os.environ.get('USER')) |
573 | + version = registry.get_version(package_name) |
574 | + directory = registry.get_path(package_name) |
575 | + return version, directory |
576 | |
577 | === added file 'tests/autopilot/acolyterm/tests/test_acolyterm.py' |
578 | --- tests/autopilot/acolyterm/tests/test_acolyterm.py 1970-01-01 00:00:00 +0000 |
579 | +++ tests/autopilot/acolyterm/tests/test_acolyterm.py 2016-06-21 17:48:56 +0000 |
580 | @@ -0,0 +1,17 @@ |
581 | +# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
582 | +# Copyright 2013-2016 Canonical |
583 | +# |
584 | +# This program is free software: you can redistribute it and/or modify it |
585 | +# under the terms of the GNU General Public License version 3, as published |
586 | +# by the Free Software Foundation. |
587 | + |
588 | +"""Terminal app autopilot tests.""" |
589 | + |
590 | +from acolyterm.tests import AcolytermTestCase |
591 | + |
592 | + |
593 | +class TestMainWindow(AcolytermTestCase): |
594 | + def test_example_test(self): |
595 | + """Just launch app, assert on main view""" |
596 | + main_view = self.app.main_view |
597 | + self.assertTrue(main_view) |
598 | |
599 | === removed directory 'tests/autopilot/ubuntu_terminal_app' |
600 | === removed file 'tests/autopilot/ubuntu_terminal_app/__init__.py' |
601 | --- tests/autopilot/ubuntu_terminal_app/__init__.py 2016-03-07 21:11:34 +0000 |
602 | +++ tests/autopilot/ubuntu_terminal_app/__init__.py 1970-01-01 00:00:00 +0000 |
603 | @@ -1,41 +0,0 @@ |
604 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
605 | -# |
606 | -# Copyright (C) 2013 Canonical Ltd. |
607 | -# |
608 | -# This program is free software; you can redistribute it and/or modify |
609 | -# it under the terms of the GNU Lesser General Public License as published by |
610 | -# the Free Software Foundation; version 3. |
611 | -# |
612 | -# This program is distributed in the hope that it will be useful, |
613 | -# but WITHOUT ANY WARRANTY; without even the implied warranty of |
614 | -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
615 | -# GNU Lesser General Public License for more details. |
616 | -# |
617 | -# You should have received a copy of the GNU Lesser General Public License |
618 | -# along with this program. If not, see <http://www.gnu.org/licenses/>. |
619 | - |
620 | -"""Terminal app autopilot helpers.""" |
621 | - |
622 | -import ubuntuuitoolkit |
623 | - |
624 | - |
625 | -class TerminalApp(object): |
626 | - |
627 | - """Autopilot helper object for the terminal application.""" |
628 | - |
629 | - def __init__(self, app_proxy): |
630 | - self.app = app_proxy |
631 | - self.main_view = self.app.select_single(MainView) |
632 | - |
633 | - @property |
634 | - def pointing_device(self): |
635 | - return self.app.pointing_device |
636 | - |
637 | - |
638 | -class MainView(ubuntuuitoolkit.MainView): |
639 | - |
640 | - """Autopilot custom proxy object for the MainView.""" |
641 | - |
642 | - def __init__(self, *args): |
643 | - super(MainView, self).__init__(*args) |
644 | - self.visible.wait_for(True) |
645 | |
646 | === removed directory 'tests/autopilot/ubuntu_terminal_app/tests' |
647 | === removed file 'tests/autopilot/ubuntu_terminal_app/tests/__init__.py' |
648 | --- tests/autopilot/ubuntu_terminal_app/tests/__init__.py 2016-03-08 13:54:33 +0000 |
649 | +++ tests/autopilot/ubuntu_terminal_app/tests/__init__.py 1970-01-01 00:00:00 +0000 |
650 | @@ -1,162 +0,0 @@ |
651 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
652 | -# Copyright 2013 Canonical |
653 | -# |
654 | -# This program is free software: you can redistribute it and/or modify it |
655 | -# under the terms of the GNU General Public License version 3, as published |
656 | -# by the Free Software Foundation. |
657 | - |
658 | -"""Terminal app autopilot tests.""" |
659 | - |
660 | -import os.path |
661 | -import fixtures |
662 | -import logging |
663 | -import tempfile |
664 | -import gi |
665 | - |
666 | -from autopilot import logging as autopilot_logging |
667 | -from autopilot.testcase import AutopilotTestCase |
668 | -import ubuntuuitoolkit |
669 | - |
670 | -import ubuntu_terminal_app |
671 | -gi.require_version('Click', '0.4') |
672 | -from gi.repository import Click |
673 | - |
674 | - |
675 | -logger = logging.getLogger(__name__) |
676 | - |
677 | - |
678 | -class TerminalTestCase(AutopilotTestCase): |
679 | - |
680 | - """A common testcase class that provides useful methods for the terminal |
681 | - app. |
682 | - |
683 | - """ |
684 | - |
685 | - local_build_location = os.path.dirname(os.path.dirname(os.getcwd())) |
686 | - sdk_build_location = os.path.join(os.path.dirname(local_build_location), |
687 | - os.path.basename(local_build_location) |
688 | - + '-build') |
689 | - |
690 | - local_build_location_qml = os.path.join( |
691 | - local_build_location, 'src', 'app', 'qml', 'ubuntu-terminal-app.qml') |
692 | - local_build_location_binary = os.path.join(local_build_location, |
693 | - 'src', 'app', 'terminal') |
694 | - sdk_build_location_qml = os.path.join( |
695 | - sdk_build_location, 'src', 'app', 'qml', 'ubuntu-terminal-app.qml') |
696 | - sdk_build_location_binary = os.path.join(sdk_build_location, |
697 | - 'src', 'app', 'terminal') |
698 | - installed_location_binary = os.path.join('usr', 'bin', |
699 | - 'ubuntu-terminal-app') |
700 | - installed_location_qml = os.path.join('usr', 'share', |
701 | - 'ubuntu-terminal-app', 'qml', |
702 | - 'ubuntu-terminal-app.qml') |
703 | - |
704 | - def setUp(self): |
705 | - super(TerminalTestCase, self).setUp() |
706 | - launcher_method, _ = self.get_launcher_method_and_type() |
707 | - self.app = ubuntu_terminal_app.TerminalApp(launcher_method()) |
708 | - |
709 | - def get_launcher_method_and_type(self): |
710 | - if os.path.exists(self.local_build_location_binary): |
711 | - launcher = self.launch_test_local |
712 | - test_type = 'local' |
713 | - elif os.path.exists(self.sdk_build_location_binary): |
714 | - launcher = self.launch_test_sdk |
715 | - test_type = 'sdk' |
716 | - elif os.path.exists(self.installed_location_binary): |
717 | - launcher = self.launch_test_installed |
718 | - test_type = 'deb' |
719 | - else: |
720 | - launcher = self.launch_test_click |
721 | - test_type = 'click' |
722 | - return launcher, test_type |
723 | - |
724 | - @autopilot_logging.log_action(logger.info) |
725 | - def launch_test_local(self): |
726 | - plugin_location = os.path.join(self.local_build_location, |
727 | - 'src', 'plugin') |
728 | - self.useFixture(fixtures.EnvironmentVariable( |
729 | - 'QML2_IMPORT_PATH', newvalue=plugin_location)) |
730 | - return self.launch_test_application( |
731 | - self.local_build_location_binary, |
732 | - app_type='qt', |
733 | - emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
734 | - |
735 | - @autopilot_logging.log_action(logger.info) |
736 | - def launch_test_sdk(self): |
737 | - plugin_location = os.path.join(self.sdk_build_location, |
738 | - 'src', 'plugin') |
739 | - self.useFixture(fixtures.EnvironmentVariable( |
740 | - 'QML2_IMPORT_PATH', newvalue=plugin_location)) |
741 | - |
742 | - return self.launch_test_application( |
743 | - self.sdk_build_location_binary, |
744 | - app_type='qt', |
745 | - emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
746 | - |
747 | - @autopilot_logging.log_action(logger.info) |
748 | - def launch_test_installed(self): |
749 | - return self.launch_test_application( |
750 | - self.installed_location_binary, |
751 | - '-q', self.installed_location_qml, |
752 | - app_type='qt', |
753 | - emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
754 | - |
755 | - @autopilot_logging.log_action(logger.info) |
756 | - def launch_test_click(self): |
757 | - # We need to pass the "--forceAuth false" argument to the terminal app |
758 | - # binary, but ubuntu-app-launch doesn't pass arguments to the exec line |
759 | - # on the desktop file. So we make a test desktop file that has the |
760 | - # "--forceAuth false" on the exec line. |
761 | - desktop_file_path = self.write_sandbox_desktop_file() |
762 | - desktop_file_name = os.path.basename(desktop_file_path) |
763 | - application_name, _ = os.path.splitext(desktop_file_name) |
764 | - return self.launch_upstart_application( |
765 | - application_name, |
766 | - emulator_base=ubuntuuitoolkit.UbuntuUIToolkitCustomProxyObjectBase) |
767 | - |
768 | - def write_sandbox_desktop_file(self): |
769 | - desktop_file_dir = self.get_local_desktop_file_directory() |
770 | - desktop_file = self.get_named_temporary_file( |
771 | - suffix='.desktop', dir=desktop_file_dir) |
772 | - desktop_file.write('[Desktop Entry]\n') |
773 | - version, installed_path = self.get_installed_version_and_directory() |
774 | - terminal_sandbox_exec = ( |
775 | - 'aa-exec-click -p com.ubuntu.terminal_terminal_{}' |
776 | - ' -- terminal --forceAuth false'.format(version)) |
777 | - desktop_file_dict = { |
778 | - 'Type': 'Application', |
779 | - 'Name': 'terminal', |
780 | - 'Exec': terminal_sandbox_exec, |
781 | - 'Icon': 'Not important', |
782 | - 'Path': installed_path |
783 | - } |
784 | - for key, value in desktop_file_dict.items(): |
785 | - desktop_file.write('{key}={value}\n'.format(key=key, value=value)) |
786 | - desktop_file.close() |
787 | - logger.debug(terminal_sandbox_exec) |
788 | - for key, value in desktop_file_dict.items(): |
789 | - logger.debug("%s: %s" % (key, value)) |
790 | - return desktop_file.name |
791 | - |
792 | - def get_local_desktop_file_directory(self): |
793 | - return os.path.join( |
794 | - os.path.expanduser('~'), '.local', 'share', 'applications') |
795 | - |
796 | - def get_named_temporary_file( |
797 | - self, dir=None, mode='w+t', delete=False, suffix=''): |
798 | - # Discard files with underscores which look like an APP_ID to Unity |
799 | - # See https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1329141 |
800 | - chars = tempfile._RandomNameSequence.characters.strip("_") |
801 | - tempfile._RandomNameSequence.characters = chars |
802 | - return tempfile.NamedTemporaryFile( |
803 | - dir=dir, mode=mode, delete=delete, suffix=suffix) |
804 | - |
805 | - def get_installed_version_and_directory(self): |
806 | - db = Click.DB() |
807 | - db.read() |
808 | - package_name = 'com.ubuntu.terminal' |
809 | - registry = Click.User.for_user(db, name=os.environ.get('USER')) |
810 | - version = registry.get_version(package_name) |
811 | - directory = registry.get_path(package_name) |
812 | - return version, directory |
813 | |
814 | === removed file 'tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py' |
815 | --- tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 2016-03-07 21:11:34 +0000 |
816 | +++ tests/autopilot/ubuntu_terminal_app/tests/test_terminal.py 1970-01-01 00:00:00 +0000 |
817 | @@ -1,17 +0,0 @@ |
818 | -# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- |
819 | -# Copyright 2013 Canonical |
820 | -# |
821 | -# This program is free software: you can redistribute it and/or modify it |
822 | -# under the terms of the GNU General Public License version 3, as published |
823 | -# by the Free Software Foundation. |
824 | - |
825 | -"""Terminal app autopilot tests.""" |
826 | - |
827 | -from ubuntu_terminal_app.tests import TerminalTestCase |
828 | - |
829 | - |
830 | -class TestMainWindow(TerminalTestCase): |
831 | - def test_example_test(self): |
832 | - """Just launch app, assert on main view""" |
833 | - main_view = self.app.main_view |
834 | - self.assertTrue(main_view) |
FAILED: Continuous integration, rev:210 /jenkins. canonical. com/libertine/ job/lp- acolyterm- ci/2/ /jenkins. canonical. com/libertine/ job/build/ 47/console /jenkins. canonical. com/libertine/ job/lp- generic- update- mp/39/console /jenkins. canonical. com/libertine/ job/build- 0-fetch/ 47/console
https:/
Executed test runs:
FAILURE: https:/
None: https:/
FAILURE: https:/
Click here to trigger a rebuild: /jenkins. canonical. com/libertine/ job/lp- acolyterm- ci/2/rebuild
https:/