summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2016-11-03 14:10:18 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-16 10:37:58 +0000
commit0a2251780110305a0f986db3955af7db543a30c9 (patch)
tree079f961f899f24e6770bcae33cfc30e3e26e1c5e /documentation
parent38366d30fc7f92c4f502cbf10f5af5bc902e0d6e (diff)
downloadpoky-0a2251780110305a0f986db3955af7db543a30c9.tar.gz
dev-manual: Updated "Exporting Tests" section
Fixed [YOCTO #10588] This section was confusing due to the fact that it used an actual set of IP addresses and image name where they should be clearly called out as examples. Fixed it. (From yocto-docs rev: 006a25fad282b03aacd59eb8dc1a44cad2c19fc4) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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>