diff options
3 files changed, 32 insertions, 2 deletions
diff --git a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc index 081ace6d22..ec10edfb83 100644 --- a/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc +++ b/meta-multimedia/conf/include/ptest-packagelists-meta-multimedia.inc | |||
| @@ -8,6 +8,7 @@ | |||
| 8 | 8 | ||
| 9 | PTESTS_FAST_META_MULTIMEDIA = "\ | 9 | PTESTS_FAST_META_MULTIMEDIA = "\ |
| 10 | gssdp \ | 10 | gssdp \ |
| 11 | gupnp-av \ | ||
| 11 | libopenmpt\ | 12 | libopenmpt\ |
| 12 | " | 13 | " |
| 13 | 14 | ||
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest new file mode 100644 index 0000000000..0f7504cd3b --- /dev/null +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av/run-ptest | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | RET=0 | ||
| 3 | cd tests | ||
| 4 | for t in $(find . -type f -executable); 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-av_0.14.4.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb index 21f0449762..28e65e1bfa 100644 --- a/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-av_0.14.4.bb | |||
| @@ -6,7 +6,24 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" | |||
| 6 | 6 | ||
| 7 | DEPENDS = "gupnp" | 7 | DEPENDS = "gupnp" |
| 8 | 8 | ||
| 9 | inherit gi-docgen meson pkgconfig gobject-introspection vala | 9 | inherit gi-docgen meson pkgconfig gobject-introspection vala ptest |
| 10 | 10 | ||
| 11 | SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz" | 11 | SRC_URI = "${GNOME_MIRROR}/${BPN}/0.14/${BPN}-${PV}.tar.xz \ |
| 12 | file://run-ptest" | ||
| 12 | SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7" | 13 | SRC_URI[sha256sum] = "21d974b3275cb5dcf5b8aa1d9a3fc80e7edca706935f6fbd004c79787138f8c7" |
| 14 | |||
| 15 | do_configure:prepend(){ | ||
| 16 | # set ABS_TOP_SRCDIR to ${PTEST_PATH instead of the source-dir on the host} | ||
| 17 | sed -i "s!\(-DABS_TOP_SRCDIR=\"\).*!\1${PTEST_PATH}/tests\"'],!" ${S}/tests/meson.build | ||
| 18 | # same for DATA_PATH in the other test folder | ||
| 19 | sed -i "s!\(-DDATA_PATH=\"\).*!\1${PTEST_PATH}/tests\"']!" ${S}/tests/gtest/meson.build | ||
| 20 | } | ||
| 21 | |||
| 22 | do_install_ptest(){ | ||
| 23 | cd ${B}/tests | ||
| 24 | find . -type f -executable -exec install -D {} ${D}${PTEST_PATH}/tests/{} \; | ||
| 25 | cp -r ${S}/tests/gtest/data ${D}${PTEST_PATH}/tests | ||
| 26 | |||
| 27 | # this test is not enabled for execution in 0.14.4 in meson.build | ||
| 28 | rm ${D}${PTEST_PATH}/tests/test-search-criteria-parser | ||
| 29 | } | ||
