From: "Richard Purdie" <richard.purdie@linuxfoundation.org>
To: openembedded-core@lists.openembedded.org
Cc: Alexander Kanavin <alex.kanavin@gmail.com>
Subject: Re: [OE-core] [PATCH 01/17] libinput: add ptest
Date: Tue, 05 May 2020 10:42:50 +0100 [thread overview]
Message-ID: <86cf328e4c36050eb971f350babe3fc1a7a8c602.camel@linuxfoundation.org> (raw)
In-Reply-To: <20200503162559.946-1-alex.kanavin@gmail.com>
On Sun, 2020-05-03 at 18:25 +0200, Alexander Kanavin wrote:
> The test takes about 17 minutes, and fully passes.
>
> Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
> ---
> meta/conf/distro/include/ptest-packagelists.inc | 1 +
> meta/recipes-graphics/wayland/libinput/run-ptest | 9 +++++++++
> meta/recipes-graphics/wayland/libinput_1.15.2.bb | 14 +++++++++++---
> 3 files changed, 21 insertions(+), 3 deletions(-)
> create mode 100644 meta/recipes-graphics/wayland/libinput/run-ptest
>
> diff --git a/meta/conf/distro/include/ptest-packagelists.inc
> b/meta/conf/distro/include/ptest-packagelists.inc
> index c13ff724b1..ab44757a11 100644
> --- a/meta/conf/distro/include/ptest-packagelists.inc
> +++ b/meta/conf/distro/include/ptest-packagelists.inc
> @@ -72,6 +72,7 @@ PTESTS_SLOW = "\
> glib-2.0-ptest \
> gstreamer1.0-ptest \
> libevent-ptest \
> + libinput-ptest \
> lttng-tools-ptest \
> openssh-ptest \
> openssl-ptest \
> diff --git a/meta/recipes-graphics/wayland/libinput/run-ptest
> b/meta/recipes-graphics/wayland/libinput/run-ptest
> new file mode 100644
> index 0000000000..5a84c568b9
> --- /dev/null
> +++ b/meta/recipes-graphics/wayland/libinput/run-ptest
> @@ -0,0 +1,9 @@
> +#!/bin/sh
> +
> +/usr/libexec/libinput/libinput-test-suite
> +if [ $? -eq 0 ]; then
> + echo 'PASS: libinput-test-suite'
> +else
> + echo 'FAIL: libinput-test-suite'
> +fi
> +
> diff --git a/meta/recipes-graphics/wayland/libinput_1.15.2.bb
> b/meta/recipes-graphics/wayland/libinput_1.15.2.bb
> index 810532774e..31652cc342 100644
> --- a/meta/recipes-graphics/wayland/libinput_1.15.2.bb
> +++ b/meta/recipes-graphics/wayland/libinput_1.15.2.bb
> @@ -10,9 +10,10 @@ SECTION = "libs"
> LICENSE = "MIT"
> LIC_FILES_CHKSUM =
> "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63"
>
> -DEPENDS = "libevdev udev mtdev"
> +DEPENDS = "libevdev udev mtdev libcheck"
>
> SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \
> + file://run-ptest \
> file://determinism.patch \
> "
> SRC_URI[md5sum] = "eb6bd2907ad33d53954d70dfb881a643"
> @@ -20,7 +21,13 @@ SRC_URI[sha256sum] =
> "971c3fbfb624f95c911adeb2803c372e4e3647d1b98f278f660051f834
>
> UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)"
>
> -inherit meson pkgconfig lib_package
> +inherit meson pkgconfig lib_package ptest
> +
> +# Patch out build directory, otherwise it leaks into ptest binary
> +do_configure_append() {
> + sed -i -e "s,${WORKDIR},,g" config.h
> + sed -i -e "s,${WORKDIR},,g" litest-config.h
> +}
>
Nearly :)
https://autobuilder.yoctoproject.org/typhoon/#/builders/47/builds/1869
(I think its failing when ptests aren't enabled)
Cheers,
Richard
next prev parent reply other threads:[~2020-05-05 9:43 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-03 16:25 [PATCH 01/17] libinput: add ptest Alexander Kanavin
2020-05-03 16:25 ` [PATCH 02/17] libinput: update 1.15.2 -> 1.15.5 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 03/17] glib-2.0: update 2.62.4 -> 2.64.2 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 04/17] glib-networking: update to 2.64.2 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 05/17] gptfdisk: update to 1.0.5 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 06/17] clutter-1.0: update to 1.26.4 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 07/17] diffoscope: update to 143 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 08/17] avahi: merge avahi-ui into the main recipe Alexander Kanavin
2020-05-04 21:01 ` [OE-core] " Khem Raj
2020-05-05 11:09 ` Alexander Kanavin
2020-05-05 18:45 ` Khem Raj
2020-05-03 16:25 ` [PATCH 09/17] avahi: update to 0.8 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 10/17] git: update to 2.26.2 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 11/17] wpe: update to 1.6.0 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 12/17] vte: update to 0.60.2 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 13/17] libnotify: update to 0.7.9 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 14/17] connman: update to 1.38 Alexander Kanavin
2020-05-06 7:59 ` [OE-core] " Alejandro Hernandez
2020-05-03 16:25 ` [PATCH 15/17] libcap: update to 2.33 Alexander Kanavin
2020-05-04 8:41 ` [OE-core] " Richard Purdie
2020-05-03 16:25 ` [PATCH 16/17] xkeyboard-config: update to 2.29 Alexander Kanavin
2020-05-03 16:25 ` [PATCH 17/17] gcr: update to 3.36.0 Alexander Kanavin
2020-05-11 18:35 ` [OE-core] " Richard Purdie
2020-05-05 9:42 ` Richard Purdie [this message]
2020-05-05 11:58 ` [OE-core] [PATCH 01/17] libinput: add ptest Alexander Kanavin
-- strict thread matches above, loose matches on Subject: below --
2020-04-30 9:57 Alexander Kanavin
2020-05-02 22:20 ` [OE-core] " Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86cf328e4c36050eb971f350babe3fc1a7a8c602.camel@linuxfoundation.org \
--to=richard.purdie@linuxfoundation.org \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox