summaryrefslogtreecommitdiffstats
path: root/documentation/ref-manual/classes.rst
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/ref-manual/classes.rst')
-rw-r--r--documentation/ref-manual/classes.rst17
1 files changed, 9 insertions, 8 deletions
diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst
index 6462a86dad..f24c579f16 100644
--- a/documentation/ref-manual/classes.rst
+++ b/documentation/ref-manual/classes.rst
@@ -2768,12 +2768,12 @@ session needs to be started. For example, the
2768:ref:`devshell <ref-classes-devshell>` class all use the ``terminal`` 2768:ref:`devshell <ref-classes-devshell>` class all use the ``terminal``
2769class. 2769class.
2770 2770
2771.. _ref-classes-testimage*: 2771.. _ref-classes-testimage:
2772 2772
2773``testimage*.bbclass`` 2773``testimage.bbclass``
2774====================== 2774=====================
2775 2775
2776The ``testimage*`` classes support running automated tests against 2776The ``testimage`` class supports running automated tests against
2777images using QEMU and on actual hardware. The classes handle loading the 2777images using QEMU and on actual hardware. The classes handle loading the
2778tests and starting the image. To use the classes, you need to perform 2778tests and starting the image. To use the classes, you need to perform
2779steps to set up the environment. 2779steps to set up the environment.
@@ -2787,14 +2787,15 @@ steps to set up the environment.
2787The tests are commands that run on the target system over ``ssh``. Each 2787The tests are commands that run on the target system over ``ssh``. Each
2788test is written in Python and makes use of the ``unittest`` module. 2788test is written in Python and makes use of the ``unittest`` module.
2789 2789
2790The ``testimage.bbclass`` runs tests on an image when called using the 2790The ``testimage`` class runs tests on an image when called using the
2791following:: 2791following::
2792 2792
2793 $ bitbake -c testimage image 2793 $ bitbake -c testimage image
2794 2794
2795The ``testimage-auto`` class 2795Alternatively, if you wish to have tests automatically run for each image
2796runs tests on an image after the image is constructed (i.e. 2796after it is built, you can set :term:`TESTIMAGE_AUTO`::
2797:term:`TESTIMAGE_AUTO` must be set to "1"). 2797
2798 TESTIMAGE_AUTO = "1"
2798 2799
2799For information on how to enable, run, and create new tests, see the 2800For information on how to enable, run, and create new tests, see the
2800":ref:`dev-manual/common-tasks:performing automated runtime testing`" 2801":ref:`dev-manual/common-tasks:performing automated runtime testing`"