From: Gyorgy Sarvari <[email protected]>

It is quick, it finished under 20 seconds on my machine.

Signed-off-by: Gyorgy Sarvari <[email protected]>
Signed-off-by: Khem Raj <[email protected]>
(cherry picked from commit 27865a96d576160a0e3a0fda6b7e604f19edbc6c)
Signed-off-by: Ankur Tyagi <[email protected]>
---
 .../include/ptest-packagelists-meta-multimedia.inc   |  1 +
 .../recipes-connectivity/gupnp/gssdp/run-ptest       | 12 ++++++++++++
 .../recipes-connectivity/gupnp/gssdp_1.6.4.bb        |  9 ++++++++-
 3 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest

diff --git 
a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc 
b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
index be347286fb..7eb06f98ba 100644
--- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
+++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
@@ -7,6 +7,7 @@
 # ptests which take less than ~30s each
 
 PTESTS_FAST_META_MULTIMEDIA = "\
+    gssdp \
     libopenmpt\
 "
 
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest 
b/meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest
new file mode 100644
index 0000000000..71693c56b2
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest
@@ -0,0 +1,12 @@
+#!/bin/sh
+RET=0
+cd tests
+for t in *; do
+    if ./$t; then
+        echo PASS: $t
+    else
+        echo FAIL: $t
+        RET=1
+    fi
+done
+exit $RET
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb 
b/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb
index b601037608..94679ce28b 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.6.4.bb
@@ -6,6 +6,8 @@ BUGTRACKER = "https://gitlab.gnome.org/GNOME/gssdp/-/issues";
 LICENSE = "LGPL-2.1-only"
 LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
 
+inherit gnomebase pkgconfig gobject-introspection vala gi-docgen 
features_check ptest
+SRC_URI += "file://run-ptest"
 SRC_URI[archive.sha256sum] = 
"ff97fdfb7f561d3e6813b4f6a2145259e7c2eff43cc0e63f3fd031d0b6266032"
 
 DEPENDS = " \
@@ -13,7 +15,6 @@ DEPENDS = " \
     libsoup-3.0 \
 "
 
-inherit gnomebase pkgconfig gobject-introspection vala gi-docgen features_check
 
 # manpages require pandoc-native
 EXTRA_OEMESON += "-Dmanpages=false"
@@ -27,4 +28,10 @@ REQUIRED_DISTRO_FEATURES = 
"${@bb.utils.contains('PACKAGECONFIG', 'sniffer', 'op
 
 PACKAGES =+ "gssdp-tools"
 
+do_install_ptest(){
+    install -d ${D}${PTEST_PATH}/tests
+    find ${B}/tests -type f -executable -exec install {} 
${D}${PTEST_PATH}/tests \;
+}
+
 FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade"
+
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#122590): 
https://lists.openembedded.org/g/openembedded-devel/message/122590
Mute This Topic: https://lists.openembedded.org/mt/116743163/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to