summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-12-02 21:44:07 +0100
committerKhem Raj <raj.khem@gmail.com>2025-12-02 15:54:06 -0800
commit65c2f6de55fa662bce0281046ed3f291c414ff82 (patch)
treee9cc02144724f3d5b3f2c36fd5a198a64ab8b655
parentb8d9e45b6912800c0d78f3cc6b53160cec79f28c (diff)
downloadmeta-openembedded-65c2f6de55fa662bce0281046ed3f291c414ff82.tar.gz
gupnp-av: add ptest support
It takes around a second to execute the suite. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc1
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest12
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb21
3 files changed, 32 insertions, 2 deletions
diff --git a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
index 081ace6d22..ec10edfb83 100644
--- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
+++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
@@ -8,6 +8,7 @@
8 8
9PTESTS_FAST_META_MULTIMEDIA = "\ 9PTESTS_FAST_META_MULTIMEDIA = "\
10 gssdp \ 10 gssdp \
11 gupnp-av \
11 libopenmpt\ 12 libopenmpt\
12" 13"
13 14
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest
new file mode 100644
index 0000000000..0f7504cd3b
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest
@@ -0,0 +1,12 @@
1#!/bin/sh
2RET=0
3cd tests
4for t in $(find . -type f -executable); 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-av_0.14.4.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb
index 21f0449762..28e65e1bfa 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb
@@ -6,7 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
6 6
7DEPENDS = "gupnp" 7DEPENDS = "gupnp"
8 8
9inherit gi-docgen meson pkgconfig gobject-introspection vala 9inherit gi-docgen meson pkgconfig gobject-introspection vala ptest
10 10
11SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz" 11SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \
12 file://run-ptest"
12SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7" 13SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7"
14
15do_configure:prepend(){
16 # set ABS_TOP_SRCDIR to ${PTEST_PATH instead of the source-dir on the host}
17 sed -i "s!\(-DABS_TOP_SRCDIR=\"\).*!\1${PTEST_PATH}/tests\"'],!" ${S}/tests/meson.build
18 # same for DATA_PATH in the other test folder
19 sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests\"']!" ${S}/tests/gtest/meson.build
20}
21
22do_install_ptest(){
23 cd ${B}/tests
24 find . -type f -executable -exec install -D {} ${D}${PTEST_PATH}/tests/{} \;
25 cp -r ${S}/tests/gtest/data ${D}${PTEST_PATH}/tests
26
27 # this test is not enabled for execution in 0.14.4 in meson.build
28 rm ${D}${PTEST_PATH}/tests/test-search-criteria-parser
29}