diff options
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gupnp-igd/run-ptest | 13 | ||||
| -rw-r--r-- | meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.2.0.bb | 11 |
2 files changed, 23 insertions, 1 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | RET=0 | ||
| 3 | |||
| 4 | cd test | ||
| 5 | for t in $(find . -type f -executable); do | ||
| 6 | if ./$t; then | ||
| 7 | echo PASS: $t | ||
| 8 | else | ||
| 9 | echo FAIL: $t | ||
| 10 | RET=1 | ||
| 11 | fi | ||
| 12 | done | ||
| 13 | exit $RET | ||
diff --git a/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.2.0.bb b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.2.0.bb index 49cd8d8318..aa0a152f19 100644 --- a/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.2.0.bb +++ b/meta-multimedia/recipes-connectivity/gupnp/gupnp-igd_1.2.0.bb | |||
| @@ -6,8 +6,17 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343 \ | |||
| 6 | DEPENDS = "glib-2.0 gssdp gupnp sqlite3" | 6 | DEPENDS = "glib-2.0 gssdp gupnp sqlite3" |
| 7 | 7 | ||
| 8 | SRC_URI = "http://download.gnome.org/sources/${BPN}/1.2/${BPN}-${PV}.tar.xz" | 8 | SRC_URI = "http://download.gnome.org/sources/${BPN}/1.2/${BPN}-${PV}.tar.xz" |
| 9 | SRC_URI += "file://run-ptest" | ||
| 9 | SRC_URI[sha256sum] = "4b5120098aa13edd27818ba9ee4d7fe961bf540bf50d056ff703c61545e02be1" | 10 | SRC_URI[sha256sum] = "4b5120098aa13edd27818ba9ee4d7fe961bf540bf50d056ff703c61545e02be1" |
| 10 | 11 | ||
| 11 | GTKDOC_MESON_OPTION = "gtk_doc" | 12 | GTKDOC_MESON_OPTION = "gtk_doc" |
| 12 | 13 | ||
| 13 | inherit meson pkgconfig gtk-doc gobject-introspection | 14 | inherit meson pkgconfig gtk-doc gobject-introspection ptest |
| 15 | |||
| 16 | do_install_ptest(){ | ||
| 17 | cd ${B}/tests/gtest | ||
| 18 | for t in $(find . -type f -executable); do | ||
| 19 | install -D $t ${D}${PTEST_PATH}/test/$t | ||
| 20 | done | ||
| 21 | install -m 0644 ${S}/tests/gtest/*.xml ${D}${PTEST_PATH}/test/ | ||
| 22 | } | ||
