public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: "Yoann Congal" <yoann.congal@smile.fr>
To: "Naman Jain" <nmjain23@gmail.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [meta][scarthgap][PATCH] libmd: add ptest for 'libmd'
Date: Thu, 19 Feb 2026 13:57:37 +0100	[thread overview]
Message-ID: <DGIYEZWHNL1Z.BDA5BX7BPC3I@smile.fr> (raw)
In-Reply-To: <CALCkg5Z2cykCt9f0P6vgc3ZTsg0nbV+bFWgzazMonosG0SiSgg@mail.gmail.com>

On Thu Feb 19, 2026 at 12:35 PM CET, Naman Jain wrote:
> Hi
> The patch is merged in master
> https://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
> Can you please check

Hello,

Thanks for the ping. Sorry I missed the previous one last week :(

That was not clear to me at the time, but I can't accept this on stable
branches under current stable policy (Sorry for that as well).

I will clarify the policy on that point with the project.

Thanks!

> Thanks
> Naman jain
>
> On Thu, 12 Feb, 2026, 12:39 pm Naman Jain, <nmjain23@gmail.com> wrote:
>
>> Hi
>> The patch is merged in master
>>
>> https://git.openembedded.org/openembedded-core/commit/?id=4c0a41389bdab30e3b349fef8df6ca0ef4893b89
>> Can you please check
>>
>> On Tue, 27 Jan, 2026, 2:59 pm Yoann Congal, <yoann.congal@smile.fr> wrote:
>>
>>>
>>>
>>> Le mar. 27 janv. 2026 à 10:16, Naman Jain via lists.openembedded.org
>>> <nmjain23=gmail.com@lists.openembedded.org> a écrit :
>>>
>>>> Adapt the compile 'test' phony target from Makefile and deploy as
>>>> ptest for libmd.
>>>> It takes less than 30seconds for ptest completion
>>>>
>>>> Signed-off-by: Naman Jain <namanj1@kpit.com>
>>>>
>>>
>>> Hello,
>>>
>>> This patch was also sent to master :
>>> https://lists.openembedded.org/g/openembedded-core/message/229867
>>> ... but not merged yet.
>>>
>>> Can you please wait for it to be merged on master before resending the
>>> backport request?
>>>
>>> Thanks!
>>>
>>>
>>> ---
>>>>  .../distro/include/ptest-packagelists.inc     |  1 +
>>>>  meta/recipes-support/libmd/files/run-ptest    | 18 ++++++++++++++++
>>>>  meta/recipes-support/libmd/libmd_1.1.0.bb     | 21 +++++++++++++++++--
>>>>  3 files changed, 38 insertions(+), 2 deletions(-)
>>>>  create mode 100644 meta/recipes-support/libmd/files/run-ptest
>>>>
>>>> diff --git a/meta/conf/distro/include/ptest-packagelists.inc
>>>> b/meta/conf/distro/include/ptest-packagelists.inc
>>>> index 9950e46776..784176f579 100644
>>>> --- a/meta/conf/distro/include/ptest-packagelists.inc
>>>> +++ b/meta/conf/distro/include/ptest-packagelists.inc
>>>> @@ -29,6 +29,7 @@ PTESTS_FAST = "\
>>>>      json-glib \
>>>>      libconvert-asn1-perl \
>>>>      libgpg-error\
>>>> +    libmd\
>>>>      libnl \
>>>>      libpcre \
>>>>      libssh2 \
>>>> diff --git a/meta/recipes-support/libmd/files/run-ptest
>>>> b/meta/recipes-support/libmd/files/run-ptest
>>>> new file mode 100644
>>>> index 0000000000..0c4a5f64ec
>>>> --- /dev/null
>>>> +++ b/meta/recipes-support/libmd/files/run-ptest
>>>> @@ -0,0 +1,18 @@
>>>> +#!/bin/sh
>>>> +
>>>> +cd test
>>>> +status = 0
>>>> +
>>>> +for testbin in *; do
>>>> +    if [ -x "$testbin" ] && [ ! -d "$testbin" ]; then
>>>> +        if "./$testbin"; then
>>>> +            echo "PASS: $testbin"
>>>> +        else
>>>> +            echo "FAIL: $testbin"
>>>> +            status=1
>>>> +        fi
>>>> +    fi
>>>> +done
>>>> +
>>>> +return $status
>>>> +
>>>> diff --git a/meta/recipes-support/libmd/libmd_1.1.0.bb
>>>> b/meta/recipes-support/libmd/libmd_1.1.0.bb
>>>> index dc588a0f95..ffc59deb26 100644
>>>> --- a/meta/recipes-support/libmd/libmd_1.1.0.bb
>>>> +++ b/meta/recipes-support/libmd/libmd_1.1.0.bb
>>>> @@ -8,9 +8,26 @@ HOMEPAGE = "https://www.hadrons.org/software/libmd/"
>>>>  LICENSE = "BSD-3-Clause & BSD-2-Clause"
>>>>  LIC_FILES_CHKSUM = "file://COPYING;md5=0436d4fb62a71f661d6e8b7812f9e1df"
>>>>
>>>> -SRC_URI = "
>>>> https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz"
>>>> +SRC_URI = "
>>>> https://archive.hadrons.org/software/libmd/libmd-${PV}.tar.xz \
>>>> +          file://run-ptest \
>>>> +"
>>>>  SRC_URI[sha256sum] =
>>>> "1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"
>>>>
>>>> -inherit autotools
>>>> +inherit autotools ptest
>>>> +
>>>> +do_compile_ptest() {
>>>> +    sed -i "/\$(MAKE) \$(AM_MAKEFLAGS) check-TESTS/d" test/Makefile
>>>> +    oe_runmake check
>>>> +}
>>>> +
>>>> +
>>>> +do_install_ptest() {
>>>> +    install -d ${D}${PTEST_PATH}/test
>>>> +    for bin in ${B}/test/*; do
>>>> +        if [ -x "$bin" ]; then
>>>> +            ${B}/libtool --mode=install install "$bin"
>>>> ${D}${PTEST_PATH}/test/$(basename "$bin")
>>>> +        fi
>>>> +    done
>>>> +}
>>>>
>>>>  BBCLASSEXTEND = "native nativesdk"
>>>> --
>>>> 2.34.1
>>>>
>>>>
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>> Links: You receive all messages sent to this group.
>>>> View/Reply Online (#230035):
>>>> https://lists.openembedded.org/g/openembedded-core/message/230035
>>>> Mute This Topic: https://lists.openembedded.org/mt/117485645/4316185
>>>> Group Owner: openembedded-core+owner@lists.openembedded.org
>>>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
>>>> yoann.congal@smile.fr]
>>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>>
>>>>
>>>
>>> --
>>> Yoann Congal
>>> Smile ECS
>>>
>>


-- 
Yoann Congal
Smile ECS



      reply	other threads:[~2026-02-19 12:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-27  9:16 [meta][scarthgap][PATCH] libmd: add ptest for 'libmd' Naman Jain
2026-01-27  9:29 ` [OE-core] " Yoann Congal
2026-02-12  7:09   ` Naman Jain
2026-02-19 11:35     ` Naman Jain
2026-02-19 12:57       ` Yoann Congal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DGIYEZWHNL1Z.BDA5BX7BPC3I@smile.fr \
    --to=yoann.congal@smile.fr \
    --cc=nmjain23@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox