diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2020-05-05 15:01:10 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-07 12:15:59 +0100 |
commit | b36a754d46977a8bb25c472d64df29dbdabc8a90 (patch) | |
tree | 5af046703427b8dbf9ed2b4bef5596e333bf936a /meta/recipes-graphics/wayland | |
parent | ef5725ddfc9df83e6bf78756cc60bc883dd741f1 (diff) | |
download | poky-b36a754d46977a8bb25c472d64df29dbdabc8a90.tar.gz |
libinput: add ptest
The test takes about 17 minutes, and fully passes.
(From OE-Core rev: adc4dbb748c01b731035a759de7cd798d7860d0c)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-rw-r--r-- | meta/recipes-graphics/wayland/libinput/run-ptest | 9 | ||||
-rw-r--r-- | meta/recipes-graphics/wayland/libinput_1.15.2.bb | 16 |
2 files changed, 22 insertions, 3 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | /usr/libexec/libinput/libinput-test-suite | ||
4 | if [ $? -eq 0 ]; then | ||
5 | echo 'PASS: libinput-test-suite' | ||
6 | else | ||
7 | echo 'FAIL: libinput-test-suite' | ||
8 | fi | ||
9 | |||
diff --git a/meta/recipes-graphics/wayland/libinput_1.15.2.bb b/meta/recipes-graphics/wayland/libinput_1.15.2.bb index 810532774e..fd236f75dd 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" | |||
10 | LICENSE = "MIT" | 10 | LICENSE = "MIT" |
11 | LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63" | 11 | LIC_FILES_CHKSUM = "file://COPYING;md5=1f2ea9ebff3a2c6d458faf58492efb63" |
12 | 12 | ||
13 | DEPENDS = "libevdev udev mtdev" | 13 | DEPENDS = "libevdev udev mtdev libcheck" |
14 | 14 | ||
15 | SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \ | 15 | SRC_URI = "http://www.freedesktop.org/software/${BPN}/${BP}.tar.xz \ |
16 | file://run-ptest \ | ||
16 | file://determinism.patch \ | 17 | file://determinism.patch \ |
17 | " | 18 | " |
18 | SRC_URI[md5sum] = "eb6bd2907ad33d53954d70dfb881a643" | 19 | SRC_URI[md5sum] = "eb6bd2907ad33d53954d70dfb881a643" |
@@ -20,7 +21,15 @@ SRC_URI[sha256sum] = "971c3fbfb624f95c911adeb2803c372e4e3647d1b98f278f660051f834 | |||
20 | 21 | ||
21 | UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" | 22 | UPSTREAM_CHECK_REGEX = "libinput-(?P<pver>\d+\.\d+\.(?!9\d+)\d+)" |
22 | 23 | ||
23 | inherit meson pkgconfig lib_package | 24 | inherit meson pkgconfig lib_package ptest |
25 | |||
26 | # Patch out build directory, otherwise it leaks into ptest binary | ||
27 | do_configure_append() { | ||
28 | sed -i -e "s,${WORKDIR},,g" config.h | ||
29 | if [ -e "litest-config.h" ]; then | ||
30 | sed -i -e "s,${WORKDIR},,g" litest-config.h | ||
31 | fi | ||
32 | } | ||
24 | 33 | ||
25 | PACKAGECONFIG ??= "" | 34 | PACKAGECONFIG ??= "" |
26 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom" | 35 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true,-Dlibwacom=false,libwacom" |
@@ -30,7 +39,7 @@ UDEVDIR = "`pkg-config --variable=udevdir udev`" | |||
30 | 39 | ||
31 | EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \ | 40 | EXTRA_OEMESON += "-Dudev-dir=${UDEVDIR} \ |
32 | -Ddocumentation=false \ | 41 | -Ddocumentation=false \ |
33 | -Dtests=false \ | 42 | ${@bb.utils.contains('PTEST_ENABLED', '1', '-Dtests=true -Dinstall-tests=true', '-Dtests=false -Dinstall-tests=false', d)} \ |
34 | -Dzshcompletiondir=no" | 43 | -Dzshcompletiondir=no" |
35 | 44 | ||
36 | # package name changed in 1.8.1 upgrade: make sure package upgrades work | 45 | # package name changed in 1.8.1 upgrade: make sure package upgrades work |
@@ -38,3 +47,4 @@ RPROVIDES_${PN} = "libinput" | |||
38 | RREPLACES_${PN} = "libinput" | 47 | RREPLACES_${PN} = "libinput" |
39 | RCONFLICTS_${PN} = "libinput" | 48 | RCONFLICTS_${PN} = "libinput" |
40 | 49 | ||
50 | FILES_${PN}-ptest += "${libexecdir}/libinput/libinput-test-suite" | ||