Skip to contentSkip to conversation

udev: Add ptest

PATCH New Alexandra Safta 1 participant 1 message Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 udev: Add ptest

Install udev test suite and run it as a ptest.

---
 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
index db09c54..3190731 100644
@@ -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
new file mode 100644
index 0000000..6817ef7
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make -k check-TESTS
\ No newline at end of file
Signature · 1 line
1.7.10.4