summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-12-06 19:31:52 +0100
committerGyorgy Sarvari <skandigraun@gmail.com>2025-12-06 19:34:20 +0100
commit535fc775a61640df599e43949e3f2e8fbd04690f (patch)
tree25f04cf4cc4b2dc7a5dcc437701fbaf542b284e3
parentff2b74df62dcac86e28518545b0e6344a41bce66 (diff)
downloadmeta-openembedded-535fc775a61640df599e43949e3f2e8fbd04690f.tar.gz
gupnp: add ptest support
It takes almost 50 seconds on my machine to execute. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit e7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd) Adapted to Kirkstone Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest12
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb14
2 files changed, 25 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest
new file mode 100644
index 0000000000..2efcbcb773
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest
@@ -0,0 +1,12 @@
1#!/bin/sh
2RET=0
3cd tests
4for t in $(find . -type f -executable -maxdepth 1); do
5 if ./$t; then
6 echo PASS: $t
7 else
8 echo FAIL: $t
9 RET=1
10 fi
11done
12exit $RET
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb
index 708e3844ff..553809d9ed 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb
@@ -5,10 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5 5
6DEPENDS = "e2fsprogs gssdp libsoup-2.4 libxml2" 6DEPENDS = "e2fsprogs gssdp libsoup-2.4 libxml2"
7 7
8inherit meson pkgconfig vala gobject-introspection 8inherit meson pkgconfig vala gobject-introspection ptest
9 9
10SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" 10SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz"
11SRC_URI[sha256sum] = "899196b5e66f03b8e25f046a7a658cd2a6851becb83f2d55345ab3281655dc0c" 11SRC_URI[sha256sum] = "899196b5e66f03b8e25f046a7a658cd2a6851becb83f2d55345ab3281655dc0c"
12SRC_URI += "file://run-ptest"
12 13
13SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" 14SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
14 15
@@ -20,3 +21,14 @@ gupnp_sysroot_preprocess () {
20FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" 21FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*"
21 22
22RDEPENDS:${PN}-dev = "python3 python3-xml" 23RDEPENDS:${PN}-dev = "python3 python3-xml"
24
25do_configure:prepend(){
26 # change the test-datadir from source-folder to ptest-folder
27 sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!" ${S}/tests/meson.build
28}
29
30do_install_ptest(){
31 install -d ${D}${PTEST_PATH}/tests
32 find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \;
33 cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/
34}