|
1.
|
|
|
autopkgtest: Automatic testing for packages
|
|
|
|
autopkgtest: Automatisch softwarepakketten testen
|
|
Translated by
Letatcest
|
|
Reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:3
|
|
2.
|
|
|
The `DEP 8 specification <DEP8_>`_ defines how automatic testing can very easily be integrated into packages. To integrate a test into a package, all you need to do is:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:5
|
|
3.
|
|
|
add a file called ``debian/tests/control`` which specifies the requirements for the testbed,
|
|
|
|
voeg een bestand toe met de naam ``debian/tests/control`` dat de vereisten voor de test specificeert,
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:9
|
|
4.
|
|
|
add the tests in ``debian/tests/``.
|
|
|
|
voeg de testen toe in ``debian/tests/``.
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:11
|
|
5.
|
|
|
Testbed requirements
|
|
|
|
Testvereisten
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:15
|
|
6.
|
|
|
In ``debian/tests/control`` you specify what to expect from the testbed. So for example you list all the required packages for the tests, if the testbed gets broken during the build or if ``root`` permissions are required. The `DEP 8 specification <DEP8_>`_ lists all available options.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:17
|
|
7.
|
|
|
Below we are having a look at the ``glib2.0`` source package. In a very simple case the file would look like this::
|
|
|
|
Hieronder bekijken we het ``glib2.0``-bronpakket. In een zeer eenvoudig geval zou het bestand er als volgt uitzien::
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:22
|
|
8.
|
|
|
For the test in ``debian/tests/build`` this would ensure that the packages ``libglib2.0-dev`` and ``build-essential`` are installed.
|
|
|
|
Voor de test in ``debian/tests/build`` zou dit ervoor zorgen dat de pakketten ``libglib2.0-dev`` en ``build-essential`` geïnstalleerd zijn.
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:28
|
|
9.
|
|
|
You can use ``@`` in the ``Depends`` line to indicate that you want all the packages installed which are built by the source package in question.
|
|
|
|
U kunt ``@`` in de regel ``Depends`` gebruiken om aan te geven dat u alle pakketten die gebouwd worden door het betreffende bronpakket geïnstalleerd wilt hebben.
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:31
|
|
10.
|
|
|
The actual tests
|
|
|
|
De werkelijke testen
|
|
Translated and reviewed by
Hannie Dumoleyn
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:37
|