mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 14:25:53 +01:00
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:
parent
a78826db86
commit
27865a96d5
|
|
@ -7,6 +7,7 @@
|
|||
# ptests which take less than ~30s each
|
||||
|
||||
PTESTS_FAST_META_MULTIMEDIA = "\
|
||||
gssdp \
|
||||
libopenmpt\
|
||||
"
|
||||
|
||||
|
|
|
|||
12
meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest
Normal file
12
meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest
Normal 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
|
||||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user