|
1.
|
|
|
autopkgtest: Automatic testing for packages
|
|
|
|
autopkgtest: Automatische Tests für Pakete
|
|
Translated and reviewed by
Daniel Holbach
|
|
|
|
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:
|
|
|
|
Die `DEP 8 Spezifikation <DEP8_>`_ definiert wie automatisches Testen sehr einfach in Paketen eingebunden werden kann. Alles was es braucht um einen Test in einem Paket einzubinden:
|
|
Translated by
Moritz Oberhauser
|
|
Reviewed by
Daniel Holbach
|
|
|
|
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,
|
|
|
|
erstellen Sie eine Datei namens ``debian/tests/control``, die die Anforderungen für die Testumgebung festlegt,
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:9
|
|
4.
|
|
|
add the tests in ``debian/tests/``.
|
|
|
|
fügen Sie die Tests in ``debian/tests/`` ein.
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:11
|
|
5.
|
|
|
Testbed requirements
|
|
|
|
Anforderungen für die Testumgebung
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
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.
|
|
|
|
In ``debian/tests/control`` wird festgelegt, was die Testumgebung leisten muss. Zum Beispiel werden alle für den Test benötigten Pakete aufgeführt, ob die Testumgebung während der Erstellung verloren geht oder ob ``root`` Privilegien gebraucht werden. Die `DEP 8 Spezifikation <DEP8_>`_ listet alle möglichen Optionen auf.
|
|
Translated by
Moritz Oberhauser
|
|
Reviewed by
Daniel Holbach
|
|
|
|
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::
|
|
|
|
Im Folgenden schauen wir uns das Quellpaket ``glib2.0`` an. Im einfachsten Fall sieht die Datei so aus::
|
|
Translated by
Maik Wagner
|
|
|
|
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.
|
|
|
|
Das stellt für den Test ``debian/tests/build`` sicher, dass die Pakete ``libglib2.0-dev`` und ``build-essential`` installiert sind.
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
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.
|
|
|
|
Sie können in der ``Depends``-Zeile ``@`` benutzen, um festzulegen, dass Sie alle Pakete installiert haben wollen, die aus dem jeweiligen Quellpaket erzeugt werden.
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:31
|
|
10.
|
|
|
The actual tests
|
|
|
|
Die eigentlichen Tests
|
|
Translated by
Florian Diesch
|
|
Reviewed by
Daniel Holbach
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:37
|