From mboxrd@z Thu Jan 1 00:00:00 1970 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 36D31C71157 for ; Tue, 24 Jun 2025 06:38:06 +0000 (UTC) Subject: Re: [PATCH v3] meta/meta-selftest: add selftest-hello-mod recipe To: openembedded-core@lists.openembedded.org From: "Dixit Parmar" X-Originating-Location: IN (1.7.171.2) X-Originating-Platform: Windows Chrome 137 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Mon, 23 Jun 2025 23:37:57 -0700 References: In-Reply-To: Message-ID: <4249.1750747077194924898@lists.openembedded.org> Content-Type: multipart/alternative; boundary="UWO9ZDxSuGH2tDBkFqI4" List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 24 Jun 2025 06:38:06 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/219228 --UWO9ZDxSuGH2tDBkFqI4 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 23, 2025 at 10:20 PM, Ross Burton wrote: >=20 > On 21 Jun 2025, at 08:31, Dixit Parmar via lists.openembedded.org > wrote: >=20 >> Kernel module specific oe test cases requires a test kernel >> module package to work with. Added selftest-hello-mod >> derived from meta-skeleton/recipes-kernel/hello-mod. >=20 > Is there meant to be an actual test case to follow this up? Yes, it's here https://lists.openembedded.org/g/openembedded-core/message/2= 18013 - please review this too ;) >=20 > There=E2=80=99s already a kernel module in oeqa under > meta/lib/oeqa/runtime/files/hellomod.c, I=E2=80=99ve previously tried add= ing more > test cases around them (for SDKs not selftest though): >=20 > https://git.yoctoproject.org/poky-contrib/log/?h=3Dross/module >=20 > Maybe instead of duplicating the kernel module more we move the source an= d > Makefile into meta/lib/oeqa/files/kmodule/ and then the tests can easily > use them, and the recipe could set SRC_URI to > ${COREBASE}/lib/oeqa/files/kmodule/hellomod.c. I created a new recipe with the corresponding source files with the idea of= having an independent self-test package for hello-mod. This is included in= the meta-selftest so it can be used for other kernel module-related test c= ases in the future. I can modify it to point to the source and Makefile out= side of the package if you recommend, though. >=20 > Cheers, > Ross --UWO9ZDxSuGH2tDBkFqI4 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Mon, Jun 23, 2025 at 10:20 PM, Ross Burton wrote:
On 21 Jun 2025, at 08:31, Dixit Parmar via lists.openembedded.o= rg <dixitparmar19=3Dgmail.com@lists.openembedded.org> wrote:
Kernel module specific oe test cases requires a test kernel
module package to work with. Added selftest-hello-mod
derived from m= eta-skeleton/recipes-kernel/hello-mod.
Is there meant to be an actual test case to follow this up?
Yes, it's here https://lists.openembe= dded.org/g/openembedded-core/message/218013 - please review this too ;)=
There’s already a kernel module in oeqa under meta/lib/oe= qa/runtime/files/hellomod.c, I’ve previously tried adding more test c= ases around them (for SDKs not selftest though):

https://git.yoctoproject.org/poky-contrib/log/?h=3Dross= /module

Maybe instead of duplicating the kernel module more = we move the source and Makefile into meta/lib/oeqa/files/kmodule/ and then = the tests can easily use them, and the recipe could set SRC_URI to ${COREBA= SE}/lib/oeqa/files/kmodule/hellomod.c.
I created a new recipe with the corresponding source files with the idea of= having an independent self-test package for hello-mod. This is included in= the meta-selftest so it can be used for other kernel module-related test c= ases in the future. I can modify it to point to the source and Makefile out= side of the package if you recommend, though.
Cheers,
Ross
--UWO9ZDxSuGH2tDBkFqI4--