udev: Add ptest
PATCH 1/1 udev: Add ptest
Install udev test suite and run it as a ptest.
Signed-off-by Alexandra Safta <[email protected]>
--- meta/recipes-core/udev/udev.inc | 8 ++- .../recipes-core/udev/udev/add-install-ptest.patch | 73 ++++++++++++++++++++ meta/recipes-core/udev/udev/run-ptest | 3 + 3 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/udev/udev/add-install-ptest.patch create mode 100644 meta/recipes-core/udev/udev/run-ptest
meta/recipes-core/udev/udev.inc +7 -1
@@ -26,9 +26,12 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/hotplug/udev-${PV}.tar.gz \ file://local.rules \ file://udev-cache \ file://udev-cache.default \ + file://add-install-ptest.patch \ + file://run-ptest \ file://init" -inherit autotools pkgconfig update-rc.d +inherit autotools pkgconfig update-rc.d ptest ++RDEPENDS_${PN}-ptest += "make" libexecdir = "${base_libdir}" EXTRA_OECONF = "--disable-introspection \
@@ -99,3 +102,6 @@ python () { if oe.utils.contains ('DISTRO_FEATURES', 'systemd', True, False, d): raise bb.parse.SkipPackage("'systemd' in DISTRO_FEATURES") } +do_compile_ptest() { + oe_runmake test-udev +}
meta/recipes-core/udev/udev/add-install-ptest.patch new file +73 -0
73 lines not on this page · raw message
meta/recipes-core/udev/udev/run-ptest new file +3 -0
@@ -0,0 +1,3 @@ +#!/bin/sh + +make -k check-TESTS
Signature · 1 line
1.7.10.4