yocto.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Adding oeqa runtime decorators to custom layers
@ 2025-08-07 18:44 João Henrique Freitas
  2025-08-11  9:27 ` [yocto] " Gyorgy Sarvari
  0 siblings, 1 reply; 3+ messages in thread
From: João Henrique Freitas @ 2025-08-07 18:44 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 519 bytes --]

Hi,

In my layer I have some oeqa runtime tests. That is ok and well documented
in Yocto Project documentation. However, I also want to define my custom
oeqa runtime decorators. Is that possible ?

I tried to add the following in my layer.conf:

BBFILES += "${LAYERDIR}/lib/oeqa/**/*.py"

No success, so far.

I'm using master branch and could not find any other layer that adds its
own decorators. Any ideas ?

Thanks.
-- 
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil

[-- Attachment #2: Type: text/html, Size: 1544 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Adding oeqa runtime decorators to custom layers
  2025-08-07 18:44 Adding oeqa runtime decorators to custom layers João Henrique Freitas
@ 2025-08-11  9:27 ` Gyorgy Sarvari
  2025-08-17  0:18   ` João Henrique Freitas
  0 siblings, 1 reply; 3+ messages in thread
From: Gyorgy Sarvari @ 2025-08-11  9:27 UTC (permalink / raw)
  To: yocto, joaohf

On 8/7/25 20:44, João Henrique Ferreira de Freitas via
lists.yoctoproject.org wrote:
>
>
> Hi,
>
> In my layer I have some oeqa runtime tests. That is ok and well
> documented in Yocto Project documentation. However, I also want to
> define my custom oeqa runtime decorators. Is that possible ?
>
> I tried to add the following in my layer.conf:
>
> BBFILES+="${LAYERDIR}/lib/oeqa/**/*.py"
>
> No success, so far.
>
> I'm using master branch and could not find any other layer that adds
> its own decorators. Any ideas ?

Only an idea... BBFILES variable is used to collect the patterns for bb
and bbappend files. To add custom python code, you should use the
"addpylib" directive[1] in your config. I *think* it should take effect
for oeqa tests also, but haven't tried, and that's why it is an idea only.

[1]:
https://docs.yoctoproject.org/bitbake/2.8/bitbake-user-manual/bitbake-user-manual-metadata.html#extending-python-library-code

>
> Thanks.
> -- 
> João Henrique Ferreira de Freitas - joaohf_at_gmail.com
> <http://joaohf_at_gmail.com>
> Campinas-SP-Brasil
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#65738): https://lists.yoctoproject.org/g/yocto/message/65738
> Mute This Topic: https://lists.yoctoproject.org/mt/114588099/6084445
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [skandigraun@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] Adding oeqa runtime decorators to custom layers
  2025-08-11  9:27 ` [yocto] " Gyorgy Sarvari
@ 2025-08-17  0:18   ` João Henrique Freitas
  0 siblings, 0 replies; 3+ messages in thread
From: João Henrique Freitas @ 2025-08-17  0:18 UTC (permalink / raw)
  To: Gyorgy Sarvari; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1943 bytes --]

Hi,

Thank you. That worked as expected.

Here is the final results:
https://github.com/meta-erlang/meta-erlang/commit/b8259299bda02ddce0ab6d4b40423d6208b192c0

On Mon, Aug 11, 2025 at 6:27 AM Gyorgy Sarvari <skandigraun@gmail.com>
wrote:

> On 8/7/25 20:44, João Henrique Ferreira de Freitas via
> lists.yoctoproject.org wrote:
> >
> >
> > Hi,
> >
> > In my layer I have some oeqa runtime tests. That is ok and well
> > documented in Yocto Project documentation. However, I also want to
> > define my custom oeqa runtime decorators. Is that possible ?
> >
> > I tried to add the following in my layer.conf:
> >
> > BBFILES+="${LAYERDIR}/lib/oeqa/**/*.py"
> >
> > No success, so far.
> >
> > I'm using master branch and could not find any other layer that adds
> > its own decorators. Any ideas ?
>
> Only an idea... BBFILES variable is used to collect the patterns for bb
> and bbappend files. To add custom python code, you should use the
> "addpylib" directive[1] in your config. I *think* it should take effect
> for oeqa tests also, but haven't tried, and that's why it is an idea only.
>
> [1]:
>
> https://docs.yoctoproject.org/bitbake/2.8/bitbake-user-manual/bitbake-user-manual-metadata.html#extending-python-library-code
>
> >
> > Thanks.
> > --
> > João Henrique Ferreira de Freitas - joaohf_at_gmail.com
> > <http://joaohf_at_gmail.com>
> > Campinas-SP-Brasil
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#65738):
> https://lists.yoctoproject.org/g/yocto/message/65738
> > Mute This Topic: https://lists.yoctoproject.org/mt/114588099/6084445
> > Group Owner: yocto+owner@lists.yoctoproject.org
> > Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [
> skandigraun@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
>
>

-- 
João Henrique Ferreira de Freitas - joaohf_at_gmail.com
Campinas-SP-Brasil

[-- Attachment #2: Type: text/html, Size: 3630 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-17  0:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-07 18:44 Adding oeqa runtime decorators to custom layers João Henrique Freitas
2025-08-11  9:27 ` [yocto] " Gyorgy Sarvari
2025-08-17  0:18   ` João Henrique Freitas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).