libmanette: fix ptests
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 45 lines · Gyorgy Sarvari via lists.openembedded.org
The original content of the ptest package, manette-test, is a helper demo application (like evtest), and not a test suite. Also, the recipe did not provide a run-ptest script.
Fix it by installing the actual tests, and adding a run-ptest script.
Note that the test folder structure looks like a gnome desktop test suite (and the application is under the gnome umbrella), however the project doesn't provide all necessary scaffolding for gnome-desktop-test to work, so the tests are executed directly from the run-ptest script.
Signed-off-by Gyorgy Sarvari <[email protected]>--- .../recipes-support/libmanette/libmanette/run-ptest | 10 ++++++++++ meta-oe/recipes-support/libmanette/libmanette_0.2.6.bb | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-support/libmanette/libmanette/run-ptestmeta-oe/recipes-support/libmanette/libmanette/run-ptest new file +10
-0@@ -0,0 +1,10 @@ +#!/bin/sh +if [ -d /usr/libexec/installed-tests/manette-0.2 ]; then + cd /usr/libexec/installed-tests/manette-0.2 + for t in ./*; do + $t && echo PASS: $t || echo FAIL: $t + done + cd - +else + echo FAIL: no tests found +fimeta-oe/recipes-support/libmanette/libmanette_0.2.6.bb +1
-1@@ -7,10 +7,13 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "libevdev libgudev" -SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz" +SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz \
meta-oe/recipes-support/libmanette/libmanette_0.2.6.bb LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" · line 19
Quoted 10 lines
meta-oe/recipes-support/libmanette/libmanette_0.2.6.bb +4
-1+ file://run-ptest" SRC_URI[sha256sum] = "63653259a821ec7d90d681e52e757e2219d462828c9d74b056a5f53267636bac" inherit meson pkgconfig gobject-introspection ptest vala -FILES:${PN}-ptest =+ "${bindir}/manette-test" FILES:${PN}-dev =+ "${libdir}/girepository-1.0" +FILES:${PN}-ptest += "${libexecdir}/installed-tests" + +EXTRA_OEMESON += "${@bb.utils.contains('PTEST_ENABLED', '1', '-Dinstall-tests=true', '', d)}"
Probably it would be nicer to have this as a PACKAGECONFIG, but didn't want to introduce it in Kirkstone... but if there is anyone who'd prefer having it like that, then I don't plan to die on this hill.