zeromq: following ptest formatting

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Roy Li
2014-09-09 13:57:27 +08:00
committed by Martin Jansa
parent 11a7fb62b8
commit 9c7899e0df
2 changed files with 17 additions and 10 deletions
+10
View File
@@ -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
@@ -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"