From patchwork Tue Jun 16 16:05:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Robert P. J. Day" X-Patchwork-Id: 90221 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CD69CD98DA for ; Tue, 16 Jun 2026 16:05:46 +0000 (UTC) Received: from cpanel10.indieserve.net (cpanel10.indieserve.net [199.212.143.9]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.1307.1781625937107559779 for ; Tue, 16 Jun 2026 09:05:38 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@crashcourse.ca header.s=default header.b=zwbp3tqK; spf=pass (domain: crashcourse.ca, ip: 199.212.143.9, mailfrom: rpjday@crashcourse.ca) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crashcourse.ca; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9oVr/2GyIht+DkFW/PbGGH6K/ZtCaUW0tHvqyV4dZJU=; b=zwbp3tqKGtj+WkvqYvN6n3FcKy MYSdTx5TiEh49jYgSYT6LU/eIfhFc5J5lTOQoPp1pAhqlmXQDhYRrQdtM4g60KlKnOOBZwZQupZGw v6qsuwbPUJ0AvFWKsP48fe2ju7AiJwgsDeOk6yj/NP4rcgSW8sHrx/XhBE6s/tIS0swYYbQHurVYu kb3i3PMz9B/4qEAP69sMjKbWw7MJJa34LC5pW4qdtjml6JqX6NEQwKfB7Mi/f7kaY+3ceZhsWl2AU ufxk2T8QMdeNstRtH4E6DGd1Z0q8xTqute7B0Ro0Oj1xV9XJ+b9nQDotMotOrxI4Jy3FjdeAznSNs /6Ly6eGQ==; Received: from pool-174-115-41-146.cpe.net.cable.rogers.com ([174.115.41.146]:49844 helo=trixie) by cpanel10.indieserve.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.4) (envelope-from ) id 1wZWI9-00000007LJy-34Hr for docs@lists.yoctoproject.org; Tue, 16 Jun 2026 12:05:34 -0400 Date: Tue, 16 Jun 2026 12:05:30 -0400 (EDT) From: "Robert P. J. Day" To: YP docs mailing list Subject: [PATCH v2] test-manual: add more detail to the ptest section Message-ID: <5f3560bb-bb16-89ed-9b39-4a126b7a64b2@crashcourse.ca> MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel10.indieserve.net X-AntiAbuse: Original Domain - lists.yoctoproject.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel10.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel10.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 16 Jun 2026 16:05:46 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/9756 Expand the ptest section to show how to distinguish between adding all ptest packages to an image versus adding only a selected set of packages to the image. Also mention using "oe-pkgdata-util" to list all ptest packages generated by the build. Signed-off-by: Robert P. J. Day diff --git a/documentation/test-manual/ptest.rst b/documentation/test-manual/ptest.rst index 1c946f81d..62eb137d2 100644 --- a/documentation/test-manual/ptest.rst +++ b/documentation/test-manual/ptest.rst @@ -31,17 +31,46 @@ see the :yocto_wiki:`Ptest ` wiki page. Adding ptest to Your Build ========================== -To add package testing to your build, add the :term:`DISTRO_FEATURES` and -:term:`EXTRA_IMAGE_FEATURES` variables to your ``local.conf`` file, which -is found in the :term:`Build Directory`:: +Adding package testing to your image is done in two steps: + +#. Select that all ptest packages should be built and packaged, and + +#. Identify which of those ptest packages to add to your image. + +First, in order to build all ptest packages, add the following line +to a :term:`configuration file`:: DISTRO_FEATURES:append = " ptest" - EXTRA_IMAGE_FEATURES += "ptest-pkgs" + +Note that this will cause all ptest packages to be built and packaged, +but will not add any of those packages to your image; that comes in +the next step. You can then add ptest packages to your image in one of two ways. + +#. If you want to add *all* of the generated ptest packages, add the line:: + + EXTRA_IMAGE_FEATURES += "ptest-pkgs" + +#. On the other hand, if you want to add only a select few of the ptest + packages, you can use some variation of:: + + IMAGE_INSTALL:append = " e2fsprogs-ptest zlib-ptest" 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. +.. note:: + + If you want to list all ptest packages generated by your + build that *could* be installed in your image (not just the ones + you select), you can use the ``oe-pkgdata-util`` command:: + + $ oe-pkgdata-util list-pkgs "*-ptest" + acl-ptest + attr-ptest + bash-ptest + ... etc etc ... + Running ptest =============