diff options
author | Antonin Godard <antonin.godard@bootlin.com> | 2025-01-23 16:48:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-01-29 10:41:59 +0000 |
commit | 56e048e7b1cb5044d7529446fb36a318365c0956 (patch) | |
tree | c2d5acf6bf28da462c79eb57119fc5fb1faa58cf /documentation/test-manual | |
parent | fc3e3399c5686b08c59b50d6b63ced52c2231dc1 (diff) | |
download | poky-56e048e7b1cb5044d7529446fb36a318365c0956.tar.gz |
test-manual/ptest: link to common framework ptest classes
We document how to add ptest support for a recipe by inheriting the
ptest class. We may as well tell the user to inherit a ptest class for a
common framework which does most of the job for you.
Suggested-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
(From yocto-docs rev: 411b18e489a97ea4cde05613cdd4c86deb0cb8cb)
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/ptest.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/test-manual/ptest.rst b/documentation/test-manual/ptest.rst index dea1bad23b..2c021af515 100644 --- a/documentation/test-manual/ptest.rst +++ b/documentation/test-manual/ptest.rst | |||
@@ -61,6 +61,20 @@ test. Here is what you have to do for each recipe: | |||
61 | 61 | ||
62 | inherit ptest | 62 | inherit ptest |
63 | 63 | ||
64 | .. note:: | ||
65 | |||
66 | Classes for common frameworks already exist in :term:`OpenEmbedded-Core | ||
67 | (OE-Core)`, such as: | ||
68 | |||
69 | - :oe_git:`go-ptest </openembedded-core/tree/meta/classes-recipe/go-ptest.bbclass>` | ||
70 | - :ref:`ref-classes-ptest-cargo` | ||
71 | - :ref:`ref-classes-ptest-gnome` | ||
72 | - :oe_git:`ptest-perl </openembedded-core/tree/meta/classes-recipe/ptest-perl.bbclass>` | ||
73 | - :oe_git:`ptest-python-pytest </openembedded-core/tree/meta/classes-recipe/ptest-python-pytest.bbclass>` | ||
74 | |||
75 | Inheriting these classes with the ``inherit`` keyword in your recipe will | ||
76 | make the next steps automatic. | ||
77 | |||
64 | - *Create run-ptest:* This script starts your test. Locate the | 78 | - *Create run-ptest:* This script starts your test. Locate the |
65 | script where you will refer to it using | 79 | script where you will refer to it using |
66 | :term:`SRC_URI`. Here is an | 80 | :term:`SRC_URI`. Here is an |