summaryrefslogtreecommitdiffstats
path: root/documentation/test-manual/runtime-testing.rst
diff options
context:
space:
mode:
authorBarne Carstensen <barne.carstensen@danfoss.com>2025-09-16 11:01:22 +0000
committerSteve Sakoman <steve@sakoman.com>2025-09-30 08:01:59 -0700
commitb55b77df5f079de3f7019d00dbac3f8066c79f8a (patch)
treeeefc272d93557df7c785d255e2e2b849a2d69529 /documentation/test-manual/runtime-testing.rst
parent619804e1fcf7db16335ba38d35309cfc09f7c4af (diff)
downloadpoky-b55b77df5f079de3f7019d00dbac3f8066c79f8a.tar.gz
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>
Diffstat (limited to 'documentation/test-manual/runtime-testing.rst')
-rw-r--r--documentation/test-manual/runtime-testing.rst19
1 files changed, 12 insertions, 7 deletions
diff --git a/documentation/test-manual/runtime-testing.rst b/documentation/test-manual/runtime-testing.rst
index 557e0530b0..909448ab2e 100644
--- a/documentation/test-manual/runtime-testing.rst
+++ b/documentation/test-manual/runtime-testing.rst
@@ -403,7 +403,7 @@ defined in :term:`TEST_SUITES`.
403If your image is already built, make sure the following are set in your 403If your image is already built, make sure the following are set in your
404``local.conf`` file:: 404``local.conf`` file::
405 405
406 INHERIT += "testexport" 406 IMAGE_CLASSES += "testexport"
407 TEST_TARGET_IP = "IP-address-for-the-test-target" 407 TEST_TARGET_IP = "IP-address-for-the-test-target"
408 TEST_SERVER_IP = "IP-address-for-the-test-server" 408 TEST_SERVER_IP = "IP-address-for-the-test-server"
409 409
@@ -413,18 +413,23 @@ following BitBake command form::
413 $ bitbake image -c testexport 413 $ bitbake image -c testexport
414 414
415Exporting the tests places them in the :term:`Build Directory` in 415Exporting the tests places them in the :term:`Build Directory` in
416``tmp/testexport/``\ image, which is controlled by the :term:`TEST_EXPORT_DIR` 416``tmp/testimage/``\ image, which is controlled by the :term:`TEST_EXPORT_DIR`
417variable. 417variable.
418 418
419You can now run the tests outside of the build environment:: 419You can now run the tests outside of the build environment::
420 420
421 $ cd tmp/testexport/image 421 $ cd tmp/testimage/image
422 $ ./runexported.py testdata.json 422 $ ./oe-test runtime
423
424.. note::
425
426 You might need to run the image under QEMU or deploy it to your
427 hardware before you can run the tests.
423 428
424Here is a complete example that shows IP addresses and uses the 429Here is a complete example that shows IP addresses and uses the
425``core-image-sato`` image:: 430``core-image-sato`` image::
426 431
427 INHERIT += "testexport" 432 IMAGE_CLASSES += "testexport"
428 TEST_TARGET_IP = "192.168.7.2" 433 TEST_TARGET_IP = "192.168.7.2"
429 TEST_SERVER_IP = "192.168.7.1" 434 TEST_SERVER_IP = "192.168.7.1"
430 435
@@ -435,8 +440,8 @@ Use BitBake to export the tests::
435Run the tests outside of 440Run the tests outside of
436the build environment using the following:: 441the build environment using the following::
437 442
438 $ cd tmp/testexport/core-image-sato 443 $ cd tmp/testimage/core-image-sato
439 $ ./runexported.py testdata.json 444 $ ./oe-test runtime
440 445
441Writing New Tests 446Writing New Tests
442================= 447=================