diff options
author | Yoann Congal <yoann.congal@smile.fr> | 2025-02-12 00:47:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-02-26 14:49:27 +0000 |
commit | 9c90dadbd0d29cfea032218b45ab93edcdde4eaf (patch) | |
tree | 969b6acffdc0cd7d0967d2e7cb1dbaded1c501cb /documentation/test-manual | |
parent | 18556f78bd7c408d167bebb67ab37a50736c31a2 (diff) | |
download | poky-9c90dadbd0d29cfea032218b45ab93edcdde4eaf.tar.gz |
reproducible-builds: add a "How to" section with OEQA* variables
Shows an example of the new variable OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS
and still mention OEQA_REPRODUCIBLE_TEST_TARGET/SSTATE_TARGETS that were
shown earlier.
(From yocto-docs rev: 78cf8b1ff1cdfbc863033f267da8fb60419b50fc)
Signed-off-by: Yoann Congal <yoann.congal@smile.fr>
Reviewed-by: Guillaume Swaenepoel <guillaume.swaenepoel@smile.fr>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/test-manual')
-rw-r--r-- | documentation/test-manual/reproducible-builds.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/documentation/test-manual/reproducible-builds.rst b/documentation/test-manual/reproducible-builds.rst index b9f671d688..b913aa4eaf 100644 --- a/documentation/test-manual/reproducible-builds.rst +++ b/documentation/test-manual/reproducible-builds.rst | |||
@@ -145,3 +145,23 @@ set of recipes before the test, meaning they are excluded from reproducibility | |||
145 | testing. As a practical example, you could set ``sstate_targets`` to | 145 | testing. As a practical example, you could set ``sstate_targets`` to |
146 | ``core-image-sato``, then setting ``targets`` to ``core-image-sato-sdk`` would | 146 | ``core-image-sato``, then setting ``targets`` to ``core-image-sato-sdk`` would |
147 | run reproducibility tests only on the targets belonging only to ``core-image-sato-sdk``. | 147 | run reproducibility tests only on the targets belonging only to ``core-image-sato-sdk``. |
148 | |||
149 | Using :term:`OEQA_REPRODUCIBLE_TEST_* <OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS>` variables | ||
150 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
151 | |||
152 | If you want to test the reproducibility of a set of recipes, you can define | ||
153 | :term:`OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS`, in your local.conf:: | ||
154 | |||
155 | OEQA_REPRODUCIBLE_TEST_LEAF_TARGETS = "my-recipe" | ||
156 | |||
157 | This will test the reproducibility of ``my-recipe`` but will use the | ||
158 | :ref:`Shared State <overview-manual/concepts:Shared State>` for most its | ||
159 | dependencies (i.e. the ones explicitly listed in DEPENDS, which may not be all | ||
160 | dependencies, c.f. [depends] varflags, PACKAGE_DEPENDS and other | ||
161 | implementations). | ||
162 | |||
163 | You can have finer control on the test with: | ||
164 | |||
165 | - :term:`OEQA_REPRODUCIBLE_TEST_TARGET`: lists recipes to be built, | ||
166 | - :term:`OEQA_REPRODUCIBLE_TEST_SSTATE_TARGETS`: lists recipes that will | ||
167 | be built using :ref:`Shared State <overview-manual/concepts:Shared State>`. | ||