From patchwork Tue Jun 16 09:34:48 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: 90186 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 99109CD98DA for ; Tue, 16 Jun 2026 09:34:56 +0000 (UTC) Received: from cpanel10.indieserve.net (cpanel10.indieserve.net [199.212.143.9]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.150585.1781602493804415039 for ; Tue, 16 Jun 2026 02:34:54 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@crashcourse.ca header.s=default header.b=wnlc6cBH; 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=HL5aYRqs1HZhYMJ0JsB32O2SNN6m1huwUoruMaVi5Vo=; b=wnlc6cBHMbJdZskXF36IviN3ug QWjZI0YFkT4ULmv1Gx9o0uBxw0mVJGIOxdDv5x5FXSNSePOE/7+rC5FLVpUzxY29mb4L2A02ehLRy Ekt8b0qRtvSQOzTo09ledPT45BKq5cv4W8t5nYiz4/269hgNfSxS6knFXE7Fg937QzDiL6AG3JQ/U nvBsKyl6oBqW39UUzrT9zLfwfwjQLHI5PPf25h5LlQ9HRhpneStEcGV/0css6kS3F0AY3QxivfqqB ePr9x4/NuZvtu88s+xPU9WZ4WuuvpHn3gdBI206WixlV7tQHkpVIZB6L5fFX5CJaAEgz/dUCORxhl Sf22fa2g==; Received: from pool-174-114-114-5.cpe.net.cable.rogers.com ([174.114.114.5]:33294 helo=trixie) by cpanel10.indieserve.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.4) (envelope-from ) id 1wZQC3-00000006cNI-0QKJ for docs@lists.yoctoproject.org; Tue, 16 Jun 2026 05:34:52 -0400 Date: Tue, 16 Jun 2026 05:34:48 -0400 (EDT) From: "Robert P. J. Day" To: YP docs mailing list Subject: [PATCH] test-manual: add more detail to the ptest section Message-ID: <46ed8884-f3d1-ee7d-1da6-a73a6e07c74c@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 09:34:56 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/9730 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. Signed-off-by: Robert P. J. Day --- The ptest section really should be considerably longer, perhaps using actual examples from the OE-Core code base. But I'll add just this bit for now. diff --git a/documentation/test-manual/ptest.rst b/documentation/test-manual/ptest.rst index 1c946f81d..dc493b72c 100644 --- a/documentation/test-manual/ptest.rst +++ b/documentation/test-manual/ptest.rst @@ -31,12 +31,29 @@ 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 your ``local.conf`` 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``