@@ -7,6 +7,7 @@
# ptests which take less than ~30s each
PTESTS_FAST_META_MULTIMEDIA = "\
+ gssdp \
libopenmpt\
"
new file mode 100644
@@ -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
@@ -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"
+
It is quick, it finished under 20 seconds on my machine. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> --- .../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