5.11.6. Testing Packages With ptest

A Package Test (ptest) runs tests against packages built by the OpenEmbedded build system on the target machine. A ptest contains at least two items: the actual test, and a shell script (run-ptest) that starts the test. The shell script that starts the test must not contain the actual test, the script only starts it. On the other hand, the test can be anything from a simple shell script that runs a binary and checks the output to an elaborate system of test binaries and data files.

The test generates output in the format used by Automake:

     <result>: <testname>
                

where the result can be PASS, FAIL, or SKIP, and the testname can be any identifying string.

Note

A recipe is "ptest-enabled" if it inherits ptest.