summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual
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:38:41 +0000
commit0f86c1d89936ba3c9d2579676b595a30e4764c49 (patch)
treeb0e0a27893023d3362df90ff63be10c8c8398388 /documentation/dev-manual
parent9ca2c30cb49bcea0f47d2271348990d46a76a4be (diff)
downloadpoky-0f86c1d89936ba3c9d2579676b595a30e4764c49.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: 4682899c7b70c730256412bf08f469c457af1c2e) Signed-off-by: Scott Rifenbark <srifenbark@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual')
-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>