diff options
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/test-manual/runtime-testing.rst | 19 |
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`. | |||
403 | If your image is already built, make sure the following are set in your | 403 | If 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 | ||
415 | Exporting the tests places them in the :term:`Build Directory` in | 415 | Exporting 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` |
417 | variable. | 417 | variable. |
418 | 418 | ||
419 | You can now run the tests outside of the build environment:: | 419 | You 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 | ||
424 | Here is a complete example that shows IP addresses and uses the | 429 | Here 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:: | |||
435 | Run the tests outside of | 440 | Run the tests outside of |
436 | the build environment using the following:: | 441 | the 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 | ||
441 | Writing New Tests | 446 | Writing New Tests |
442 | ================= | 447 | ================= |