diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-06 19:31:51 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-06 19:34:19 +0100 |
| commit | ff2b74df62dcac86e28518545b0e6344a41bce66 (patch) | |
| tree | 4ad856d95b3cb5f3a8017f953312b578f2f1d1ab | |
| parent | d95d7c8e7b476d9f9d45735ddff91e210871aed7 (diff) | |
| download | meta-openembedded-ff2b74df62dcac86e28518545b0e6344a41bce66.tar.gz | |
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>
(cherry picked from commit 27865a96d576160a0e3a0fda6b7e604f19edbc6c)
Adapted to Kirkstone
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gssdp/run-ptest | 12 | ||||
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gssdp_1.4.0.1.bb | 9 |
2 files changed, 20 insertions, 1 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | RET=0 | ||
| 3 | cd tests | ||
| 4 | for t in *; do | ||
| 5 | if ./$t; then | ||
| 6 | echo PASS: $t | ||
| 7 | else | ||
| 8 | echo FAIL: $t | ||
| 9 | RET=1 | ||
| 10 | fi | ||
| 11 | done | ||
| 12 | 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" | |||
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" |
| 8 | 8 | ||
| 9 | SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" | 9 | SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" |
| 10 | SRC_URI += "file://run-ptest" | ||
| 10 | SRC_URI[sha256sum] = "8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582" | 11 | SRC_URI[sha256sum] = "8676849d57fb822b8728856dbadebf3867f89ee47a0ec47a20045d011f431582" |
| 11 | 12 | ||
| 12 | GTKDOC_MESON_OPTION = 'gtk_doc' | 13 | GTKDOC_MESON_OPTION = 'gtk_doc' |
| @@ -16,7 +17,7 @@ DEPENDS = " \ | |||
| 16 | libsoup-2.4 \ | 17 | libsoup-2.4 \ |
| 17 | " | 18 | " |
| 18 | 19 | ||
| 19 | inherit meson pkgconfig gobject-introspection vala gtk-doc features_check | 20 | inherit meson pkgconfig gobject-introspection vala gtk-doc features_check ptest |
| 20 | 21 | ||
| 21 | SNIFFER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "gnome-layer", "sniffer", "", d)}" | 22 | SNIFFER = "${@bb.utils.contains("BBFILE_COLLECTIONS", "gnome-layer", "sniffer", "", d)}" |
| 22 | 23 | ||
| @@ -28,4 +29,10 @@ REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('PACKAGECONFIG', 'sniffer', 'op | |||
| 28 | 29 | ||
| 29 | PACKAGES =+ "gssdp-tools" | 30 | PACKAGES =+ "gssdp-tools" |
| 30 | 31 | ||
| 32 | do_install_ptest(){ | ||
| 33 | install -d ${D}${PTEST_PATH}/tests | ||
| 34 | find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests \; | ||
| 35 | } | ||
| 36 | |||
| 31 | FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade" | 37 | FILES:gssdp-tools = "${bindir}/gssdp* ${datadir}/gssdp/*.glade" |
| 38 | |||
