[oe-commits] =?UTF-8?Q?Bj=C3=B6rn=20Stenberg=20?=: busybox: Add ptest
git at git.openembedded.org
git at git.openembedded.org
Tue Jun 25 16:38:04 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: 0d29dc5b5f7742df60fdba90835ef77425963bde
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=0d29dc5b5f7742df60fdba90835ef77425963bde
Author: Björn Stenberg <bjst at enea.com>
Date: Mon Jun 24 16:52:21 2013 +0200
busybox: Add ptest
Install busybox test suite and run it as ptest.
Signed-off-by: Anders Roxell <anders.roxell at enea.com>
Signed-off-by: Björn Stenberg <bjst at enea.com>
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
meta/recipes-core/busybox/busybox.inc | 2 +-
meta/recipes-core/busybox/busybox_1.20.2.bb | 7 +++++++
meta/recipes-core/busybox/files/run-ptest | 7 +++++++
3 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc
index 65e1642..8567d64 100644
--- a/meta/recipes-core/busybox/busybox.inc
+++ b/meta/recipes-core/busybox/busybox.inc
@@ -44,7 +44,7 @@ CONFFILES_${PN}-mdev = "${sysconfdir}/mdev.conf"
RRECOMMENDS_${PN} = "${PN}-syslog ${PN}-udhcpc"
-inherit cml1 systemd update-rc.d
+inherit cml1 systemd update-rc.d ptest
# internal helper
def busybox_cfg(feature, features, tokens, cnf, rem):
diff --git a/meta/recipes-core/busybox/busybox_1.20.2.bb b/meta/recipes-core/busybox/busybox_1.20.2.bb
index a2e762d..c854f0b 100644
--- a/meta/recipes-core/busybox/busybox_1.20.2.bb
+++ b/meta/recipes-core/busybox/busybox_1.20.2.bb
@@ -34,6 +34,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://strict-atime.patch \
file://fail_on_no_media.patch \
file://busybox-sulogin-empty-root-password.patch \
+ file://run-ptest \
file://inetd.conf \
file://inetd \
file://login-utilities.cfg \
@@ -43,3 +44,9 @@ SRC_URI[tarball.md5sum] = "e025414bc6cd79579cc7a32a45d3ae1c"
SRC_URI[tarball.sha256sum] = "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583bd545d8789d27cf39b6882"
EXTRA_OEMAKE += "V=1 ARCH=${TARGET_ARCH} CROSS_COMPILE=${TARGET_PREFIX} SKIP_STRIP=y"
+
+do_install_ptest () {
+ cp -r ${B}/testsuite ${D}${PTEST_PATH}/
+ cp ${B}/.config ${D}${PTEST_PATH}/
+ ln -s /bin/busybox ${D}${PTEST_PATH}/busybox
+}
diff --git a/meta/recipes-core/busybox/files/run-ptest b/meta/recipes-core/busybox/files/run-ptest
new file mode 100644
index 0000000..3608a8e
--- /dev/null
+++ b/meta/recipes-core/busybox/files/run-ptest
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+current_dir=$(readlink -f $0)
+export bindir=$(dirname $current_dir)
+
+cd testsuite || exit 1
+./runtest -v | sed -r 's/^(SKIPPED|UNTESTED):/SKIP:/'
More information about the Openembedded-commits
mailing list