Skip to contentSkip to conversation

libsrtp: upgrade 2.5.0 -> 2.7.0

PATCH In review Gyorgy Sarvari 2 participants 7 messages Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 libsrtp: upgrade 2.5.0 -> 2.7.0

Changelog:
2.7.0:
- Fix function signature mismatch for srtp_remove_stream
- Fix srtp_unprotect_rtcp_mki when RTP auth != RTCP

2.6.0:
- remove use of pointers to 32bit values
- Cleaning up cmake and enabled more warnings.
- start using const on internal arguments
- Some srtp_driver fixes
- remove travis reference from README.md
- meson.build: implement mbedtls support
- iv length is constant so set only once
- Add x86 SIMD optimizations to crypto datatypes
- Add a missing typedef for stream list ctx
- cmake: Rename TEST_APPS as LIBSRTP_TEST_APPS option
- cmake: Support configuring as subproject

---
 .../libsrtp/{libsrtp_2.5.0.bb => libsrtp_2.7.0.bb}            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-multimedia/recipes-support/libsrtp/{libsrtp_2.5.0.bb => libsrtp_2.7.0.bb} (84%)
meta-multimedia/recipes-support/libsrtp/libsrtp_2.7.0.bb renamed from meta-multimedia/recipes-support/libsrtp/libsrtp_2.5.0.bb +2 -2
similarity index 84%
rename from meta-multimedia/recipes-support/libsrtp/libsrtp_2.5.0.bb
rename to meta-multimedia/recipes-support/libsrtp/libsrtp_2.7.0.bb
index 9130b290b9..3e992c403b 100644
@@ -8,8 +8,8 @@ SECTION = "libs"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=2909fcf6f09ffff8430463d91c08c4e1"
 
-SRC_URI = "git://github.com/cisco/libsrtp.git;branch=main;protocol=https"
-SRCREV = "a566a9cfcd619e8327784aa7cff4a1276dc1e895"
+SRC_URI = "git://github.com/cisco/libsrtp.git;branch=2_x_dev;protocol=https;tag=v${PV}"
+SRCREV = "ee1a77c9f9dc02c42bda9901038c500c5efe4cfa"
 
 
 PACKAGECONFIG ?= ""
#1 lore raw

PATCH 2/6 libmediaart-2.0: upgrade 1.9.6 -> 1.9.7

This is a bugfix release, fixing some memory leaks and compiler warning (and it also has a couple of commits related to the project's own CI system, which doesn't affect the application)

Changelog: https://gitlab.gnome.org/GNOME/libmediaart/-/blob/master/NEWS

---
 .../{libmediaart-2.0_1.9.6.bb => libmediaart-2.0_1.9.7.bb}      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-multimedia/recipes-support/libmediaart/{libmediaart-2.0_1.9.6.bb => libmediaart-2.0_1.9.7.bb} (90%)
meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.7.bb renamed from meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.6.bb +1 -1
similarity index 90%
rename from meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.6.bb
rename to meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.7.bb
index c5d497c468..e52ee61b74 100644
@@ -11,7 +11,7 @@ DEPENDS = "glib-2.0 gdk-pixbuf"
 inherit gnomebase gobject-introspection vala features_check
 
 SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz"
-SRC_URI[sha256sum] = "c3bc5025d7db380587f9c8eb800c611f6b5a16d6b4b78fcff93f62876a677f17"
+SRC_URI[sha256sum] = "2b43dd9f54f0d8d0b89e2addb83341ab06d7b98cb1b2e704383584af9c560f6b"
 
 S = "${UNPACKDIR}/libmediaart-${PV}"
 
#2 lore raw

PATCH 3/6 libmediaart-2.0: add ptest support

In reply to Gyorgy Sarvari

Test execution takes about a second.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-24T15:50
BEGIN: /usr/lib/libmediaart-2.0/ptest
TAP version 14
1..31
ok 1 /mediaart/stripping_failures
ok 2 /mediaart/location_null
ok 3 /mediaart/location_path
ok 4 /mediaart/stripping/nothing-to-strip
ok 5 /mediaart/stripping/case-strip
ok 6 /mediaart/stripping/single-char
ok 7 /mediaart/stripping/single-char-case
ok 8 /mediaart/stripping/remove-parenthesis-round
ok 9 /mediaart/stripping/remove-parenthesis-square
ok 10 /mediaart/stripping/remove-parenthesis-squirly
ok 11 /mediaart/stripping/remove-parenthesis-gt-lt
ok 12 /mediaart/stripping/whitespace
ok 13 /mediaart/stripping/whitespace-with-content
ok 14 /mediaart/stripping/messy-title
ok 15 /mediaart/stripping/unbalanced-brackets-square-start
ok 16 /mediaart/stripping/unbalanced-brackets-round-start
ok 17 /mediaart/stripping/unbalanced-brackets-gt-lt-start
ok 18 /mediaart/stripping/unbalanced-brackets-round-end
[...many lines...]
ok 31 /mediaart/process/failures
PASS: mediaart-test
DURATION: 0
END: /usr/lib/libmediaart-2.0/ptest
2025-12-24T15:50
STOP: ptest-runner
TOTAL: 1 FAIL: 0
---
 .../include/ptest-packagelists-meta-multimedia.inc   |  1 +
 .../libmediaart/libmediaart-2.0/run-ptest            | 10 ++++++++++
 .../libmediaart/libmediaart-2.0_1.9.7.bb             | 12 +++++++++---
 3 files changed, 20 insertions(+), 3 deletions(-)
 create mode 100644 meta-multimedia/recipes-support/libmediaart/libmediaart-2.0/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
index eb8d4ffe89..0c40d967d9 100644
@@ -10,6 +10,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\
     gssdp \
     gupnp-av \
     gupnp-igd \
+    libmediaart-2.0 \
     libopenmpt\
 "
 
meta-multimedia/recipes-support/libmediaart/libmediaart-2.0/run-ptest new file +10 -0
new file mode 100644
index 0000000000..9a3780da65
@@ -0,0 +1,10 @@
+#!/bin/sh
+RET=0
+cd tests
+if ./mediaart-test; then
+  echo PASS: mediaart-test
+else
+  echo FAIL: mediaart-test
+  RET=1
+fi
+exit $RET
meta-multimedia/recipes-support/libmediaart/libmediaart-2.0_1.9.7.bb +9 -3
index e52ee61b74..4b588292f4 100644
@@ -7,10 +7,10 @@ LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=4fbd65380cdd255951079008b364516c \
 
 DEPENDS = "glib-2.0 gdk-pixbuf"
 
+inherit gnomebase gobject-introspection vala features_check ptest
 
-inherit gnomebase gobject-introspection vala features_check
-
-SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz"
+SRC_URI = "${GNOME_MIRROR}/libmediaart/1.9/libmediaart-${PV}.tar.xz \
+           file://run-ptest"
 SRC_URI[sha256sum] = "2b43dd9f54f0d8d0b89e2addb83341ab06d7b98cb1b2e704383584af9c560f6b"
 
 S = "${UNPACKDIR}/libmediaart-${PV}"
@@ -20,3 +20,9 @@ REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
 GIR_MESON_OPTION = ""
 
 EXTRA_OEMESON = "-Dimage_library=gdk-pixbuf"
+
+do_install_ptest(){
+    install -D ${B}/tests/mediaart-test ${D}${PTEST_PATH}/tests/mediaart-test
+    install -m 644 ${S}/tests/*.mp3 ${D}${PTEST_PATH}/tests
+    install -m 644 ${S}/tests/*.png ${D}${PTEST_PATH}/tests
+}
#3 lore raw

PATCH 4/6 crossguid: add ptest support

In reply to Gyorgy Sarvari

Execution takes less than a second.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-24T16:06
BEGIN: /usr/lib/crossguid/ptest
0d154108-445a-4d20-9d74-623eb15c0ebe
c79e3cdf-fe16-4a9c-bad2-0fadf5761d05
ac7f9a04-f63f-49ee-a95b-6020378bff6f
All tests passed!
PASS: crossguid-test
DURATION: 0
END: /usr/lib/crossguid/ptest
2025-12-24T16:06
STOP: ptest-runner
TOTAL: 1 FAIL: 0
---
 .../include/ptest-packagelists-meta-multimedia.inc     |  1 +
 .../recipes-support/crossguid/crossguid/run-ptest      | 10 ++++++++++
 .../recipes-support/crossguid/crossguid_0.2.2.bb       |  7 ++++++-
 3 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-support/crossguid/crossguid/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
index 0c40d967d9..ba511b9ed5 100644
@@ -7,6 +7,7 @@
 # ptests which take less than ~30s each
 
 PTESTS_FAST_META_MULTIMEDIA = "\
+    crossguid \
     gssdp \
     gupnp-av \
     gupnp-igd \
meta-multimedia/recipes-support/crossguid/crossguid/run-ptest new file +10 -0
new file mode 100644
index 0000000000..9e058f8925
@@ -0,0 +1,10 @@
+#!/bin/sh
+RET=0
+cd tests
+if ./crossguid-test; then
+  echo PASS: crossguid-test
+else
+  echo FAIL: crossguid-test
+  RET=1
+fi
+exit $RET
meta-multimedia/recipes-support/crossguid/crossguid_0.2.2.bb +6 -1
index 811a876885..48673cddcd 100644
@@ -9,11 +9,16 @@ DEPENDS += "util-linux"
 
 SRCREV = "ca1bf4b810e2d188d04cb6286f957008ee1b7681"
 SRC_URI = "git://github.com/graeme-hill/crossguid;protocol=https;branch=master \
+           file://run-ptest \
            file://0001-include-missing-cstdint.patch"
 
 
-inherit cmake
+inherit cmake ptest
 
 do_install:append() {
     sed -i -e 's|${STAGING_DIR_HOST}||g' ${D}${datadir}/crossguid/cmake/crossguid-config.cmake
 }
+
+do_install_ptest() {
+    install -D ${B}/crossguid-test ${D}${PTEST_PATH}/tests/crossguid-test
+}
#4 lore raw

PATCH 5/6 wireplumber: upgrade 0.5.11 -> 0.5.13

In reply to Gyorgy Sarvari

Changelog:
0.5.13:
Additions & Enhancements:
- Added internal filter graph support for audio nodes, allowing users to create audio preprocessing and postprocessing chains without exposing filters to applications, useful for software DSP
- Added new Lua Properties API that significantly improves performance by avoiding constant serialization between WpProperties and Lua tables, resulting in approximately 40% faster node linking
- Added WpIterator Lua API for more efficient parameter enumeration
- Added bash completions for wpctl command
- Added script to find suitable volume control when using role-based policy, allowing volume sliders to automatically adjust the volume of the currently active role (e.g., ringing, call, media)
- Added experimental HDMI channel detection setting to use HDMI ELD information for channel configuration
- Enhanced role-based policy to allow setting preferred target sinks for media role loopbacks via policy.role-based.preferred-target
- Enhanced Bluetooth profile autoswitch logic to be more robust and handle saved profiles correctly, including support for loopback sink nodes
- Enhanced ALSA monitor to include alsa.* device properties on nodes for rule matching
- Optimized stream node linking for common cases to reduce latency when new audio/video streams are added
- Improved event dispatcher performance by using hash table registration for event hooks, eliminating performance degradation as more hooks are registered
- Increased audio headroom for VMware and VirtualBox virtual machines
- Added setting to prevent restoring "Off" profiles via session.dont-restore-off-profile property
- Added support for 128 audio channels when compiled with a recent version of PipeWire

Fixes:
- Fixed memory leaks and issues in the modem manager module
- Fixed MPRIS module incorrectly treating GHashTable as GObject
- Fixed warning messages when process files in /proc/<pid>/* don't exist, particularly when processes are removed quickly
- Fixed MONO audio configuration to only apply to device sink nodes, allowing multi-channel mixing in the graph
- Fixed event dispatcher hook registration and removal to avoid spurious errors
- Improved logging for standard-link activation failures
- Simplified event-hook interest matching for better performance

0.5.12:
Additions & Enhancements:
- Added mono audio configuration support via node.features.audio.mono setting that can be changed at runtime with wpctl
- Added automatic muting of ALSA devices when a running node is removed, helping prevent loud audio on speakers when headsets are unplugged
- Added notifications API module for sending system notifications
- Added comprehensive wpctl man page and documentation
- Enhanced object interest handling for PipeWire properties on session items

Fixes:
- Fixed race condition during shutdown in the permissions portal module that could cause crashes in GDBus signal handling
- Added device validity check in state-routes handling to prevent issues when devices are removed during async operations
- Fixed Log.critical undefined function error in device-info-cache
- Improved device hook documentation and configuration

---
 .../{wireplumber_0.5.11.bb => wireplumber_0.5.13.bb}       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
 rename meta-multimedia/recipes-multimedia/wireplumber/{wireplumber_0.5.11.bb => wireplumber_0.5.13.bb} (95%)
meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb renamed from meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.11.bb +5 -2
similarity index 95%
rename from meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.11.bb
rename to meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb
index 665efd95af..334861b6db 100644
@@ -10,9 +10,9 @@ DEPENDS = "glib-2.0 glib-2.0-native lua pipewire \
     ${@bb.utils.contains("DISTRO_FEATURES", "gobject-introspection-data", "python3-native python3-lxml-native doxygen-native", "", d)} \
 "
 
-SRCREV = "3a785e502642ddb1e91d953e587c7b06444e0b51"
+SRCREV = "84429b47943d789389fbde17c06b82efb197d04e"
 SRC_URI = " \
-    git://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https \
+    git://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https;tag=${PV} \
     file://90-OE-disable-session-dbus-dependent-features.lua \
 "
 
@@ -114,6 +114,7 @@ python set_dynamic_metapkg_rdepends () {
 
 PACKAGES =+ "\
     libwireplumber \
+    ${PN}-bash-completion \
     ${PN}-default-config \
     ${PN}-scripts \
     ${PN}-modules \
@@ -132,6 +133,7 @@ CONFFILES:${PN} += " \
 RRECOMMENDS:${PN} += "pipewire ${PN}-scripts ${PN}-modules-meta"
 
 FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir} ${datadir}/zsh"
+FILES:${PN}-bash-completion += "${datadir}/bash-completion/completions/wpctl"
 
 FILES:libwireplumber = " \
     ${libdir}/libwireplumber-*.so.* \
@@ -142,3 +144,4 @@ FILES:${PN}-scripts += "${datadir}/wireplumber/scripts/*"
 # Dynamic packages (see set_dynamic_metapkg_rdepends).
 FILES:${PN}-modules = ""
 RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
+RDEPENDS:${PN}-bash-completion = "bash bash-completion"
#5 lore raw

Re: [oe] [meta-multimedia][PATCH 5/6] wireplumber: upgrade 0.5.11 -> 0.5.13

Quoted 125 lines · Gyorgy Sarvari via lists.openembedded.org

Changelog:
0.5.13:
Additions & Enhancements:
- Added internal filter graph support for audio nodes, allowing users to create audio preprocessing and postprocessing chains without exposing filters to applications, useful for software DSP
- Added new Lua Properties API that significantly improves performance by avoiding constant serialization between WpProperties and Lua tables, resulting in approximately 40% faster node linking
- Added WpIterator Lua API for more efficient parameter enumeration
- Added bash completions for wpctl command
- Added script to find suitable volume control when using role-based policy,
allowing volume sliders to automatically adjust the volume of the
currently
active role (e.g., ringing, call, media)
- Added experimental HDMI channel detection setting to use HDMI ELD information for channel configuration
- Enhanced role-based policy to allow setting preferred target sinks for media role loopbacks via policy.role-based.preferred-target
- Enhanced Bluetooth profile autoswitch logic to be more robust and handle saved profiles correctly, including support for loopback sink nodes
- Enhanced ALSA monitor to include alsa.* device properties on nodes for rule matching
- Optimized stream node linking for common cases to reduce latency when new audio/video streams are added
- Improved event dispatcher performance by using hash table registration for
event hooks, eliminating performance degradation as more hooks are registered
- Increased audio headroom for VMware and VirtualBox virtual machines
- Added setting to prevent restoring "Off" profiles via session.dont-restore-off-profile property
- Added support for 128 audio channels when compiled with a recent version of
PipeWire

Fixes:
- Fixed memory leaks and issues in the modem manager module
- Fixed MPRIS module incorrectly treating GHashTable as GObject
- Fixed warning messages when process files in /proc/<pid>/* don't exist, particularly when processes are removed quickly
- Fixed MONO audio configuration to only apply to device sink nodes, allowing
multi-channel mixing in the graph
- Fixed event dispatcher hook registration and removal to avoid spurious errors
- Improved logging for standard-link activation failures
- Simplified event-hook interest matching for better performance

0.5.12:
Additions & Enhancements:
- Added mono audio configuration support via node.features.audio.mono setting that can be changed at runtime with wpctl
- Added automatic muting of ALSA devices when a running node is removed, helping prevent loud audio on speakers when headsets are unplugged
- Added notifications API module for sending system notifications
- Added comprehensive wpctl man page and documentation
- Enhanced object interest handling for PipeWire properties on session items

Fixes:
- Fixed race condition during shutdown in the permissions portal module that
could cause crashes in GDBus signal handling
- Added device validity check in state-routes handling to prevent issues when devices are removed during async operations
- Fixed Log.critical undefined function error in device-info-cache
- Improved device hook documentation and configuration

---
 .../{wireplumber_0.5.11.bb => wireplumber_0.5.13.bb}       | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
 rename meta-multimedia/recipes-multimedia/wireplumber/{

wireplumber_0.5.11.bb => wireplumber_0.5.13.bb} (95%)

(quoted diff) +0 -0

wireplumber_0.5.11.bb b/meta-multimedia/recipes-multimedia/wireplumber/ wireplumber_0.5.13.bb
similarity index 95%
rename from meta-multimedia/recipes-multimedia/wireplumber/ wireplumber_0.5.11.bb
rename to meta-multimedia/recipes-multimedia/wireplumber/ wireplumber_0.5.13.bb
index 665efd95af..334861b6db 100644

meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb renamed from meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.11.bb +1 -2
@@ -10,9 +10,9 @@ DEPENDS = "glib-2.0 glib-2.0-native lua pipewire \
     ${@bb.utils.contains("DISTRO_FEATURES", "gobject-introspection-data",
 "python3-native python3-lxml-native doxygen-native", "", d)} \
 "
 
-SRCREV = "3a785e502642ddb1e91d953e587c7b06444e0b51"
+SRCREV = "84429b47943d789389fbde17c06b82efb197d04e"
 SRC_URI = " \
-    git://

gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https \
+ git://
gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https;tag=${PV}
<http://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https;tag=$%7BPV%7D>

\
     file://90-OE-disable-session-dbus-dependent-features.lua \

"

meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb renamed from meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.11.bb +1 -0
@@ -114,6 +114,7 @@ python set_dynamic_metapkg_rdepends () {
 
 PACKAGES =+ "\
     libwireplumber \
+    ${PN}-bash-completion \
     ${PN}-default-config \
     ${PN}-scripts \
     ${PN}-modules \
@@ -132,6 +133,7 @@ CONFFILES:${PN} += " \
 RRECOMMENDS:${PN} += "pipewire ${PN}-scripts ${PN}-modules-meta"
 
 FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir}

${datadir}/zsh"
+FILES:${PN}-bash-completion +=
"${datadir}/bash-completion/completions/wpctl"

 FILES:libwireplumber = " \
     ${libdir}/libwireplumber-*.so.* \
meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb renamed from meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.11.bb +0 -0
@@ -142,3 +144,4 @@ FILES:${PN}-scripts +=
Quoted 6 lines

"${datadir}/wireplumber/scripts/*"
# Dynamic packages (see set_dynamic_metapkg_rdepends). FILES:${PN}-modules = "" RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
+RDEPENDS:${PN}-bash-completion = "bash bash-completion"

Perhaps it needs to inherit bash-completion class instead.

Quoted 12 lines

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#122890):
https://lists.openembedded.org/g/openembedded-devel/message/122890
Mute This Topic: https://lists.openembedded.org/mt/116933400/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

PATCH 6/6 wireplumber: add ptest support

In reply to Gyorgy Sarvari

Execution takes <10s.

Sample output:

root@qemux86-64:~# ptest-runner
START: ptest-runner
2025-12-24T19:17
BEGIN: /usr/lib/wireplumber/ptest
PASS: ./wp/test-spa-json
PASS: ./wp/test-spa-pod
PASS: ./wp/test-spa-type
PASS: ./wp/test-properties
PASS: ./wp/test-core
PASS: ./wp/test-session-item
PASS: ./wp/test-json-utils
PASS: ./wp/test-events
PASS: ./wp/test-conf
PASS: ./wp/test-transition
PASS: ./wp/test-object-interest
PASS: ./wp/test-metadata
PASS: ./wp/test-object-manager
PASS: ./wp/test-factory
PASS: ./wp/test-settings
PASS: ./wp/test-proxy
PASS: ./wp/test-state
PASS: ./wp/test-component-loader
PASS: 00-test-linking-non-default-device-node.lua
PASS: 01-test-linking-non-default-device-node-capture.lua
PASS: 02-test-linking-default-device-node.lua
PASS: 03-test-linking-default-device-node-capture.lua
PASS: 04-test-linking-defined-device-node-target-object-string.lua
PASS: 05-test-linking-defined-device-node-target-object-int.lua
PASS: 06-test-linking-defined-device-node-target-object-name.lua
PASS: 07-test-linking-defined-device-node-target-object-string-capture.lua
PASS: 08-test-linking-defined-device-node-target-object-int-capture.lua
PASS: 09-test-linking-defined-device-node-target-object-name-capture.lua
PASS: 10-test-linking-defined-device-node-node-target.lua
PASS: 11-test-linking-defined-device-node-node-target-capture.lua
PASS: 12-test-linking-defined-device-node-target-node-metadata.lua
PASS: 13-test-linking-defined-device-node-target-node-metadata-capture.lua
PASS: 14-test-linking-defined-device-node-target-object-metadata.lua
PASS: 15-test-linking-defined-device-node-target-object-metadata-capture.lua
PASS: 16-test-linking-defined-device-node-target-object-int-metadata.lua
PASS: 17-test-linking-defined-device-node-target-object-int-metadata-capture.lua
PASS: 00-test-default-nodes-initial-metadata-update.lua
/usr/lib/wireplumber/ptest
PASS: pod.lua
PASS: json.lua
PASS: json-utils.lua
PASS: monitor-rules.lua
PASS: require.lua
PASS: async-activation.lua
PASS: settings.lua
PASS: event-hooks.lua
PASS: properties.lua
/usr/lib/wireplumber/ptest
PASS: ./wplua/test-wplua
PASS: ./modules/test-file-monitor
PASS: ./modules/test-si-node
PASS: ./modules/test-si-standard-link
PASS: ./modules/test-dbus-connection
PASS: ./modules/test-si-audio-adapter
PASS: ./modules/test-reserve-device
DURATION: 1
END: /usr/lib/wireplumber/ptest
2025-12-24T19:17
STOP: ptest-runner
TOTAL: 1 FAIL: 0
---
 .../ptest-packagelists-meta-multimedia.inc    |  1 +
 .../wireplumber/files/run-ptest               | 55 +++++++++++++++++++
 .../wireplumber/wireplumber_0.5.13.bb         | 33 ++++++++++-
 3 files changed, 87 insertions(+), 2 deletions(-)
 create mode 100644 meta-multimedia/recipes-multimedia/wireplumber/files/run-ptest
meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +1 -0
index ba511b9ed5..792982572b 100644
@@ -13,6 +13,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\
     gupnp-igd \
     libmediaart-2.0 \
     libopenmpt\
+    wireplumber \
 "
 
 PTESTS_SLOW_META_MULTIMEDIA = "\
meta-multimedia/recipes-multimedia/wireplumber/files/run-ptest new file +55 -0

55 lines not on this page · raw message

meta-multimedia/recipes-multimedia/wireplumber/wireplumber_0.5.13.bb +31 -2
index 334861b6db..4f91ffd3a8 100644
@@ -13,11 +13,12 @@ DEPENDS = "glib-2.0 glib-2.0-native lua pipewire \
 SRCREV = "84429b47943d789389fbde17c06b82efb197d04e"
 SRC_URI = " \
     git://gitlab.freedesktop.org/pipewire/wireplumber.git;branch=master;protocol=https;tag=${PV} \
+    file://run-ptest \
     file://90-OE-disable-session-dbus-dependent-features.lua \
 "
 
 
-inherit meson pkgconfig gobject-introspection systemd
+inherit meson pkgconfig gobject-introspection systemd ptest
 
 GIR_MESON_ENABLE_FLAG = 'enabled'
 GIR_MESON_DISABLE_FLAG = 'disabled'
@@ -31,11 +32,11 @@ EXTRA_OEMESON += " \
     -Delogind=disabled \
     -Dsystemd-system-unit-dir=${systemd_system_unitdir} \
     -Dsystemd-user-unit-dir=${systemd_user_unitdir} \
-    -Dtests=false \
 "
 
 PACKAGECONFIG ??= " dbus \
     ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd systemd-system-service systemd-user-service', '', d)} \
+    ${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)} \
 "
 
 PACKAGECONFIG[systemd] = "-Dsystemd=enabled,-Dsystemd=disabled,systemd"
@@ -45,6 +46,7 @@ PACKAGECONFIG[systemd-system-service] = "-Dsystemd-system-service=true,-Dsystemd
 # currently lacks the feature of enabling user services.
 PACKAGECONFIG[systemd-user-service] = "-Dsystemd-user-service=true,-Dsystemd-user-service=false,systemd"
 PACKAGECONFIG[dbus] = ""
+PACKAGECONFIG[test] = "-Dtests=true,-Dtests=false"
 
 PACKAGESPLITFUNCS:prepend = " split_dynamic_packages "
 PACKAGESPLITFUNCS:append = " set_dynamic_metapkg_rdepends "
@@ -57,6 +59,30 @@ do_install:append() {
     fi
 }
 
+do_install_ptest() {
+    install -d ${D}${PTEST_PATH}/data/config
+    cd ${B}/tests
+    find . -maxdepth 2 -type f -executable -exec install -D {} ${D}${PTEST_PATH}/{} \;
+
+    install -m 644 ${S}/tests/wp/component-loader.conf ${D}${PTEST_PATH}/data/
+    cp -r ${S}/tests/scripts/scripts ${D}${PTEST_PATH}/scripts/
+    cp -r ${S}/tests/wplua/scripts ${D}${PTEST_PATH}/wplua/
+    cp -r ${S}/tests/wp/conf ${D}${PTEST_PATH}/data
+    cp -r ${S}/tests/wp/settings ${D}${PTEST_PATH}/data
+    install -m 644 ${S}/src/config/wireplumber.conf ${D}${PTEST_PATH}/data/config/
+    install -Dm 644 ${S}/tests/wplua/scripts/lib/testlib.lua ${D}${datadir}/wireplumber/scripts/lib/testlib.lua
+    install -Dm 644 ${S}/tests/scripts/scripts/lib/test-utils.lua ${D}${datadir}/wireplumber/scripts/lib/test-utils.lua
+
+    # this is not a test
+    rm -rf ${D}${PTEST_PATH}/examples
+
+    # Beside regular bianry executables, this package comes with lua tests also
+    # which need to be executed with specific parameters. Take the parameters
+    # from the meson.build files, and read them from run-ptest script.
+    grep args ${S}/tests/wplua/meson.build   | cut -d[ -f2 | cut -d] -f1 | tr -d ",'" > ${D}${PTEST_PATH}/wplua/ptest-list
+    grep args ${S}/tests/scripts/meson.build | cut -d[ -f2 | cut -d] -f1 | tr -d ",'" > ${D}${PTEST_PATH}/scripts/ptest-list
+}
+
 python split_dynamic_packages () {
     # Create packages for each WirePlumber module.
     wp_module_libdir = d.expand('${libdir}/${WP_MODULE_SUBDIR}')
@@ -145,3 +171,6 @@ FILES:${PN}-scripts += "${datadir}/wireplumber/scripts/*"
 FILES:${PN}-modules = ""
 RRECOMMENDS:${PN}-modules += "${PN}-modules-meta"
 RDEPENDS:${PN}-bash-completion = "bash bash-completion"
+
+FILES:${PN}-ptest += "${datadir}/wireplumber/scripts/lib/test-utils.lua ${datadir}/wireplumber/scripts/testlib.lua"
+RDEPENDS:${PN}-ptest += "pipewire-modules-protocol-native ${PN}-scripts"