Merge lp:~dholbach/ubuntu-packaging-guide/autopkgtest into lp:ubuntu-packaging-guide

Proposed by Daniel Holbach
Status: Merged
Merged at revision: 177
Proposed branch: lp:~dholbach/ubuntu-packaging-guide/autopkgtest
Merge into: lp:ubuntu-packaging-guide
Diff against target: 34 lines (+16/-1)
1 file modified
ubuntu-packaging-guide/auto-pkg-test.rst (+16/-1)
To merge this branch: bzr merge lp:~dholbach/ubuntu-packaging-guide/autopkgtest
Reviewer Review Type Date Requested Status
Nicholas Skaggs Pending
Ubuntu Packaging Guide Team Pending
Review via email: mp+129403@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

It's good -- I think it's worth not diving into each little detail on this page. That can go into the walkthrough, and of course in the training materials.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-packaging-guide/auto-pkg-test.rst'
2--- ubuntu-packaging-guide/auto-pkg-test.rst 2012-10-10 12:33:59 +0000
3+++ ubuntu-packaging-guide/auto-pkg-test.rst 2012-10-12 12:02:27 +0000
4@@ -23,7 +23,8 @@
5 gets broken during the build or if ``root`` permissions are required. The
6 `DEP 8 specification`_ lists all available options.
7
8-In a very simple case the file would look like this::
9+Below we are having a look at the ``glib2.0`` source package. In a very
10+simple case the file would look like this::
11
12 Tests: build
13 Depends: libglib2.0-dev, build-essential
14@@ -119,6 +120,20 @@
15 Packages in Debian with a testsuite header will also be automatically added
16 when they are synced to Ubuntu.
17
18+Getting the test into Ubuntu
19+============================
20+
21+The process of submitting an autopkgtest for a package is largely similar to
22+:doc:`fixing a bug in Ubuntu<./fixing-a-bug>`. Essentially you simply:
23+
24+* run ``bzr branch ubuntu:<packagename>``,
25+* edit ``debian/control`` to enable the tests,
26+* add the ``debian/tests`` directory,
27+* write the ``debian/tests/control`` based on the `DEP 8 Specification`_,
28+* add your test case(s) to ``debian/tests``,
29+* commit your changes, push them to Launchpad, propose a merge and get it
30+ reviewed just like any other improvement in a source package.
31+
32 .. _`DEP 8 Specification`: http://anonscm.debian.org/gitweb/?p=autopkgtest/autopkgtest.git;a=blob_plain;f=doc/README.package-tests;hb=HEAD
33 .. _`libxml2 tests`: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/libxml2/quantal/files/head:/debian/tests/
34 .. _`gvfs tests`: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/quantal/gvfs/quantal/files/head:/debian/tests/

Subscribers

People subscribed via source and target branches