summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-12-02 21:44:05 +0100
committerKhem Raj <raj.khem@gmail.com>2025-12-02 15:54:06 -0800
commite7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd (patch)
tree9f5428a150a637d15c97f93c0b852536da38a7cc
parentdd108a46f88102a998a71c41f14ee6aec1ea90ea (diff)
downloadmeta-openembedded-e7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd.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>
-rw-r--r--meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc1
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest12
-rw-r--r--meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb14
3 files changed, 26 insertions, 1 deletions
diff --git a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
index 7eb06f98ba..081ace6d22 100644
--- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
+++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
@@ -12,6 +12,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\
12" 12"
13 13
14PTESTS_SLOW_META_MULTIMEDIA = "\ 14PTESTS_SLOW_META_MULTIMEDIA = "\
15 gupnp \
15" 16"
16 17
17PTESTS_PROBLEMS_META_MULTIMEDIA = "\ 18PTESTS_PROBLEMS_META_MULTIMEDIA = "\
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.6.9.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
index ee980cd382..e2bfcb5ed7 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5 5
6DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2" 6DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2"
7 7
8inherit gnomebase pkgconfig vala gobject-introspection 8inherit gnomebase pkgconfig vala gobject-introspection ptest
9SRC_URI += "file://run-ptest"
9SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b" 10SRC_URI[archive.sha256sum] = "2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b"
10 11
11SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" 12SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
@@ -18,3 +19,14 @@ gupnp_sysroot_preprocess () {
18FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" 19FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*"
19 20
20RDEPENDS:${PN}-dev += "python3-core python3-xml" 21RDEPENDS:${PN}-dev += "python3-core python3-xml"
22
23do_configure:prepend(){
24 # change the test-datadir from source-folder to ptest-folder
25 sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!" ${S}/tests/meson.build
26}
27
28do_install_ptest(){
29 install -d ${D}${PTEST_PATH}/tests
30 find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \;
31 cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/
32}