* [PATCH 0/1] apr-util: enable ptest support
@ 2014-01-17 7:59 Chong Lu
2014-01-17 7:59 ` [PATCH 1/1] " Chong Lu
0 siblings, 1 reply; 2+ messages in thread
From: Chong Lu @ 2014-01-17 7:59 UTC (permalink / raw)
To: openembedded-core
The following changes since commit cfd1520b4b492ab27b2900ba3510abe6f288097e:
oe-selftest: separated the SStateBase and SStateTests in different modules (2014-01-16 12:18:52 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib chonglu/apr-util
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=chonglu/apr-util
Chong Lu (1):
apr-util: enable ptest support
meta/recipes-support/apr/apr-util/run-ptest | 6 ++++++
meta/recipes-support/apr/apr-util_1.5.2.bb | 19 ++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-support/apr/apr-util/run-ptest
--
1.8.1.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] apr-util: enable ptest support
2014-01-17 7:59 [PATCH 0/1] apr-util: enable ptest support Chong Lu
@ 2014-01-17 7:59 ` Chong Lu
0 siblings, 0 replies; 2+ messages in thread
From: Chong Lu @ 2014-01-17 7:59 UTC (permalink / raw)
To: openembedded-core
Install apr-util test suite and run it as ptest.
Signed-off-by: Chong Lu <Chong.Lu@windriver.com>
---
meta/recipes-support/apr/apr-util/run-ptest | 6 ++++++
meta/recipes-support/apr/apr-util_1.5.2.bb | 19 ++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 meta/recipes-support/apr/apr-util/run-ptest
diff --git a/meta/recipes-support/apr/apr-util/run-ptest b/meta/recipes-support/apr/apr-util/run-ptest
new file mode 100644
index 0000000..ae19a1d
--- /dev/null
+++ b/meta/recipes-support/apr/apr-util/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-util_1.5.2.bb b/meta/recipes-support/apr/apr-util_1.5.2.bb
index 653b147..65f26b3 100644
--- a/meta/recipes-support/apr/apr-util_1.5.2.bb
+++ b/meta/recipes-support/apr/apr-util_1.5.2.bb
@@ -11,7 +11,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=519e0a18e03f7c023070568c14b077bb \
SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
file://configfix.patch \
- file://configure_fixes.patch"
+ file://configure_fixes.patch \
+ file://run-ptest \
+"
SRC_URI[md5sum] = "eb682cfb8642babba427a4fb391b15e8"
SRC_URI[sha256sum] = "a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613"
@@ -48,3 +50,18 @@ FILES_${PN} += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la"
FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*"
FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a"
+
+inherit ptest
+
+do_compile_ptest() {
+ cd ${S}/test
+ oe_runmake
+}
+
+do_install_ptest() {
+ t=${D}${PTEST_PATH}/test
+ mkdir $t
+ for i in testall data; do \
+ cp -r ${S}/test/$i $t; \
+ done
+}
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-17 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-17 7:59 [PATCH 0/1] apr-util: enable ptest support Chong Lu
2014-01-17 7:59 ` [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