Execution takes around 10 seconds.
Signed-off-by: Gyorgy Sarvari <[email protected]>
---
v2: fix test binary installation directory. The first verison was working,
because
run-ptest searches the test folder completely in-depth, but the binary was
installed into
a deep subfolder unnecessarily.
.../include/ptest-packagelists-meta-multimedia.inc | 1 +
.../recipes-connectivity/gupnp/gupnp-igd/run-ptest | 13 +++++++++++++
.../recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb | 11 ++++++++++-
3 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644
meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/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 ec10edfb83..eb8d4ffe89 100644
--- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
+++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc
@@ -9,6 +9,7 @@
PTESTS_FAST_META_MULTIMEDIA = "\
gssdp \
gupnp-av \
+ gupnp-igd \
libopenmpt\
"
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest
b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest
new file mode 100644
index 0000000000..05aa2a9b3a
--- /dev/null
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest
@@ -0,0 +1,13 @@
+#!/bin/sh
+RET=0
+
+cd test
+for t in $(find . -type f -executable); 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-igd_1.6.0.bb
b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb
index d8dbc262cd..307d912483 100644
--- a/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb
+++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.6.0.bb
@@ -5,8 +5,17 @@ LIC_FILES_CHKSUM =
"file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \
DEPENDS = "glib-2.0 gssdp gupnp"
-inherit gnomebase pkgconfig gtk-doc gobject-introspection
+inherit gnomebase pkgconfig gtk-doc gobject-introspection ptest
+SRC_URI += "file://run-ptest"
SRC_URI[archive.sha256sum] =
"4099978339ab22126d4968f2a332b6d094fc44c78797860781f1fc2f11771b74"
GTKDOC_MESON_OPTION = "gtk_doc"
+
+do_install_ptest(){
+ cd ${B}/tests/gtest
+ for t in $(find . -type f -executable); do
+ install -D $t ${D}${PTEST_PATH}/test/$t
+ done
+ install -m 0644 ${S}/tests/gtest/*.xml ${D}${PTEST_PATH}/test/
+}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#122361):
https://lists.openembedded.org/g/openembedded-devel/message/122361
Mute This Topic: https://lists.openembedded.org/mt/116636467/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-