mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-11 15:11:26 +00:00
nng: add ptest
Ptest results: $ run-ptest PASS: compat_block PASS: compat_bug777 PASS: compat_bus PASS: compat_cmsg PASS: compat_device PASS: compat_iovec PASS: compat_msg PASS: compat_options PASS: compat_pair PASS: compat_pipeline PASS: compat_poll PASS: compat_reqrep PASS: compat_reqttl PASS: compat_shutdown PASS: compat_survey PASS: compat_surveyttl PASS: cplusplus_pair PASS: device PASS: files FAIL: httpclient PASS: httpserver PASS: inproc PASS: ipc PASS: ipcsupp PASS: multistress PASS: nonblock PASS: options PASS: pipe PASS: pollfd PASS: reqctx PASS: reqstress PASS: scalability PASS: synch PASS: tcp FAIL: tcp6 PASS: tcpsupp PASS: tls PASS: ws PASS: wss Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
16
meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
Normal file
16
meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
RET=0
|
||||
cd tests
|
||||
|
||||
for t in $(ls *); do
|
||||
./$t > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
echo PASS: $t
|
||||
else
|
||||
echo FAIL: $t
|
||||
RET=1
|
||||
fi
|
||||
done
|
||||
|
||||
exit $RET
|
||||
@@ -5,16 +5,26 @@ SECTION = "libs/networking"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a41e579bb4326c21c774f8e51e41d8a3"
|
||||
|
||||
SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https"
|
||||
SRC_URI = "git://github.com/nanomsg/nng.git;branch=stable;protocol=https \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
SRCREV = "84aa701f42968bf536141a24e826da66963b571a"
|
||||
|
||||
inherit cmake pkgconfig
|
||||
inherit cmake pkgconfig ptest
|
||||
|
||||
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON"
|
||||
EXTRA_OECMAKE = "-DBUILD_SHARED_LIBS=ON -DNNG_ENABLE_NNGCAT=ON \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', '-DNNG_TESTS=ON', '', d)} \
|
||||
"
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
|
||||
PACKAGECONFIG[mbedtls] = "-DNNG_ENABLE_TLS=ON,-DNNG_ENABLE_TLS=OFF,mbedtls"
|
||||
|
||||
do_install_ptest(){
|
||||
install -d ${D}/${PTEST_PATH}/tests
|
||||
find ${B}/tests -type f -executable -exec install {} ${D}${PTEST_PATH}/tests/ \;
|
||||
}
|
||||
|
||||
PACKAGES =+ "${PN}-tools"
|
||||
FILES:${PN}-tools = "${bindir}/*"
|
||||
|
||||
Reference in New Issue
Block a user