From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sestofw01.enea.se ([192.36.1.252] helo=mx-3.enea.com) by linuxtogo.org with smtp (Exim 4.72) (envelope-from ) id 1U7nH9-0000Kd-Lu for openembedded-core@lists.openembedded.org; Tue, 19 Feb 2013 14:31:32 +0100 Received: from sestofb10.enea.se (172.21.3.145) by smtp.enea.com (172.21.1.208) with Microsoft SMTP Server id 14.2.318.1; Tue, 19 Feb 2013 14:14:18 +0100 Received: by sestofb10.enea.se (Postfix, from userid 4331) id CAA67291D4A; Tue, 19 Feb 2013 14:14:17 +0100 (CET) From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= To: Date: Tue, 19 Feb 2013 14:13:57 +0100 Message-ID: <1361279644-17675-2-git-send-email-bjst@enea.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1361279644-17675-1-git-send-email-bjst@enea.com> References: <1361279644-17675-1-git-send-email-bjst@enea.com> MIME-Version: 1.0 Received-SPF: None (SESTOEX08.enea.se: bjst@enea.com does not designate permitted sender hosts) Cc: Daniel Dai Subject: [PATCH 1/8] busybox: Add ptest X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 13:31:35 -0000 X-List-Received-Date: Tue, 19 Feb 2013 13:31:35 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Daniel Dai Signed-off-by: Bj=C3=B6rn Stenberg --- meta/recipes-core/busybox/busybox.inc | 2 +- meta/recipes-core/busybox/busybox_1.20.2.bb | 10 ++++++++++ meta/recipes-core/busybox/files/run-ptest | 11 +++++++++++ 3 files changed, 22 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/busybox/files/run-ptest diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busy= box/busybox.inc index 972e7d0..bd1581c 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -35,7 +35,7 @@ CONFFILES_${PN}-mdev =3D "${sysconfdir}/mdev.conf" =20 RRECOMMENDS_${PN} =3D "${PN}-syslog ${PN}-udhcpc" =20 -inherit cml1 update-rc.d +inherit cml1 update-rc.d ptest =20 # 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-cor= e/busybox/busybox_1.20.2.bb index 783261e..b2e5d47 100644 --- a/meta/recipes-core/busybox/busybox_1.20.2.bb +++ b/meta/recipes-core/busybox/busybox_1.20.2.bb @@ -28,9 +28,19 @@ SRC_URI =3D "http://www.busybox.net/downloads/busybox-${= PV}.tar.bz2;name=3Dtarball \ file://fix-for-spurious-testsuite-failure.patch \ file://busybox-1.20.2-kernel_ver.patch \ file://stat-usr-bin.patch \ + file://run-ptest \ file://testsuite-du-du-k-works-fix-false-positive.patch" =20 SRC_URI[tarball.md5sum] =3D "e025414bc6cd79579cc7a32a45d3ae1c" SRC_URI[tarball.sha256sum] =3D "eb13ff01dae5618ead2ef6f92ba879e9e0390f9583= bd545d8789d27cf39b6882" =20 EXTRA_OEMAKE +=3D "V=3D1 ARCH=3D${TARGET_ARCH} CROSS_COMPILE=3D${TARGET_PR= EFIX} SKIP_STRIP=3Dy" + +do_install_append () { + if [ "${PN}" =3D "${BPN}" -a ${PTEST_ENABLED} =3D "1" ]; then + ptest_do_install + cp -r ${B}/testsuite ${D}${PTEST_PATH}/ + cp ${B}/.config ${D}${PTEST_PATH}/ + ln -s /bin/busybox ${D}${PTEST_PATH}/busybox + fi +} diff --git a/meta/recipes-core/busybox/files/run-ptest b/meta/recipes-core/= busybox/files/run-ptest new file mode 100644 index 0000000..8eadce9 --- /dev/null +++ b/meta/recipes-core/busybox/files/run-ptest @@ -0,0 +1,11 @@ +#!/bin/sh + +current_dir=3D"`readlink -f $0`" +export bindir=3D"`dirname $current_dir`" + +cd testsuite +if [ $? -ne 0 ]; then + exit 1 +fi + +./runtest -v | sed -e 's/^SKIPPED:/SKIP:/' | sed -e 's/^UNTESTED:/SKIP:/' --=20 1.7.5.4