Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH V2 0/1] diffutils: enable ptest support
@ 2014-03-07  9:27 Chong Lu
  2014-03-07  9:27 ` [PATCH V2 1/1] " Chong Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Chong Lu @ 2014-03-07  9:27 UTC (permalink / raw)
  To: openembedded-core

Changes since V1:

Modify Makefile of source code instead of create a new Makefile.

The following changes since commit e9554464d42e5972a483ec992c912e6f98c4e090:

  bitbake: runqueue: Fix typo (2014-03-06 22:35:55 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib chonglu/0307diffutils
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/0307diffutils

Chong Lu (1):
  diffutils: enable ptest support

 .../diffutils/diffutils-3.3/run-ptest                |  3 +++
 meta/recipes-extended/diffutils/diffutils_3.3.bb     | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/diffutils/diffutils-3.3/run-ptest

-- 
1.8.1.2



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH V2 1/1] diffutils: enable ptest support
  2014-03-07  9:27 [PATCH V2 0/1] diffutils: enable ptest support Chong Lu
@ 2014-03-07  9:27 ` Chong Lu
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Lu @ 2014-03-07  9:27 UTC (permalink / raw)
  To: openembedded-core

Install diffutils test suite and run it as ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 .../diffutils/diffutils-3.3/run-ptest                |  3 +++
 meta/recipes-extended/diffutils/diffutils_3.3.bb     | 20 +++++++++++++++++++-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-extended/diffutils/diffutils-3.3/run-ptest

diff --git a/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest b/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest
new file mode 100644
index 0000000..695c5e8
--- /dev/null
+++ b/meta/recipes-extended/diffutils/diffutils-3.3/run-ptest
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+make -C tests check-TESTS
diff --git a/meta/recipes-extended/diffutils/diffutils_3.3.bb b/meta/recipes-extended/diffutils/diffutils_3.3.bb
index 7a95c1a..a467f20 100644
--- a/meta/recipes-extended/diffutils/diffutils_3.3.bb
+++ b/meta/recipes-extended/diffutils/diffutils_3.3.bb
@@ -3,7 +3,9 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
 
 require diffutils.inc
 
-SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz"
+SRC_URI = "${GNU_MIRROR}/diffutils/diffutils-${PV}.tar.xz \
+           file://run-ptest \
+"
 
 do_configure_prepend () {
 	# Need to remove gettext macros with weird mix of versions
@@ -14,3 +16,19 @@ do_configure_prepend () {
 
 SRC_URI[md5sum] = "99180208ec2a82ce71f55b0d7389f1b3"
 SRC_URI[sha256sum] = "a25e89a8ab65fded1731e4186be1bb25cda967834b6df973599cdcd5abdfc19c"
+
+inherit ptest
+
+do_install_ptest() {
+	t=${D}${PTEST_PATH}
+	install -D ${S}/build-aux/test-driver $t/build-aux/test-driver
+	cp -r ${S}/tests $t/
+	install ${B}/tests/Makefile $t/tests/
+	sed -e 's|^Makefile:|_Makefile:|' \
+	    -e 's|bash|sh|' \
+	    -e 's|^top_srcdir = \(.*\)|top_srcdir = ..\/|' \
+	    -e 's|^srcdir = \(.*\)|srcdir = .|' \
+	    -e 's|"`$(built_programs)`"|diff|' \
+	    -e 's|gawk|awk|g' \
+	    -i $t/tests/Makefile
+}
-- 
1.8.1.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-07  9:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-07  9:27 [PATCH V2 0/1] diffutils: enable ptest support Chong Lu
2014-03-07  9:27 ` [PATCH V2 1/1] " Chong Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox