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

The following changes since commit 1b636173ca88e5ccca1992f9a12367a1189fa674:

  bitbake: toaster: Toaster GUI, generic search, filter and order (2014-01-10 15:20:26 +0000)

are available in the git repository at:

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

Chong Lu (1):
  apr: enable ptest support

 meta/recipes-support/apr/apr/run-ptest |  6 ++++++
 meta/recipes-support/apr/apr_1.4.8.bb  | 24 ++++++++++++++++++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/apr/apr/run-ptest

-- 
1.8.1.2



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

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

Install apr test suite and run it as ptest.

Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
 meta/recipes-support/apr/apr/run-ptest |  6 ++++++
 meta/recipes-support/apr/apr_1.4.8.bb  | 24 ++++++++++++++++++++++--
 2 files changed, 28 insertions(+), 2 deletions(-)
 create mode 100644 meta/recipes-support/apr/apr/run-ptest

diff --git a/meta/recipes-support/apr/apr/run-ptest b/meta/recipes-support/apr/apr/run-ptest
new file mode 100644
index 0000000..ae19a1d
--- /dev/null
+++ b/meta/recipes-support/apr/apr/run-ptest
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+cd test
+./testall |sed \
+  -e 's|\(.*\):  SUCCESS|PASS: \1|' \
+  -e 's|\(.*\):  FAILED|FAIL: \1|'
diff --git a/meta/recipes-support/apr/apr_1.4.8.bb b/meta/recipes-support/apr/apr_1.4.8.bb
index d23929f..4af2a6b 100644
--- a/meta/recipes-support/apr/apr_1.4.8.bb
+++ b/meta/recipes-support/apr/apr_1.4.8.bb
@@ -12,12 +12,14 @@ BBCLASSEXTEND = "native"
 SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
            file://configure_fixes.patch \
            file://cleanup.patch \
-           file://configfix.patch"
+           file://configfix.patch \
+           file://run-ptest \
+"
 
 SRC_URI[md5sum] = "ce2ab01a0c3cdb71cf0a6326b8654f41"
 SRC_URI[sha256sum] = "61b8d2f8d321c6365ee3d71d0bb41f3a89c44da6124cc5b407a3b8319d660421"
 
-inherit autotools lib_package binconfig multilib_header
+inherit autotools lib_package binconfig multilib_header ptest
 
 OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
 
@@ -60,3 +62,21 @@ apr_sysroot_preprocess () {
 	cp ${S}/build/make_exports.awk $d/
 	cp ${S}/build/make_var_export.awk $d/
 }
+
+do_compile_ptest() {
+	cd ${S}/test
+	oe_runmake
+}
+
+do_install_ptest() {
+	t=${D}${PTEST_PATH}/test
+	mkdir -p $t/.libs
+	cp -r ${S}/test/data $t/
+	cp -r ${S}/test/.libs/*.so $t/.libs/
+	cp ${S}/test/proc_child $t/
+	cp ${S}/test/readchild $t/
+	cp ${S}/test/sockchild $t/
+	cp ${S}/test/sockperf $t/
+	cp ${S}/test/testall $t/
+	cp ${S}/test/tryread $t/
+}
-- 
1.8.1.2



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

end of thread, other threads:[~2014-01-14  9:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14  9:42 [PATCH 0/1] apr: enable ptest support Chong Lu
2014-01-14  9:42 ` [PATCH 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