diff mbox series

[PATCHv2] recipes-multimedia/gstreamer: Add gst-validate recipe

Message ID 20171206220037.32335-1-limon.anibal@gmail.com
State Superseded
Headers show
Series [PATCHv2] recipes-multimedia/gstreamer: Add gst-validate recipe | expand

Commit Message

Aníbal Limón Dec. 6, 2017, 10 p.m. UTC
From: Aníbal Limón <anibal.limon@linaro.org>

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

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
---
 .../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

Comments

Ross Burton Dec. 12, 2017, 12:21 p.m. UTC | #1
On 6 December 2017 at 22:00, Aníbal Limón <limon.anibal@gmail.com> wrote:

> +# 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
<div dir="ltr">On 6 December 2017 at 22:00, Aníbal Limón <span dir="ltr">&lt;<a href="mailto:limon.anibal@gmail.com" target="_blank">limon.anibal@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+# to use non display mode in gst-validate-launcher<br>
+RDEPENDS_${PN} = &quot;xserver-xorg-xvfb&quot;<br></blockquote><div><br></div><div>Don&#39;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.</div><div><br></div><div>Ross</div></div></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Ross Burton Dec. 12, 2017, 12:23 p.m. UTC | #2
On 6 December 2017 at 22:00, Aníbal Limón <limon.anibal@gmail.com> wrote:

> +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.

Ross
<div dir="ltr">On 6 December 2017 at 22:00, Aníbal Limón <span dir="ltr">&lt;<a href="mailto:limon.anibal@gmail.com" target="_blank">limon.anibal@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">+SRC_URI = &quot;<a href="https://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.xz" rel="noreferrer" target="_blank">https://gstreamer.<wbr>freedesktop.org/src/${PN}/${<wbr>PN}-${PV}.tar.xz</a>&quot;<br></blockquote><div><br></div>ERROR: lib32-gst-validate-1.12.3-r0 do_fetch: Fetcher failure for URL: &#39;<a href="https://gstreamer.freedesktop.org/src/lib32-gst-validate/lib32-gst-validate-1.12.3.tar.xz">https://gstreamer.freedesktop.org/src/lib32-gst-validate/lib32-gst-validate-1.12.3.tar.xz</a>&#39;. Unable to fetch URL from any source.<div><br></div><div>You need to use BPN not PN, but use ${BP} instead of of BPN-PV.</div><div><br></div><div>Ross</div></div></div></div>
-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Otavio Salvador Dec. 12, 2017, 12:50 p.m. UTC | #3
On Tue, Dec 12, 2017 at 10:23 AM, Burton, Ross <ross.burton@intel.com> wrote:
> On 6 December 2017 at 22:00, Aníbal Limón <limon.anibal@gmail.com> wrote:
>>
>> +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?
Otavio Salvador Dec. 12, 2017, 4:42 p.m. UTC | #4
On Tue, Dec 12, 2017 at 1:51 PM, Anibal Limon <anibal.limon@linaro.org> wrote:
>
>
> On 12 December 2017 at 06:50, Otavio Salvador
> <otavio.salvador@ossystems.com.br> wrote:
>>
>> On Tue, Dec 12, 2017 at 10:23 AM, Burton, Ross <ross.burton@intel.com>
>> wrote:
>> > On 6 December 2017 at 22:00, Aníbal Limón <limon.anibal@gmail.com>
>> > wrote:
>> >>
>> >> +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?
>
>
>
> 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?
diff mbox series

Patch

diff --git a/meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb b/meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb
new file mode 100644
index 0000000000..47f4a260f8
--- /dev/null
+++ b/meta/recipes-multimedia/gstreamer/gst-validate_1.12.3.bb
@@ -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