It takes almost 50 seconds on my machine to execute.
Signed-off-by: Gyorgy Sarvari <[email protected]>
---
.../include/ptest-packagelists-meta-multimedia.inc | 1 +
.../recipes-connectivity/gupnp/gupnp/run-ptest | 12 ++++++++++++
.../recipes-connectivity/gupnp/gupnp_1.6.9.bb | 14 +++++++++++++-
3 files changed, 26 insertions(+), 1 deletion(-)
create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp/run-ptest
diff --git
a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
index 7eb06f98ba..081ace6d22 100644
--- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
+++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
@@ -12,6 +12,7 @@ PTESTS_FAST_META_MULTIMEDIA = "\
"
PTESTS_SLOW_META_MULTIMEDIA = "\
+ gupnp \
"
PTESTS_PROBLEMS_META_MULTIMEDIA = "\
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 @@
+#!/bin/sh
+RET=0
+cd tests
+for t in $(find . -type f -executable -maxdepth 1); 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/gupnp_1.6.9.bb
b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
index ee980cd382..e2bfcb5ed7 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp_1.6.9.bb
@@ -5,7 +5,8 @@ LIC_FILES_CHKSUM =
"file://COPYING;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "e2fsprogs gssdp libsoup-3.0 libxml2"
-inherit gnomebase pkgconfig vala gobject-introspection
+inherit gnomebase pkgconfig vala gobject-introspection ptest
+SRC_URI += "file://run-ptest"
SRC_URI[archive.sha256sum] =
"2edb6ee3613558e62f538735368aee27151b7e09d4e2e2c51606833da801869b"
SYSROOT_PREPROCESS_FUNCS += "gupnp_sysroot_preprocess"
@@ -18,3 +19,14 @@ gupnp_sysroot_preprocess () {
FILES:${PN}-dev += "${bindir}/gupnp-binding-tool*"
RDEPENDS:${PN}-dev += "python3-core python3-xml"
+
+do_configure:prepend(){
+ # change the test-datadir from source-folder to ptest-folder
+ sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests/data\"',!"
${S}/tests/meson.build
+}
+
+do_install_ptest(){
+ install -d ${D}${PTEST_PATH}/tests
+ find ${B}/tests -type f -executable -exec install {}
${D}${PTEST_PATH}/tests/ \;
+ cp -r ${S}/tests/data ${D}${PTEST_PATH}/tests/
+}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#122269):
https://lists.openembedded.org/g/openembedded-devel/message/122269
Mute This Topic: https://lists.openembedded.org/mt/116583778/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-