~ubuntu-branches/ubuntu/natty/quickly/natty

« back to all changes in this revision

Viewing changes to data/templates/ubuntu-application/test/internal/apport-test-script.sh

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-03-29 19:00:48 UTC
  • mfrom: (8.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100329190048-olhobq492x3xnztz
Tags: 0.3.90-0ubuntu1
* New release:
  Quickly core:
  - check now that --template has one argument
  - -- enables to give options to templates (unknown options and arguments
    are still given to templates but -- specify explicity what to give to
    templates commands like -h, --version...)
  - check and enable recreation of the credential if user deletes it on
    Launchpad
  - Use realpath so that we can symlink to the binary in trunk.
    (Jonathan Lange)
  - project_path_not_found is raised when data_path_not_found should be
    (originated from Philip Peitsch's patch). (LP: #497688)
  - importing command in one template from another template is now possible
    support as well "all" keyword to import all commands from a template
    into another one (take care of overridden commands too)
    (LP: #452306, #487301)
  - add an apport hook to get installed templates (LP: #411127)
  - enable option completion for templates
  - handle now version upgrade, launching script for templates and handling
    versionning on them
  - change getstarted wording (LP: #486180) - Grant
  - Quickly ship now "version" tag instead of "format" tag
  - add some templatetools to check X display
  - if a commands exit with 4, do not show "ERROR:" (case of wrong command
    usage, for instance)
  - Rewrote importing module in both bin/quickly and ubuntu-project binary
  - Add get_camel_case_name() and get_sentence_name() to templatetools
  - Refactor some code in pre_create hook()
  - Now dashes and spaces support in project name! Dealing with python and
    packaging issues for you. (LP: #493130)
  - Provide Quickly API (LP: #426480)
  - Fix some issues in the man page
  ubuntu-application Template:
  - Enabling upload to team or user ppa, as well as any ppa.
    Use --ppa ppaname or --ppa team/ppaname
    .quickly file can be used as well with ppa = ppaname or
    ppa = team/ppaname (LP: #470192)
    ppa completion is also available
  - Change BSD header by full license
  - Add MIT license
  - Fixes an error when launchpad display name contains unicode character
    (Petar Vasić)
  - Fix typo in quickly help save (Petar Vasić)
  - Adds logo.png as logo property in about dialog (LP: #478389)
    (Petar Vasić)
  - Remove lp-project-change command and add configure command.
    configure lp-project [project_name] to set/reset lp project binded to
    your Quickly project
    ppa <ppa name> to set a default ppa with your project
  - Fix ~/.selected-editor being ignored (LP: #484730)
  - Fix wrong shell completion when in a template (it wrongly proposed
    all commands followed by templates)
  - Check if we have a X display available before running "run" or launching
    GUI in "create" command.
  - add -- support in quickly run to pass options like --help, --version so
    that Quickly core don't take them.
  - enable preferences save call being called multiple times (Philip Peitsch)
  - Use realpath so that we can symlink to the binary in trunk.
  - Fixed some errors in the tutorial (Brian) (LP: #499356)
  - Fix missing import sys in setup.py (Philip Peitsch) (LP: #499712)
  - rename ubuntu-project to ubuntu-application
  - enhance quickly license (no more Copyright file, only one AUTHORS file)
    personal license needs COPYING file now (and the header will be copied in
    every files). No more # needed in those files too. Some other little
    refactoring too (LP: #469330)
  - autolicence by default on first share/release (with LP info and on GPL-3)
  - change versionning support in ubuntu application: (LP: #476814)
   + quickly share just adds -publicX to current version where X is bumped
     at each "quicky share" execution
   + quickly release remove -publicX (if any) and release with current YY.MM.
     If there is already a release with that version, it will be YY.MM.1, 
     then YY.MM.2
  - add accelerators to menu items (jens persson)
  - set correctly title dialog (Philip Peitsch) (LP: #501999)
  - about dialog box is now fully automated: (LP: #478414)
   + update copyright, authors, license (when licensing)
   + version (when sharing and releasing)
   + homepage (when changing launchpad project: release and configure)
  - add an 'add' command. $ quickly dialog … is now $ quickly add dialog …
    (LP: #438320)
  - enable automatic release and milestone built in LP, releasing and pushing
    upstream tarball (LP: #470344)
  - automatic collect and publish changelog message from commits and save
    messages used during devlopment. (LP: #476572)
  - add i18n to boiler plate (LP: #423529)
  - enable adding manual depdencies to quickly project (LP: #474639)
  - enable configure its own bzr branch and resetting parent branch even once
    already configured (quickly configure bzr <branch-path>)
  - now recommends seahorse-plugins to have a graphical prompt for signing
    package
  - rename quickly glade to quickly design (LP: #528664)
  - create command is now more flexible and enable people to inherit from
    other template more easily
  - add translation domain to gtkbuilder and fix some items that shouldn't
    been translatable (Łukasz Jernaś)
  - add apport and launchpadintegration to new and existing project once
    bounded to LP (Philip Peitsch)
  - fix spelling mistake "connexion" (Łukasz Jernaś) (LP: #532667)
  - the ubuntu-application tutorial is now internationalized and use docbook
    format. Translators, it's yours! (Shane Fagan) (LP: #525168)
  - package/share/release are now more quiet and only print something on error
    warning as a summary as with unfound packages, and so on (LP: #482915)
  - new algorithm to select good email automatically. Try to get the preferred
    email and update the AUTHOR file with it.
  - test GPG key and create one automatically if none is available. The
    corresponding public key availabity in launchpad is also checked.
    (LP: #427730, #408993)
  - add devscripts as a dependency (bug #465833), will fix all the depends
    mess later
  - bump python-distutils-extra (>= 2.18bzr1)
  ubuntu-cli Template:
  - first release using import command feature (no command written into the
    template itself). This is a basic ubuntu CLI application
  ubuntu-pygame Template:
  - first release using import command feature. python-pygame added as a
    depends
* debian/control:
  - renamed and separate in multiple packages to get a -common used with
    Quickly widgets (LP: #519633)
  - suggests python-quickly-widgets

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
cd /tmp
 
4
 
 
5
rm -rf test-project
 
6
 
 
7
quickly create ubuntu-application test-project
 
8
# Creating bzr repository and commiting
 
9
# Launching your newly created project!
 
10
# Congrats, your new project is setup! cd /tmp/test-project/ to start hacking.
 
11
# Creating project directory test-project
 
12
 
 
13
cd test-project
 
14
 
 
15
grep LaunchpadIntegration. bin/test-project
 
16
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
17
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
18
 
 
19
grep helpmenu bin/test-project
 
20
#             helpmenu = self.builder.get_object('helpMenu')
 
21
#             if helpmenu:
 
22
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
23
 
 
24
quickly configure lp-project gpoweroff
 
25
# Get Launchpad Settings
 
26
# Launchpad connection is ok
 
27
# Creating new apport crashdb configuration
 
28
# Creating new apport hooks
 
29
 
 
30
grep LaunchpadIntegration. bin/test-project
 
31
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
32
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
33
 
 
34
grep helpmenu bin/test-project
 
35
#             helpmenu = self.builder.get_object('helpMenu')
 
36
#             if helpmenu:
 
37
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
38
 
 
39
bzr status
 
40
# modified:
 
41
#   .quickly
 
42
#   data/ui/AboutTestProjectDialog.ui
 
43
#   setup.py
 
44
# unknown:
 
45
#   apport/
 
46
#   etc/
 
47
 
 
48
bzr add
 
49
# adding apport
 
50
# adding etc
 
51
# adding apport/source_test-project.py
 
52
# adding etc/apport
 
53
# adding etc/apport/crashdb.conf.d
 
54
# adding etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
55
 
 
56
quickly configure lp-project hudson-notifier
 
57
# Get Launchpad Settings
 
58
# Launchpad connection is ok
 
59
# Updating project name references in existing apport crashdb configuration
 
60
 
 
61
grep LaunchpadIntegration. bin/test-project
 
62
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
63
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
64
 
 
65
grep helpmenu bin/test-project
 
66
#             helpmenu = self.builder.get_object('helpMenu')
 
67
#             if helpmenu:
 
68
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
69
 
 
70
bzr status
 
71
# added:
 
72
#   apport/
 
73
#   apport/source_test-project.py
 
74
#   etc/
 
75
#   etc/apport/
 
76
#   etc/apport/crashdb.conf.d/
 
77
#   etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
78
# modified:
 
79
#   .quickly
 
80
#   data/ui/AboutTestProjectDialog.ui
 
81
#   setup.py
 
82
 
 
83
bzr commit -m "Test save"
 
84
# Committing to: /tmp/test-project/
 
85
# modified .quickly
 
86
# added apport
 
87
# added etc
 
88
# modified setup.py
 
89
# added apport/source_test-project.py
 
90
# modified data/ui/AboutTestProjectDialog.ui
 
91
# added etc/apport
 
92
# added etc/apport/crashdb.conf.d
 
93
# added etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
94
# Committed revision 2.
 
95
 
 
96
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
97
# ### BEGIN LICENSE
 
98
# # This file is in the public domain
 
99
# ### END LICENSE
 
100
 
101
# test_project = {
 
102
#         'impl' : 'launchpad',
 
103
#         'project' : 'hudson-notifier',
 
104
#         'bug_pattern_base' : None,
 
105
# }
 
106
 
 
107
cat apport/source_test-project.py
 
108
# # Apport integration for test-project
 
109
# #
 
110
# # -*- coding: utf-8 -*-
 
111
# ### BEGIN LICENSE
 
112
# # This file is in the public domain
 
113
# ### END LICENSE
 
114
# import apport
 
115
 
116
# def add_info(report):
 
117
#     """add report info"""
 
118
 
119
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
120
#         report['ThirdParty'] = 'True'
 
121
#         report['CrashDB'] = 'test_project'
 
122
 
 
123
quickly configure lp-project gpoweroff
 
124
# Get Launchpad Settings
 
125
# Launchpad connection is ok
 
126
# Updating project name references in existing apport crashdb configuration
 
127
 
 
128
grep LaunchpadIntegration. bin/test-project
 
129
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
130
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
131
 
 
132
grep helpmenu bin/test-project
 
133
#             helpmenu = self.builder.get_object('helpMenu')
 
134
#             if helpmenu:
 
135
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
136
 
 
137
bzr status
 
138
# modified:
 
139
#   .quickly
 
140
#   data/ui/AboutTestProjectDialog.ui
 
141
#   etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
142
#   setup.py
 
143
 
 
144
bzr commit -m "Renaming hooks"
 
145
# Committing to: /tmp/test-project/
 
146
# modified .quickly
 
147
# modified setup.py
 
148
# modified data/ui/AboutTestProjectDialog.ui
 
149
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
150
# Committed revision 3.
 
151
 
 
152
rm -rf apport
 
153
 
 
154
quickly configure lp-project hudson-notifier
 
155
# Get Launchpad Settings
 
156
# Launchpad connection is ok
 
157
# Updating project name references in existing apport crashdb configuration
 
158
# Creating new apport hooks
 
159
 
 
160
grep LaunchpadIntegration. bin/test-project
 
161
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
162
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
163
 
 
164
grep helpmenu bin/test-project
 
165
#             helpmenu = self.builder.get_object('helpMenu')
 
166
#             if helpmenu:
 
167
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
168
 
 
169
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
170
# ### BEGIN LICENSE
 
171
# # This file is in the public domain
 
172
# ### END LICENSE
 
173
 
174
# test_project = {
 
175
#         'impl' : 'launchpad',
 
176
#         'project' : 'hudson-notifier',
 
177
#         'bug_pattern_base' : None,
 
178
# }
 
179
 
 
180
cat apport/source_test-project.py
 
181
# # Apport integration for test-project
 
182
# #
 
183
# # -*- coding: utf-8 -*-
 
184
# ### BEGIN LICENSE
 
185
# # This file is in the public domain
 
186
# ### END LICENSE
 
187
# import apport
 
188
 
189
# def add_info(report):
 
190
#     """add report info"""
 
191
 
192
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
193
#         report['ThirdParty'] = 'True'
 
194
#         report['CrashDB'] = 'test_project'
 
195
 
 
196
quickly configure lp-project gpoweroff
 
197
# Get Launchpad Settings
 
198
# Launchpad connection is ok
 
199
# Updating project name references in existing apport crashdb configuration
 
200
 
 
201
grep LaunchpadIntegration. bin/test-project
 
202
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
203
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
204
 
 
205
grep helpmenu bin/test-project
 
206
#             helpmenu = self.builder.get_object('helpMenu')
 
207
#             if helpmenu:
 
208
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
209
 
 
210
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
211
# ### BEGIN LICENSE
 
212
# # This file is in the public domain
 
213
# ### END LICENSE
 
214
 
215
# test_project = {
 
216
#         'impl' : 'launchpad',
 
217
#         'project' : 'gpoweroff',
 
218
#         'bug_pattern_base' : None,
 
219
# }
 
220
 
 
221
cat apport/source_test-project.py
 
222
# # Apport integration for test-project
 
223
# #
 
224
# # -*- coding: utf-8 -*-
 
225
# ### BEGIN LICENSE
 
226
# # This file is in the public domain
 
227
# ### END LICENSE
 
228
# import apport
 
229
 
230
# def add_info(report):
 
231
#     """add report info"""
 
232
 
233
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
234
#         report['ThirdParty'] = 'True'
 
235
#         report['CrashDB'] = 'test_project'
 
236
 
 
237
bzr status
 
238
 
 
239
cat apport/source_test-project.py
 
240
# # Apport integration for test-project
 
241
# #
 
242
# # -*- coding: utf-8 -*-
 
243
# ### BEGIN LICENSE
 
244
# # This file is in the public domain
 
245
# ### END LICENSE
 
246
# import apport
 
247
 
248
# def add_info(report):
 
249
#     """add report info"""
 
250
 
251
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
252
#         report['ThirdParty'] = 'True'
 
253
#         report['CrashDB'] = 'test_project'
 
254
 
 
255
rm apport/source_test-project.py
 
256
 
 
257
quickly configure lp-project gpoweroff
 
258
# Get Launchpad Settings
 
259
# Launchpad connection is ok
 
260
# Updating project name references in existing apport crashdb configuration
 
261
# Creating new apport hooks
 
262
 
 
263
cat apport/source_test-project.py
 
264
# # Apport integration for test-project
 
265
# #
 
266
# # -*- coding: utf-8 -*-
 
267
# ### BEGIN LICENSE
 
268
# # This file is in the public domain
 
269
# ### END LICENSE
 
270
# import apport
 
271
 
272
# def add_info(report):
 
273
#     """add report info"""
 
274
 
275
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
276
#         report['ThirdParty'] = 'True'
 
277
#         report['CrashDB'] = 'test_project'
 
278
 
 
279
quickly configure lp-project hudson-notifier
 
280
# Get Launchpad Settings
 
281
# Launchpad connection is ok
 
282
# Updating project name references in existing apport crashdb configuration
 
283
 
 
284
bzr status
 
285
# modified:
 
286
#   .quickly
 
287
#   data/ui/AboutTestProjectDialog.ui
 
288
#   etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
289
#   setup.py
 
290
 
 
291
bzr commit -m "Prior to upgrade"
 
292
# Committing to: /tmp/test-project/
 
293
# modified .quickly
 
294
# modified setup.py
 
295
# modified data/ui/AboutTestProjectDialog.ui
 
296
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
297
# Committed revision 4.
 
298
 
 
299
quickly upgrade
 
300
 
 
301
bzr status
 
302
 
 
303
rm -rf apport
 
304
 
 
305
rm -rf etc
 
306
 
 
307
bzr commit -m "Re-running upgrade again"
 
308
# Committing to: /tmp/test-project/
 
309
# missing apport
 
310
# modified apport
 
311
# missing etc
 
312
# modified etc
 
313
# missing apport/source_test-project.py
 
314
# modified apport/source_test-project.py
 
315
# missing etc/apport
 
316
# modified etc/apport
 
317
# missing etc/apport/crashdb.conf.d
 
318
# modified etc/apport/crashdb.conf.d
 
319
# missing etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
320
# modified etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
321
# Committed revision 5.
 
322
 
 
323
bzr status
 
324
 
 
325
quickly upgrade
 
326
# Creating new apport crashdb configuration
 
327
# Creating new apport hooks
 
328
 
 
329
grep LaunchpadIntegration. bin/test-project
 
330
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
331
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
332
 
 
333
grep helpmenu bin/test-project
 
334
#             helpmenu = self.builder.get_object('helpMenu')
 
335
#             if helpmenu:
 
336
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
337
 
 
338
cat etc/apport/crashdb.conf.d/test-project-crashdb.conf
 
339
# ### BEGIN LICENSE
 
340
# # This file is in the public domain
 
341
# ### END LICENSE
 
342
 
343
# test_project = {
 
344
#         'impl' : 'launchpad',
 
345
#         'project' : 'hudson-notifier',
 
346
#         'bug_pattern_base' : None,
 
347
# }
 
348
 
 
349
cat apport/source_test-project.py
 
350
# # Apport integration for test-project
 
351
# #
 
352
# # -*- coding: utf-8 -*-
 
353
# ### BEGIN LICENSE
 
354
# # This file is in the public domain
 
355
# ### END LICENSE
 
356
# import apport
 
357
 
358
# def add_info(report):
 
359
#     """add report info"""
 
360
 
361
#     if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 
362
#         report['ThirdParty'] = 'True'
 
363
#         report['CrashDB'] = 'test_project'
 
364
 
 
365
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
 
366
 
 
367
cp "$TEST_SCRIPT_DIR/TestProjectWindow.ui.renamed_help_menu" ./data/ui/TestProjectWindow.ui
 
368
 
 
369
rm -rf apport
 
370
 
 
371
rm -rf etc
 
372
 
 
373
grep LaunchpadIntegration. bin/test-project
 
374
 
 
375
grep helpmenu bin/test-project
 
376
 
 
377
quickly upgrade
 
378
# Adding launchpad integration to existing application
 
379
# Creating new apport crashdb configuration
 
380
# Creating new apport hooks
 
381
 
 
382
grep LaunchpadIntegration. bin/test-project
 
383
#                 LaunchpadIntegration.set_sourcepackagename('test-project')
 
384
#                 LaunchpadIntegration.add_items(helpmenu, 0, False, True)
 
385
 
 
386
quickly run
 
387
 
 
388
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
 
389
 
 
390
cp "$TEST_SCRIPT_DIR/TestProjectWindow.ui.no_gtk-about" ./data/ui/TestProjectWindow.ui
 
391
 
 
392
rm -rf apport
 
393
 
 
394
rm -rf etc
 
395
 
 
396
grep LaunchpadIntegration. bin/test-project
 
397
 
 
398
grep helpmenu bin/test-project
 
399
 
 
400
grep gtk-about data/ui/TestProjectWindow.ui
 
401
 
 
402
bzr commit -m "Committing after removing all lpi integration"
 
403
# Committing to: /tmp/test-project/
 
404
# modified bin/test-project
 
405
# modified data/ui/TestProjectWindow.ui
 
406
# Committed revision 6.
 
407
 
 
408
quickly upgrade
 
409
# Creating new apport crashdb configuration
 
410
# Creating new apport hooks
 
411
 
 
412
grep LaunchpadIntegration. bin/test-project
 
413
 
 
414
grep helpmenu bin/test-project
 
415
 
 
416
bzr status
 
417
# unknown:
 
418
#   apport/
 
419
#   etc/
 
420
 
 
421
cp "$TEST_SCRIPT_DIR/test-project.no_lpi" ./bin/test-project
 
422
 
 
423
rm ./data/ui/TestProjectWindow.ui
 
424
 
 
425
grep LaunchpadIntegration. bin/test-project
 
426
 
 
427
grep helpmenu bin/test-project
 
428
 
 
429
quickly upgrade