summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/apr')
-rw-r--r--meta/recipes-support/apr/apr/run-ptest6
-rw-r--r--meta/recipes-support/apr/apr_1.4.8.bb24
2 files changed, 28 insertions, 2 deletions
diff --git a/meta/recipes-support/apr/apr/run-ptest b/meta/recipes-support/apr/apr/run-ptest
new file mode 100644
index 0000000000..ae19a1d11b
--- /dev/null
+++ b/meta/recipes-support/apr/apr/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_1.4.8.bb b/meta/recipes-support/apr/apr_1.4.8.bb
index d23929fd4a..4af2a6b0c7 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"
12SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \ 12SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.bz2 \
13 file://configure_fixes.patch \ 13 file://configure_fixes.patch \
14 file://cleanup.patch \ 14 file://cleanup.patch \
15 file://configfix.patch" 15 file://configfix.patch \
16 file://run-ptest \
17"
16 18
17SRC_URI[md5sum] = "ce2ab01a0c3cdb71cf0a6326b8654f41" 19SRC_URI[md5sum] = "ce2ab01a0c3cdb71cf0a6326b8654f41"
18SRC_URI[sha256sum] = "61b8d2f8d321c6365ee3d71d0bb41f3a89c44da6124cc5b407a3b8319d660421" 20SRC_URI[sha256sum] = "61b8d2f8d321c6365ee3d71d0bb41f3a89c44da6124cc5b407a3b8319d660421"
19 21
20inherit autotools lib_package binconfig multilib_header 22inherit autotools lib_package binconfig multilib_header ptest
21 23
22OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'" 24OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
23 25
@@ -60,3 +62,21 @@ apr_sysroot_preprocess () {
60 cp ${S}/build/make_exports.awk $d/ 62 cp ${S}/build/make_exports.awk $d/
61 cp ${S}/build/make_var_export.awk $d/ 63 cp ${S}/build/make_var_export.awk $d/
62} 64}
65
66do_compile_ptest() {
67 cd ${S}/test
68 oe_runmake
69}
70
71do_install_ptest() {
72 t=${D}${PTEST_PATH}/test
73 mkdir -p $t/.libs
74 cp -r ${S}/test/data $t/
75 cp -r ${S}/test/.libs/*.so $t/.libs/
76 cp ${S}/test/proc_child $t/
77 cp ${S}/test/readchild $t/
78 cp ${S}/test/sockchild $t/
79 cp ${S}/test/sockperf $t/
80 cp ${S}/test/testall $t/
81 cp ${S}/test/tryread $t/
82}