gssdp: add ptest support

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

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Gyorgy Sarvari 2025-12-02 21:44:03 +01:00 committed by Khem Raj
parent a78826db86
commit 27865a96d5
No known key found for this signature in database
GPG Key ID: BB053355919D3314
3 changed files with 21 additions and 1 deletions

View File

@ -7,6 +7,7 @@
# ptests which take less than ~30s each
PTESTS_FAST_META_MULTIMEDIA = "\
gssdp \
libopenmpt\
"

View File

@ -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

View File

@ -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"