summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml36
1 files changed, 28 insertions, 8 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 086d0bad99..95b8d2741d 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -9520,27 +9520,47 @@
9520 9520
9521 <para> 9521 <para>
9522 If your image is already built, make sure the following are set 9522 If your image is already built, make sure the following are set
9523 in your <filename>local.conf</filename> file. 9523 in your <filename>local.conf</filename> file:
9524 Be sure to provide the IP address you need:
9525 <literallayout class='monospaced'> 9524 <literallayout class='monospaced'>
9526 INHERIT +="testexport" 9525 INHERIT +="testexport"
9527 TEST_TARGET_IP = "192.168.7.2" 9526 TEST_TARGET_IP = "<replaceable>IP-address-for-the-test-target</replaceable>"
9528 TEST_SERVER_IP = "192.168.7.1" 9527 TEST_SERVER_IP = "<replaceable>IP-address-for-the-test-server</replaceable>"
9529 </literallayout> 9528 </literallayout>
9530 You can then export the tests with the following: 9529 You can then export the tests with the following BitBake
9530 command form:
9531 <literallayout class='monospaced'> 9531 <literallayout class='monospaced'>
9532 $ bitbake core-image-sato -c testexport 9532 $ bitbake <replaceable>image</replaceable> -c testexport
9533 </literallayout> 9533 </literallayout>
9534 Exporting the tests places them in the 9534 Exporting the tests places them in the
9535 <link linkend='build-directory'>Build Directory</link> in 9535 <link linkend='build-directory'>Build Directory</link> in
9536 <filename>tmp/testexport/core-image-sato</filename>, which 9536 <filename>tmp/testexport/</filename><replaceable>image</replaceable>,
9537 is controlled by the 9537 which is controlled by the
9538 <filename>TEST_EXPORT_DIR</filename> variable. 9538 <filename>TEST_EXPORT_DIR</filename> variable.
9539 </para> 9539 </para>
9540 9540
9541 <para> 9541 <para>
9542 You can now run the tests outside of the build environment: 9542 You can now run the tests outside of the build environment:
9543 <literallayout class='monospaced'> 9543 <literallayout class='monospaced'>
9544 $ cd tmp/testexport/<replaceable>image</replaceable>
9545 $ ./runexported.py testdata.json
9546 </literallayout>
9547 </para>
9548
9549 <para>
9550 Here is a complete example that shows IP addresses and uses
9551 the <filename>core-image-sato</filename> image:
9552 <literallayout class='monospaced'>
9553 INHERIT +="testexport"
9554 TEST_TARGET_IP = "192.168.7.2"
9555 TEST_SERVER_IP = "192.168.7.1"
9556 </literallayout>
9557 Use BitBake to export the tests:
9558 <literallayout class='monospaced'>
9559 $ bitbake core-image-sato -c testexport
9560 </literallayout>
9561 Run the tests outside of the build environment using the
9562 following:
9563 <literallayout class='monospaced'>
9544 $ cd tmp/testexport/core-image-sato 9564 $ cd tmp/testexport/core-image-sato
9545 $ ./runexported.py testdata.json 9565 $ ./runexported.py testdata.json
9546 </literallayout> 9566 </literallayout>