@@ -8,6 +8,7 @@
PTESTS_FAST_META_MULTIMEDIA = "\
gssdp \
+ gupnp-av \
libopenmpt\
"
new file mode 100644
@@ -0,0 +1,12 @@
+#!/bin/sh
+RET=0
+cd tests
+for t in $(find . -type f -executable); do
+ if ./$t; then
+ echo PASS: $t
+ else
+ echo FAIL: $t
+ RET=1
+ fi
+done
+exit $RET
@@ -6,7 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
DEPENDS = "gupnp"
-inherit gi-docgen meson pkgconfig gobject-introspection vala
+inherit gi-docgen meson pkgconfig gobject-introspection vala ptest
-SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz"
+SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \
+ file://run-ptest"
SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7"
+
+do_configure:prepend(){
+ # set ABS_TOP_SRCDIR to ${PTEST_PATH instead of the source-dir on the host}
+ sed -i "s!\(-DABS_TOP_SRCDIR=\"\).*!\1${PTEST_PATH}/tests\"'],!" ${S}/tests/meson.build
+ # same for DATA_PATH in the other test folder
+ sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests\"']!" ${S}/tests/gtest/meson.build
+}
+
+do_install_ptest(){
+ cd ${B}/tests
+ find . -type f -executable -exec install -D {} ${D}${PTEST_PATH}/tests/{} \;
+ cp -r ${S}/tests/gtest/data ${D}${PTEST_PATH}/tests
+
+ # this test is not enabled for execution in 0.14.4 in meson.build
+ rm ${D}${PTEST_PATH}/tests/test-search-criteria-parser
+}
It takes around a second to execute the suite. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> --- .../ptest-packagelists-meta-multimedia.inc | 1 + .../gupnp/gupnp-av/run-ptest | 12 +++++++++++ .../gupnp/gupnp-av_0.14.4.bb | 21 +++++++++++++++++-- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest