summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorTrevor Gamblin <tgamblin@baylibre.com>2024-12-19 09:52:25 -0500
committerSteve Sakoman <steve@sakoman.com>2025-01-09 06:25:36 -0800
commit08b9ccdba324e364b49325bdf2ffbac2def6a2b0 (patch)
tree261aa66348d7b180b6856f2ddfa53e01afc7a621 /documentation
parent11ebb861115168d6a488975f80e4540d908002d1 (diff)
downloadpoky-08b9ccdba324e364b49325bdf2ffbac2def6a2b0.tar.gz
reproducible-builds.rst: show how to build a single package
Add a bit to the "Can we prove the project is reproducible?" section to show how OEQA_REPRODUCIBLE_TEST_TARGET can be used to test a single package (rather than the world build), as this may be useful for maintainers. [YOCTO #15619] (From yocto-docs rev: 6430ed0572ca5a6e10629aa27a05d4b262e87548) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Reviewed-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> (cherry picked from commit c4bc09f61621938086be377653121d6b4e62b570) Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/test-manual/reproducible-builds.rst22
1 files changed, 15 insertions, 7 deletions
diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst
index 91f94a5c74..d581155eb2 100644
--- a/documentation/test-manual/reproducible-builds.rst
+++ b/documentation/test-manual/reproducible-builds.rst
@@ -91,13 +91,21 @@ run::
91 91
92 oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds 92 oe-selftest -r reproducible.ReproducibleTests.test_reproducible_builds
93 93
94This defaults to including a ``world`` build so, if other layers are added, it would 94This defaults to including a ``world`` build so, if other layers are added, it
95also run the tests for recipes in the additional layers. Different build targets 95would also run the tests for recipes in the additional layers. Different build
96can be defined using the :term:`OEQA_REPRODUCIBLE_TEST_TARGET` variable in ``local.conf``. 96targets can be defined using the :term:`OEQA_REPRODUCIBLE_TEST_TARGET` variable
97The first build will be run using :ref:`Shared State <overview-manual/concepts:Shared State>` if 97in ``local.conf``. For example, running reproducibility tests for only the
98available, the second build explicitly disables 98``python3-numpy`` recipe can be done by setting::
99:ref:`Shared State <overview-manual/concepts:Shared State>` except for recipes defined in 99
100the :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS` variable, and builds on the 100 OEQA_REPRODUCIBLE_TEST_TARGET = "python3-numpy"
101
102in local.conf before running the ``oe-selftest`` command shown above.
103
104Reproducibility builds the target list twice. The first build will be run using
105:ref:`Shared State <overview-manual/concepts:Shared State>` if available, the
106second build explicitly disables :ref:`Shared State
107<overview-manual/concepts:Shared State>` except for recipes defined in the
108:term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS` variable, and builds on the
101specific host the build is running on. This means we can test reproducibility 109specific host the build is running on. This means we can test reproducibility
102builds between different host distributions over time on the Autobuilder. 110builds between different host distributions over time on the Autobuilder.
103 111