Skip to contentSkip to conversation

recipes-multimedia/gstreamer: Add gst-validate recipe

PATCH Superseded Aníbal Limón 3 participants 5 messages Dec 6, 2017 – Dec 12, 2017 1 message not in the archive

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 recipes-multimedia/gstreamer: Add gst-validate recipe

From: Aníbal Limón <[email protected]>

The gst-validate is a tool to run integration tests of Gstreamer components [1].

This tool can be used along with gst-integration-testsuites (scenarios and media) [2] to test Gstreamer components on the target device.

An example of test using gst-integration-testsuites:

$ gst-validate-launcher --sync # get [2] uses git and git-annex
$ gst-validate-launcher

or

$ gst-validate-launcher -nd # needs xserver-xorg-xvfb to run wo DISPLAY

[1]
https://blogs.gnome.org/tsaunier/2014/04/21/gst-validate-a-suite-of-tools-to-run-integration-tests-for-gstreamer-2/
[2] https://cgit.freedesktop.org/gstreamer/gst-integration-testsuites

---
 .../gstreamer/gst-validate_1.12.3.bb                 | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb
meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb new file +20 -0
new file mode 100644
index 0000000000..47f4a260f8
@@ -0,0 +1,20 @@
+SUMMARY = "Gstreamer validation tool"
+DESCRIPTION = "A Tool to test GStreamer components"
+HOMEPAGE = "https://gstreamer.freedesktop.org/releases/gst-validate/1.12.3.html"
+SECTION = "multimedia"
+
+LICENSE = "LGPLv2.1"
+LIC_FILES_CHKSUM = "file://COPYING;md5=a6f89e2100d9b6cdffcea4f398e37343"
+
+SRC_URI = "https://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.xz"
+SRC_URI[md5sum] = "623edc479a1e5c1e76bd7e1cf8393253"
+SRC_URI[sha256sum] = "5139949d20274fdd702492438eeab2c9e55aa82f60aca17db27ebd3faf08489e"
+
+DEPENDS = "json-glib glib-2.0 gstreamer1.0 gstreamer1.0-plugins-base"
+
+# to use non display mode in gst-validate-launcher
+RDEPENDS_${PN} = "xserver-xorg-xvfb" 
+
+FILES_${PN} += "${datadir}/gstreamer-1.0/* ${libdir}/gst-validate-launcher/* ${libdir}/gstreamer-1.0/*"
+
+inherit pkgconfig gettext autotools gobject-introspection gtk-doc
Signature · 1 line
2.11.0
#1 lore raw

meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb line 16

Quoted 3 lines · Aníbal Limón
meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb new file +2 -0
+# to use non display mode in gst-validate-launcher
+RDEPENDS_${PN} = "xserver-xorg-xvfb"

Don't enforce behaviour. This forces the xvfb server into images which have a proper server, and gst-validate refuses to build if the X11 distro feature is disabled.

Ross

#3 lore raw
Quoted 11 lines · Ross
Quoted 3 lines · Aníbal Limón

+SRC_URI = "https://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.xz"

ERROR: lib32-gst-validate-1.12.3-r0 do_fetch: Fetcher failure for URL:
'https://gstreamer.freedesktop.org/src/lib32-gst-validate/lib32-gst-validate-1.12.3.tar.xz'. Unable to fetch URL from any source.

You need to use BPN not PN, but use ${BP} instead of of BPN-PV.

Also, it should rdepends on git and git-annex no?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750

A message that is not in the archive (sent off-list or not yet received): CA+_AqivtiNwbdU8mjYpEj_PiccuuJroxJXbyOgb_xoRaa7SBKQ@mail.gmail.com

#5 lore raw
Quoted 25 lines · Anibal Limon
Quoted 10 lines · Otavio Salvador
Quoted 7 lines · Ross
Quoted 3 lines · Aníbal Limón

+SRC_URI = "https://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.xz"

Quoted 8 lines
Quoted 6 lines

ERROR: lib32-gst-validate-1.12.3-r0 do_fetch: Fetcher failure for URL:

'https://gstreamer.freedesktop.org/src/lib32-gst-validate/lib32-gst-validate-1.12.3.tar.xz'. Unable to fetch URL from any source.

You need to use BPN not PN, but use ${BP} instead of of BPN-PV.

Also, it should rdepends on git and git-annex no?

Quoted 5 lines

Yes, i can add the git dependency but git-annex depends on haskell that we don't have a recipe to build.

You can copy/populate the gst-integration-testsuites from other source or create/use other test suites.

Would be possible to populate a package? so we'd depend on git-annex on host for it?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750