Skip to contentSkip to conversation

Add libsdl2 test support

PATCH Superseded [email protected] 4 participants 9 messages Mar 17

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add libsdl2 test support

From: Antonios Christidis <[email protected]>

Build and package libsdl2 tests.

Working on merging similar changes to oe-core master, but in the meantime the tests are needed.

Kind Regards,
Antonios

Antonios Christidis (2):
libsdl2: Add tests package
ti-test: Add libsdl2-tests to packagegroup

 meta-arago-test/recipes-core/packagegroups/ti-test.bb       | 1 +
 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc     | 6 ++++++
 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend | 4 ++++
 3 files changed, 11 insertions(+)
 create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc
 create mode 100644 meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 libsdl2: Add tests package

From: Antonios Christidis <[email protected]>

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

---
 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
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +6 -0
new file mode 100644
index 00000000..f33ff909
@@ -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"
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
#2 lore raw

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

Quoted 4 lines · Antonios Christidis via lists.yoctoproject.org

From: Antonios Christidis <[email protected]>

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...

Quoted 14 lines
---
 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
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +0 -0
new file mode 100644
index 00000000..f33ff909

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 3

Quoted 3 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
@@ -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.

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 6

Quoted 4 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
+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?

Quoted 12 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
#3 lore raw

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

Quoted 7 lines · Denys Dmytriyenko
Quoted 4 lines · Antonios Christidis via lists.yoctoproject.org

From: Antonios Christidis <[email protected]>

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.

Quoted 43 lines
Quoted 15 lines
---
  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

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +0 -0
new file mode 100644
index 00000000..f33ff909

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 3

Quoted 3 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
@@ -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.

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 6

Quoted 4 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
+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?

Quoted 12 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#4 lore raw

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

In reply to Denys Dmytriyenko
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Antonios Christidis via lists.yoctoproject.org

From: Antonios Christidis <[email protected]>

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.

Quoted 9 lines
Quoted 9 lines
---
  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

Quoted 10 lines

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 3

Quoted 9 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
new file mode 100644
index 00000000..f33ff909
@@ -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 ?

Quoted 5 lines

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 6

Quoted 3 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
+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.

Quoted 13 lines
Quoted 13 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
#5 lore raw

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

Quoted 37 lines · Antonios Christidis
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Antonios Christidis via lists.yoctoproject.org

From: Antonios Christidis <[email protected]>

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.

Quoted 9 lines
Quoted 9 lines
---
 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
Quoted 10 lines

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 3

Quoted 9 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
new file mode 100644
index 00000000..f33ff909
@@ -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 ?

Quoted 5 lines

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 6

Quoted 3 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
+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?

Quoted 4 lines

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

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

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
#6 lore raw

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

In reply to Antonios Christidis
Quoted 30 lines · Antonios Christidis
Quoted 6 lines · Denys Dmytriyenko
Quoted 4 lines · Antonios Christidis via lists.yoctoproject.org

From: Antonios Christidis <[email protected]>

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.

Quoted 9 lines
Quoted 9 lines

---
  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

Quoted 10 lines

meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc line 3

Quoted 9 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
new file mode 100644
index 00000000..f33ff909
@@ -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.

Quoted 1 line

Do you want me to send a v2 for this ?

Yes, please.

Quoted 24 lines
Quoted 6 lines
Quoted 4 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2-ti.inc new file +3 -0
+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.

Quoted 13 lines
Quoted 13 lines
meta-arago-test/recipes-graphics/libsdl2/libsdl2_%.bbappend new file +4 -0
new file mode 100644
index 00000000..385aa801
@@ -0,0 +1,4 @@
+LIBSDL2_TI = ""
+LIBSDL2_TI:ti-soc = "libsdl2-ti.inc"
+
+require ${LIBSDL2_TI}
Signature · 1 line
2.34.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#7 lore raw

PATCH 2/2 ti-test: Add libsdl2-tests to packagegroup

In reply to [email protected]

From: Antonios Christidis <[email protected]>

Add libsdl2-tests to the ti-test packagegroup.

---
 meta-arago-test/recipes-core/packagegroups/ti-test.bb | 1 +
 1 file changed, 1 insertion(+)
meta-arago-test/recipes-core/packagegroups/ti-test.bb +1 -0
index b09ffcd9..df8f1323 100644
@@ -69,6 +69,7 @@ TI_TEST_EXTRAS_OPENCL = " \
 "
 
 TI_TEST_EXTRAS = " \
+    libsdl2-tests \
     python3-pillow \
     pytesseract \
     python3-numpy \
Signature · 1 line
2.34.1
#8 lore raw
In reply to [email protected]

meta-arago / na / 20260317185724.34717-1-a-christidis

PRC Results: FAIL

=========================================================
check-yocto-patches: PASS
=========================================================
Patches
----------------------------------------
All patches passed

=========================================================
apply-yocto-patch: PASS
=========================================================
master
=====================
Summary:
- Patch Series: [meta-arago][master][PATCH 0/2] Add libsdl2 test support
- Submitter: From: <[email protected]>
From: Antonios Christidis <[email protected]>
- Date: Date: Tue, 17 Mar 2026 13:57:22 -0500
- Num Patches: 2
- Mailing List (public inbox) Commit SHA: 32408606440034851a854ebd4514fcaec8feccab

Applied to:
- Repository: lcpd-prc-meta-arago
- Base Branch: master-wip
- Commit Author: Thorsten Lannynd <[email protected]>
- Commit Subject: ti-test: Add request and websocket-client to packagegroup
- Commit SHA: 64d6190f700d54addcd17687b7428a64c2bbb0fb

Patches
----------------------------------------
All patches applied

=========================================================
check-yocto-repo: PASS
=========================================================
master
=====================
PASS

=========================================================
yocto-check-layers: FAIL
=========================================================
master - FAIL
=====================
ERROR: Nothing PROVIDES 'gstreamer1.0-vaapi' (but <build-dir>/sources/meta-openembedded/meta-networking/recipes-support/spice/spice-gtk_0.42.bb DEPENDS on or otherwise requires it). Close matches:
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.