|
17.
|
|
|
The Ubuntu CI system uses the QEMU runner and runs the tests from the packages in the archive, with ``-proposed`` enabled. To reproduce the exact same environment, first install the necessary packages::
|
|
|
|
Система непрерывной интеграции Ubuntu CI использует эмулятор QEMU и запускает тесты из пакетов в архиве, с включённом флагом ``-proposed``. Чтобы вручную получить то же окружение, сначала необходимо установить следующие пакеты:
|
|
Translated by
Mark Vartanyan
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:97
|
|
18.
|
|
|
Now build a testbed with::
|
|
|
|
Теперь выполните сборку тестового окружения, выполнив следующее:
|
|
Translated by
Mark Vartanyan
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:103
|
|
19.
|
|
|
(Please see its manpage and ``--help`` output for selecting different releases, architectures, output directory, or using proxies). This will build e. g. ``adt-trusty-amd64-cloud.img``.
|
|
|
|
(Более подробно о выборе других релизов, архитектур, целевых директорий, и об использовании прокси -- в manpage и в выводе опции ``--help``). Эта команда выполнит сборку, например ``adt-trusty-amd64-cloud.img``.
|
|
Translated by
Mark Vartanyan
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:107
|
|
20.
|
|
|
Then run the tests of a source package like ``libpng`` in that QEMU image::
|
|
|
|
Теперь запустите тесты исходного пакета, например ``libpng``, в образе QEMU::
|
|
Translated by
Mark Vartanyan
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:111
|
|
21.
|
|
|
The Ubuntu CI system runs packages with only selected packages from ``-proposed`` available (the package which caused the test to be run); to enable that, run::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:115
|
|
22.
|
|
|
or to run with all packages from ``-proposed``::
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:121
|
|
23.
|
|
|
The ``autopkgtest`` manpage has a lot more valuable information on other testing options.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:125
|
|
24.
|
|
|
Further examples
|
|
|
|
Дальнейшие примеры
|
|
Translated by
Aleksey Kabanov
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:130
|
|
25.
|
|
|
This list is not comprehensive, but might help you get a better idea of how automated tests are implemented and used in Ubuntu.
|
|
|
|
Этот список не полон, но может помочь вам получить представление о том, как автоматические тесты реализованы, и как они используются в Ubuntu.
|
|
Translated by
Aleksey Kabanov
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:132
|
|
26.
|
|
|
The `libxml2 tests <libxml2_>`_ are very similar. They also run a test-build of a simple piece of C code and execute it.
|
|
|
|
Для библиотеки `libxml2 <libxml2_>`_ , тесты очень похожи. Они так же запускают тестовую сборку простого кода на C и выполняют его.
|
|
Translated by
Mark Vartanyan
|
|
Reviewed by
Anton Patsev
|
|
|
|
Located in
../ubuntu-packaging-guide/auto-pkg-test.rst:135
|