aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-connectivity/zeromq
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2014-09-09 13:57:27 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2014-09-26 05:42:53 +0200
commit9c7899e0df435655870798c15580b1c0967ca30c (patch)
tree6d5676789a60fdf1329dab44823bb478c5e71e2a /meta-oe/recipes-connectivity/zeromq
parent11a7fb62b8e2f1d91793460de33229874c433648 (diff)
downloadmeta-openembedded-contrib-9c7899e0df435655870798c15580b1c0967ca30c.tar.gz
meta-openembedded-contrib-9c7899e0df435655870798c15580b1c0967ca30c.tar.bz2
meta-openembedded-contrib-9c7899e0df435655870798c15580b1c0967ca30c.zip
zeromq: following ptest formatting
Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-connectivity/zeromq')
-rwxr-xr-xmeta-oe/recipes-connectivity/zeromq/files/run-ptest10
-rw-r--r--meta-oe/recipes-connectivity/zeromq/zeromq_4.0.4.bb17
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 0000000000..48b9cd9fc5
--- /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 014114f050..80907fa7c0 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"