summaryrefslogtreecommitdiffstats
path: root/documentation/dev-manual/dev-manual-common-tasks.xml
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r--documentation/dev-manual/dev-manual-common-tasks.xml25
1 files changed, 20 insertions, 5 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml
index 74f61c8e7e..7e8369c977 100644
--- a/documentation/dev-manual/dev-manual-common-tasks.xml
+++ b/documentation/dev-manual/dev-manual-common-tasks.xml
@@ -3483,7 +3483,8 @@
3483 A Package Test (ptest) runs tests against packages built 3483 A Package Test (ptest) runs tests against packages built
3484 by the OpenEmbedded build system on the target machine. 3484 by the OpenEmbedded build system on the target machine.
3485 Minimally, a Ptest contains two things: a shell script that 3485 Minimally, a Ptest contains two things: a shell script that
3486 starts the test, and the actual test. 3486 starts the test (<filename>run-ptest</filename>),
3487 and the actual test.
3487 The shell script that starts the test must not contain 3488 The shell script that starts the test must not contain
3488 the actual test, the script only starts it. 3489 the actual test, the script only starts it.
3489 On the other hand, the test can be anything from a simple 3490 On the other hand, the test can be anything from a simple
@@ -3520,6 +3521,20 @@
3520 inherit ptest 3521 inherit ptest
3521 </literallayout> 3522 </literallayout>
3522 </para></listitem> 3523 </para></listitem>
3524 <listitem><para><emphasis>Create <filename>run-ptest</filename>:</emphasis>
3525 The <filename>run-ptest</filename> script needs to
3526 start your tests.
3527 Locate this script where you would point to it
3528 using
3529 <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>.
3530 Here is an example that starts a test for
3531 <filename>dbus</filename>:
3532 <literallayout class='monospaced'>
3533 #!/bin/sh
3534 cd test
3535 make -k runtest-TESTS
3536 </literallayout>
3537 </para></listitem>
3523 <listitem><para><emphasis>Ensure dependencies are 3538 <listitem><para><emphasis>Ensure dependencies are
3524 met:</emphasis> 3539 met:</emphasis>
3525 If the test adds build or runtime dependencies 3540 If the test adds build or runtime dependencies
@@ -3600,8 +3615,8 @@
3600 which is found in the 3615 which is found in the
3601 <link linkend='build-directory'>Build Directory</link>: 3616 <link linkend='build-directory'>Build Directory</link>:
3602 <literallayout class='monospaced'> 3617 <literallayout class='monospaced'>
3603 DISTRO_FEATURES = "ptest-pkgs" 3618 EXTRA_IMAGE_FEATURES += "ptest"
3604 EXTRA_IMAGE_FEATURES = "ptest" 3619 DISTRO_FEATURES_append = " ptest-pkgs"
3605 </literallayout> 3620 </literallayout>
3606 Once your build is complete, the ptest files are installed 3621 Once your build is complete, the ptest files are installed
3607 into the <filename>/usr/lib/&lt;package&gt;/ptest</filename> 3622 into the <filename>/usr/lib/&lt;package&gt;/ptest</filename>
@@ -3724,7 +3739,7 @@
3724 Set the following variables in your 3739 Set the following variables in your
3725 <filename>local.conf</filename> file as follows: 3740 <filename>local.conf</filename> file as follows:
3726 <literallayout class='monospaced'> 3741 <literallayout class='monospaced'>
3727 DISTRO_FEATURES = "systemd" 3742 DISTRO_FEATURES_append = " systemd"
3728 VIRTUAL-RUNTIME_init_manager = "systemd" 3743 VIRTUAL-RUNTIME_init_manager = "systemd"
3729 </literallayout> 3744 </literallayout>
3730 You can save some disk space by adding 3745 You can save some disk space by adding
@@ -3745,7 +3760,7 @@
3745 Set the following variables in your 3760 Set the following variables in your
3746 <filename>local.conf</filename> file as follows: 3761 <filename>local.conf</filename> file as follows:
3747 <literallayout class='monospaced'> 3762 <literallayout class='monospaced'>
3748 DISTRO_FEATURES = "systemd" 3763 DISTRO_FEATURES_append = " systemd"
3749 VIRTUAL-RUNTIME_init_manager = "systemd" 3764 VIRTUAL-RUNTIME_init_manager = "systemd"
3750 </literallayout> 3765 </literallayout>
3751 Doing so causes your main image to use the 3766 Doing so causes your main image to use the