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)
Adapted to Kirkstone Signed-off-by: Gyorgy Sarvari <[email protected]> --- .../recipes-connectivity/gupnp/gssdp/run-ptest | 12 ++++++++++++ .../recipes-connectivity/gupnp/gssdp_1.4.0.1.bb | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest 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.4.0.1.bb b/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb index ad99bbffa3..3c51d3cdf4 100644 --- a/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb +++ b/meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb @@ -7,6 +7,7 @@ LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" +SRC_URI += "file://run-ptest" SRC_URI[sha256sum] = "8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582" GTKDOC_MESON_OPTION = 'gtk_doc' @@ -16,7 +17,7 @@ DEPENDS = " \ libsoup-2.4 \ " -inherit meson pkgconfig gobject-introspection vala gtk-doc features_check +inherit meson pkgconfig gobject-introspection vala gtk-doc features_check ptest SNIFFER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "gnome-layer", "sniffer", "", d)}" @@ -28,4 +29,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 (#122363): https://lists.openembedded.org/g/openembedded-devel/message/122363 Mute This Topic: https://lists.openembedded.org/mt/116649240/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
