[oe] [PATCH][meta-oe] zeromq: following ptest formatting

rongqing.li at windriver.com rongqing.li at windriver.com
Tue Sep 9 05:57:27 UTC 2014


From: Roy Li <rongqing.li at windriver.com>

Signed-off-by: Roy Li <rongqing.li at windriver.com>
---
 meta-oe/recipes-connectivity/zeromq/files/run-ptest |   10 ++++++++++
 meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb |   17 +++++++----------
 2 files changed, 17 insertions(+), 10 deletions(-)
 create mode 100755 meta-oe/recipes-connectivity/zeromq/files/run-ptest

diff --git a/meta-oe/recipes-connectivity/zeromq/files/run-ptest b/meta-oe/recipes-connectivity/zeromq/files/run-ptest
new file mode 100755
index 0000000..9c76aee
--- /dev/null
+++ b/meta-oe/recipes-connectivity/zeromq/files/run-ptest
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+cd tests
+for i in `ls *`; do
+   if [ ./$i ] ; then
+       echo "PASS: $i"
+   else
+       echo "FAIL: $i"
+   fi
+done
diff --git a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb b/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
index 014114f..80907fa 100644
--- a/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
+++ b/meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb
@@ -3,7 +3,9 @@ HOMEPAGE = "http://www.zeromq.org"
 LICENSE = "LGPLv3+"
 LIC_FILES_CHKSUM = "file://COPYING.LESSER;md5=d5311495d952062e0e4fbba39cbf3de1"
 
-SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz"
+SRC_URI = "http://download.zeromq.org/zeromq-${PV}.tar.gz \
+           file://run-ptest \
+           "
 SRC_URI[md5sum] = "f3c3defbb5ef6cc000ca65e529fdab3b"
 SRC_URI[sha256sum] = "1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399"
 
@@ -14,14 +16,9 @@ S = "${WORKDIR}/zeromq-${PV}"
 #CFLAGS_append += "-O0"
 #CXXFLAGS_append += "-O0"
 
-inherit autotools
+inherit autotools ptest
 
-do_install_append () {
-        install -d ${D}${bindir}/tests/zeromq-${PV}
-        install -m 0755 ${B}/tests/.libs/* ${D}${bindir}/tests/zeromq-${PV}
+do_install_ptest () {
+        install -d ${D}${PTEST_PATH}/tests
+        install -m 0755 ${B}/tests/.libs/* ${D}${PTEST_PATH}/tests
 }
-
-PACKAGES = "${PN}-dbg ${PN}-test ${PN} ${PN}-staticdev ${PN}-doc ${PN}-dev ${PN}-locale"
-
-FILES_${PN}-dbg =+ "${bindir}/tests/zeromq-${PV}/.debug"
-FILES_${PN}-test = "${bindir}/tests"
-- 
1.7.10.4




More information about the Openembedded-devel mailing list