1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 12:49:46 +00:00

test-manual: update runtime-testing Exporting Tests section

This has changed since commit ed4238487c81 ("testexport: Fix to work as
an image class") in OE-Core.

[Antonin Godard: mention oecore commit in commit body]

(From yocto-docs rev: fd16d625089eab377ad3061f6aa21f94c251deb9)

Signed-off-by: Barne Carstensen <barne.carstensen@danfoss.com>
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
(cherry picked from commit 2caa8e581feaf3640bea68108f9a02583b17b21b)
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
Barne Carstensen
2025-09-16 11:01:22 +00:00
committed by Steve Sakoman
parent 619804e1fc
commit b55b77df5f
+12 -7
View File
@@ -403,7 +403,7 @@ defined in :term:`TEST_SUITES`.
If your image is already built, make sure the following are set in your If your image is already built, make sure the following are set in your
``local.conf`` file:: ``local.conf`` file::
INHERIT += "testexport" IMAGE_CLASSES += "testexport"
TEST_TARGET_IP = "IP-address-for-the-test-target" TEST_TARGET_IP = "IP-address-for-the-test-target"
TEST_SERVER_IP = "IP-address-for-the-test-server" TEST_SERVER_IP = "IP-address-for-the-test-server"
@@ -413,18 +413,23 @@ following BitBake command form::
$ bitbake image -c testexport $ bitbake image -c testexport
Exporting the tests places them in the :term:`Build Directory` in Exporting the tests places them in the :term:`Build Directory` in
``tmp/testexport/``\ image, which is controlled by the :term:`TEST_EXPORT_DIR` ``tmp/testimage/``\ image, which is controlled by the :term:`TEST_EXPORT_DIR`
variable. variable.
You can now run the tests outside of the build environment:: You can now run the tests outside of the build environment::
$ cd tmp/testexport/image $ cd tmp/testimage/image
$ ./runexported.py testdata.json $ ./oe-test runtime
.. note::
You might need to run the image under QEMU or deploy it to your
hardware before you can run the tests.
Here is a complete example that shows IP addresses and uses the Here is a complete example that shows IP addresses and uses the
``core-image-sato`` image:: ``core-image-sato`` image::
INHERIT += "testexport" IMAGE_CLASSES += "testexport"
TEST_TARGET_IP = "192.168.7.2" TEST_TARGET_IP = "192.168.7.2"
TEST_SERVER_IP = "192.168.7.1" TEST_SERVER_IP = "192.168.7.1"
@@ -435,8 +440,8 @@ Use BitBake to export the tests::
Run the tests outside of Run the tests outside of
the build environment using the following:: the build environment using the following::
$ cd tmp/testexport/core-image-sato $ cd tmp/testimage/core-image-sato
$ ./runexported.py testdata.json $ ./oe-test runtime
Writing New Tests Writing New Tests
================= =================