diff options
| author | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-06 19:31:52 +0100 |
|---|---|---|
| committer | Gyorgy Sarvari <skandigraun@gmail.com> | 2025-12-06 19:34:20 +0100 |
| commit | 535fc775a61640df599e43949e3f2e8fbd04690f (patch) | |
| tree | 25f04cf4cc4b2dc7a5dcc437701fbaf542b284e3 | |
| parent | ff2b74df62dcac86e28518545b0e6344a41bce66 (diff) | |
| download | meta-openembedded-535fc775a61640df599e43949e3f2e8fbd04690f.tar.gz | |
gupnp: add ptest support
It takes almost 50 seconds on my machine to execute.
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit e7878d69abd4d1cfaad3f5e5ba9cf7ad00f136bd)
Adapted to Kirkstone
Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest | 12 | ||||
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb | 14 |
2 files changed, 25 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest new file mode 100644 index 0000000000..2efcbcb773 --- /dev/null +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | RET=0 | ||
| 3 | cd tests | ||
| 4 | for t in $(find . -type f -executable -maxdepth 1); 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/gupnp_1.4.1.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb index 708e3844ff..553809d9ed 100644 --- a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.4.1.bb | |||
| @@ -5,10 +5,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
| 5 | 5 | ||
| 6 | DEPENDS = "e2fsprogs gssdp libsoup-2.4 libxml2" | 6 | DEPENDS = "e2fsprogs gssdp libsoup-2.4 libxml2" |
| 7 | 7 | ||
| 8 | inherit meson pkgconfig vala gobject-introspection | 8 | inherit meson pkgconfig vala gobject-introspection ptest |
| 9 | 9 | ||
| 10 | SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" | 10 | SRC_URI = "${GNOME_MIRROR}/${BPN}/1.4/${BPN}-${PV}.tar.xz" |
| 11 | SRC_URI[sha256sum] = "899196b5e66f03b8e25f046a7a658cd2a6851becb83f2d55345ab3281655dc0c" | 11 | SRC_URI[sha256sum] = "899196b5e66f03b8e25f046a7a658cd2a6851becb83f2d55345ab3281655dc0c" |
| 12 | SRC_URI += "file://run-ptest" | ||
| 12 | 13 | ||
| 13 | SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" | 14 | SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess" |
| 14 | 15 | ||
| @@ -20,3 +21,14 @@ gupnp_sysroot_preprocess () { | |||
| 20 | FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" | 21 | FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*" |
| 21 | 22 | ||
| 22 | RDEPENDS:${PN}-dev = "python3 python3-xml" | 23 | RDEPENDS:${PN}-dev = "python3 python3-xml" |
| 24 | |||
| 25 | do_configure:prepend(){ | ||
| 26 | # change the test-datadir from source-folder to ptest-folder | ||
| 27 | sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!" ${S}/tests/meson.build | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install_ptest(){ | ||
| 31 | install -d ${D}${PTEST_PATH}/tests | ||
| 32 | find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \; | ||
| 33 | cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/ | ||
| 34 | } | ||
