From 0a2251780110305a0f986db3955af7db543a30c9 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 3 Nov 2016 14:10:18 -0700 Subject: 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 Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 36 +++++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml') 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 @@ If your image is already built, make sure the following are set - in your local.conf file. - Be sure to provide the IP address you need: + in your local.conf file: INHERIT +="testexport" - TEST_TARGET_IP = "192.168.7.2" - TEST_SERVER_IP = "192.168.7.1" + TEST_TARGET_IP = "IP-address-for-the-test-target" + TEST_SERVER_IP = "IP-address-for-the-test-server" - You can then export the tests with the following: + You can then export the tests with the following BitBake + command form: - $ bitbake core-image-sato -c testexport + $ bitbake image -c testexport Exporting the tests places them in the Build Directory in - tmp/testexport/core-image-sato, which - is controlled by the + tmp/testexport/image, + which is controlled by the TEST_EXPORT_DIR variable. You can now run the tests outside of the build environment: + $ cd tmp/testexport/image + $ ./runexported.py testdata.json + + + + + Here is a complete example that shows IP addresses and uses + the core-image-sato image: + + INHERIT +="testexport" + TEST_TARGET_IP = "192.168.7.2" + TEST_SERVER_IP = "192.168.7.1" + + Use BitBake to export the tests: + + $ bitbake core-image-sato -c testexport + + Run the tests outside of the build environment using the + following: + $ cd tmp/testexport/core-image-sato $ ./runexported.py testdata.json -- cgit v1.2.3-54-g00ecf