[oe-commits] Roy Li : zeromq: following ptest formatting

git at git.openembedded.org git at git.openembedded.org
Mon Sep 29 02:51:31 UTC 2014


Module: meta-openembedded.git
Branch: master
Commit: 9c7899e0df435655870798c15580b1c0967ca30c
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=9c7899e0df435655870798c15580b1c0967ca30c

Author: Roy Li <rongqing.li at windriver.com>
Date:   Tue Sep  9 13:57:27 2014 +0800

zeromq: following ptest formatting

Signed-off-by: Roy Li <rongqing.li at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.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(-)

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..48b9cd9
--- /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"



More information about the Openembedded-commits mailing list