diff mbox series

[meta-arago,master,1/2] libsdl2: Add tests package

Message ID 20260317185724.34717-2-a-christidis@ti.com
State Superseded
Delegated to: Ryan Eatmon
Headers show
Series Add libsdl2 test support | expand

Commit Message

Antonios Christidis March 17, 2026, 6:57 p.m. UTC
From: Antonios Christidis <a-christidis@ti.com>

The software provides tests, configure cmake to build and install them.
Package the tests in -tests package.

Signed-off-by: Antonios Christidis <a-christidis@ti.com>
---
 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
 2 files changed, 10 insertions(+)
 create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
 create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend

Comments

Denys Dmytriyenko March 17, 2026, 7:14 p.m. UTC | #1
On Tue, Mar 17, 2026 at 01:57:23PM -0500, Antonios Christidis via lists.yoctoproject.org wrote:
> From: Antonios Christidis <a-christidis@ti.com>
> 
> The software provides tests, configure cmake to build and install them.
> Package the tests in -tests package.

This might be useful to get it upstreamed as a new PACKAGECONFIG to OE-Core...


> Signed-off-by: Antonios Christidis <a-christidis@ti.com>
> ---
>  meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
>  meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
>  2 files changed, 10 insertions(+)
>  create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>  create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> 
> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
> new file mode 100644
> index 00000000..f33ff909
> --- /dev/null
> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
> @@ -0,0 +1,6 @@
> +EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
> +                         -DSDL_INSTALL_TESTS=ON \
> +                       "

There's no reason for :append here, while += could work just fine.


> +PACKAGE_BEFORE_PN = "${PN}-tests"

> +FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
> +FILES:${PN}-tests:class-nativesdk += "${libexecdir} ${datadir}/installed-tests/SDL2"

If the values for these 2 are identical, why do you need to set 
class-nativesdk variant explixitly?


> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> new file mode 100644
> index 00000000..385aa801
> --- /dev/null
> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> @@ -0,0 +1,4 @@
> +LIBSDL2_TI = ""
> +LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
> +
> +require ${LIBSDL2_TI}
> -- 
> 2.34.1
Ryan Eatmon March 17, 2026, 7:27 p.m. UTC | #2
On 3/17/2026 2:14 PM, Denys Dmytriyenko wrote:
> On Tue, Mar 17, 2026 at 01:57:23PM -0500, Antonios Christidis via lists.yoctoproject.org wrote:
>> From: Antonios Christidis <a-christidis@ti.com>
>>
>> The software provides tests, configure cmake to build and install them.
>> Package the tests in -tests package.
> 
> This might be useful to get it upstreamed as a new PACKAGECONFIG to OE-Core...

Good idea.


> 
>> Signed-off-by: Antonios Christidis <a-christidis@ti.com>
>> ---
>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
>>   2 files changed, 10 insertions(+)
>>   create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>>   create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>>
>> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>> new file mode 100644
>> index 00000000..f33ff909
>> --- /dev/null
>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>> @@ -0,0 +1,6 @@
>> +EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
>> +                         -DSDL_INSTALL_TESTS=ON \
>> +                       "
> 
> There's no reason for :append here, while += could work just fine.
> 
> 
>> +PACKAGE_BEFORE_PN = "${PN}-tests"
> 
>> +FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
>> +FILES:${PN}-tests:class-nativesdk += "${libexecdir} ${datadir}/installed-tests/SDL2"
> 
> If the values for these 2 are identical, why do you need to set
> class-nativesdk variant explixitly?
> 
> 
>> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>> new file mode 100644
>> index 00000000..385aa801
>> --- /dev/null
>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>> @@ -0,0 +1,4 @@
>> +LIBSDL2_TI = ""
>> +LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
>> +
>> +require ${LIBSDL2_TI}
>> -- 
>> 2.34.1
Antonios Christidis March 17, 2026, 7:29 p.m. UTC | #3
On 3/17/26 2:14 PM, Denys Dmytriyenko wrote:
> On Tue, Mar 17, 2026 at 01:57:23PM -0500, Antonios Christidis via lists.yoctoproject.org wrote:
>> From: Antonios Christidis <a-christidis@ti.com>
>>
>> The software provides tests, configure cmake to build and install them.
>> Package the tests in -tests package.
> This might be useful to get it upstreamed as a new PACKAGECONFIG to OE-Core...

Thank you for the idea, I'll keep that in mind.

>
>> Signed-off-by: Antonios Christidis <a-christidis@ti.com>
>> ---
>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
>>   2 files changed, 10 insertions(+)
>>   create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>>   create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>>
>> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>> new file mode 100644
>> index 00000000..f33ff909
>> --- /dev/null
>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>> @@ -0,0 +1,6 @@
>> +EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
>> +                         -DSDL_INSTALL_TESTS=ON \
>> +                       "
> There's no reason for :append here, while += could work just fine.
Do you want me to send a v2 for this ?
>> +PACKAGE_BEFORE_PN = "${PN}-tests"
>> +FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
>> +FILES:${PN}-tests:class-nativesdk += "${libexecdir} ${datadir}/installed-tests/SDL2"
> If the values for these 2 are identical, why do you need to set
> class-nativesdk variant explixitly?

Ryan observed an issue when class-nativesdk variant wasn't set 
explicitly on scarthgap branch.

Link: 
https://patchwork.yoctoproject.org/project/arago/patch/20250917220826.2078836-2-a-christidis@ti.com/#31054

>
>> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>> new file mode 100644
>> index 00000000..385aa801
>> --- /dev/null
>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>> @@ -0,0 +1,4 @@
>> +LIBSDL2_TI = ""
>> +LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
>> +
>> +require ${LIBSDL2_TI}
>> -- 
>> 2.34.1
Denys Dmytriyenko March 17, 2026, 7:56 p.m. UTC | #4
On Tue, Mar 17, 2026 at 02:29:16PM -0500, Antonios Christidis wrote:
> 
> On 3/17/26 2:14 PM, Denys Dmytriyenko wrote:
> >On Tue, Mar 17, 2026 at 01:57:23PM -0500, Antonios Christidis via lists.yoctoproject.org wrote:
> >>From: Antonios Christidis <a-christidis@ti.com>
> >>
> >>The software provides tests, configure cmake to build and install them.
> >>Package the tests in -tests package.
> >This might be useful to get it upstreamed as a new PACKAGECONFIG to OE-Core...
> 
> Thank you for the idea, I'll keep that in mind.
> 
> >
> >>Signed-off-by: Antonios Christidis <a-christidis@ti.com>
> >>---
> >>  meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
> >>  meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
> >>  2 files changed, 10 insertions(+)
> >>  create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
> >>  create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> >>
> >>diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
> >>new file mode 100644
> >>index 00000000..f33ff909
> >>--- /dev/null
> >>+++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
> >>@@ -0,0 +1,6 @@
> >>+EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
> >>+                         -DSDL_INSTALL_TESTS=ON \
> >>+                       "
> >There's no reason for :append here, while += could work just fine.
> Do you want me to send a v2 for this ?
> >>+PACKAGE_BEFORE_PN = "${PN}-tests"
> >>+FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
> >>+FILES:${PN}-tests:class-nativesdk += "${libexecdir} ${datadir}/installed-tests/SDL2"
> >If the values for these 2 are identical, why do you need to set
> >class-nativesdk variant explixitly?
> 
> Ryan observed an issue when class-nativesdk variant wasn't set
> explicitly on scarthgap branch.
> 
> Link: https://patchwork.yoctoproject.org/project/arago/patch/20250917220826.2078836-2-a-christidis@ti.com/#31054

Ah, right, we had that discussion back in September... Still not sure why it 
was failing.


> >>diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> >>new file mode 100644
> >>index 00000000..385aa801
> >>--- /dev/null
> >>+++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
> >>@@ -0,0 +1,4 @@
> >>+LIBSDL2_TI = ""
> >>+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
> >>+
> >>+require ${LIBSDL2_TI}
> >>-- 
> >>2.34.1
Ryan Eatmon March 17, 2026, 7:58 p.m. UTC | #5
On 3/17/2026 2:29 PM, Antonios Christidis wrote:
> 
> On 3/17/26 2:14 PM, Denys Dmytriyenko wrote:
>> On Tue, Mar 17, 2026 at 01:57:23PM -0500, Antonios Christidis via 
>> lists.yoctoproject.org wrote:
>>> From: Antonios Christidis <a-christidis@ti.com>
>>>
>>> The software provides tests, configure cmake to build and install them.
>>> Package the tests in -tests package.
>> This might be useful to get it upstreamed as a new PACKAGECONFIG to 
>> OE-Core...
> 
> Thank you for the idea, I'll keep that in mind.
> 
>>
>>> Signed-off-by: Antonios Christidis <a-christidis@ti.com>
>>> ---
>>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
>>>   meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
>>>   2 files changed, 10 insertions(+)
>>>   create mode 100644 
>>> meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>>>   create mode 100644 
>>> meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>>>
>>> diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc 
>>> b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>>> new file mode 100644
>>> index 00000000..f33ff909
>>> --- /dev/null
>>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
>>> @@ -0,0 +1,6 @@
>>> +EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
>>> +                         -DSDL_INSTALL_TESTS=ON \
>>> +                       "
>> There's no reason for :append here, while += could work just fine.
> Do you want me to send a v2 for this ?

Yes, please.


>>> +PACKAGE_BEFORE_PN = "${PN}-tests"
>>> +FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
>>> +FILES:${PN}-tests:class-nativesdk += "${libexecdir} 
>>> ${datadir}/installed-tests/SDL2"
>> If the values for these 2 are identical, why do you need to set
>> class-nativesdk variant explixitly?
> 
> Ryan observed an issue when class-nativesdk variant wasn't set 
> explicitly on scarthgap branch.
> 
> Link: 
> https://patchwork.yoctoproject.org/project/arago/patch/20250917220826.2078836-2-a-christidis@ti.com/#31054
> 
>>
>>> diff --git 
>>> a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend 
>>> b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>>> new file mode 100644
>>> index 00000000..385aa801
>>> --- /dev/null
>>> +++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
>>> @@ -0,0 +1,4 @@
>>> +LIBSDL2_TI = ""
>>> +LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
>>> +
>>> +require ${LIBSDL2_TI}
>>> -- 
>>> 2.34.1
diff mbox series

Patch

diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
new file mode 100644
index 00000000..f33ff909
--- /dev/null
+++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
@@ -0,0 +1,6 @@ 
+EXTRA_OECMAKE:append = " -DSDL_TESTS=ON \
+                         -DSDL_INSTALL_TESTS=ON \
+                       "
+PACKAGE_BEFORE_PN = "${PN}-tests"
+FILES:${PN}-tests += "${libexecdir} ${datadir}/installed-tests/SDL2"
+FILES:${PN}-tests:class-nativesdk += "${libexecdir} ${datadir}/installed-tests/SDL2"
diff --git a/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
new file mode 100644
index 00000000..385aa801
--- /dev/null
+++ b/meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
@@ -0,0 +1,4 @@ 
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}