5.12.6.1. Adding ptest to Your Build

To add package testing to your build, add the DISTRO_FEATURES and EXTRA_IMAGE_FEATURES variables to your local.conf file, which is found in the Build Directory:

     DISTRO_FEATURES_append = " ptest"
     EXTRA_IMAGE_FEATURES += "ptest-pkgs"
                    

Note

The OpenEmbedded build system uses the PTEST_ENABLED variable to see if it should enable ptests during a build. This variable is enabled or disabled through your use of the DISTRO_FEATURES variable. You do not set PTEST_ENABLED directly.

Once your build is complete, the ptest files are installed into the /usr/lib/<package>/ptest directory within the image, where <package> is the name of the package.