summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr
diff options
context:
space:
mode:
authorChong Lu <Chong.Lu@windriver.com>2014-01-17 15:59:57 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-28 00:52:31 +0000
commit330e5ebd1f66f01736b8121c6641ae00afc1010a (patch)
treefd77dfd6e2e51cb707d517442c98f8683d9092ba /meta/recipes-support/apr
parent8a30237838b459407208de4b4100041c8b6ee36b (diff)
downloadpoky-330e5ebd1f66f01736b8121c6641ae00afc1010a.tar.gz
apr-util: enable ptest support
Install apr-util test suite and run it as ptest. (From OE-Core rev: d132900b04a48193f05c04a77c324aa927970328) Signed-off-by: Chong Lu <Chong.Lu@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/apr')
-rw-r--r--meta/recipes-support/apr/apr-util/run-ptest6
-rw-r--r--meta/recipes-support/apr/apr-util_1.5.2.bb19
2 files changed, 24 insertions, 1 deletions
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 0000000000..ae19a1d11b
--- /dev/null
+++ b/meta/recipes-support/apr/apr-util/run-ptest
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3cd test
4./testall |sed \
5 -e 's|\(.*\): SUCCESS|PASS: \1|' \
6 -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 653b1472bd..65f26b3c32 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 \
11 11
12SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \ 12SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
13 file://configfix.patch \ 13 file://configfix.patch \
14 file://configure_fixes.patch" 14 file://configure_fixes.patch \
15 file://run-ptest \
16"
15 17
16SRC_URI[md5sum] = "eb682cfb8642babba427a4fb391b15e8" 18SRC_URI[md5sum] = "eb682cfb8642babba427a4fb391b15e8"
17SRC_URI[sha256sum] = "a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613" 19SRC_URI[sha256sum] = "a1ec5025373815795d2fa5bfac40c0984675feffc88e049be9a162c408c2f613"
@@ -48,3 +50,18 @@ FILES_${PN} += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
48FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la" 50FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.so* ${libdir}/apr-util-1/apr_dbm_gdbm.la"
49FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*" 51FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*"
50FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a" 52FILES_${PN}-staticdev += "${libdir}/apr-util-1/apr_dbm_gdbm.a"
53
54inherit ptest
55
56do_compile_ptest() {
57 cd ${S}/test
58 oe_runmake
59}
60
61do_install_ptest() {
62 t=${D}${PTEST_PATH}/test
63 mkdir $t
64 for i in testall data; do \
65 cp -r ${S}/test/$i $t; \
66 done
67}