On 1/10/26 23:10, Khem Raj wrote:
On Sat, Jan 10, 2026 at 5:38 AM Yi Zhao via lists.openembedded.org
<https://urldefense.com/v3/__http://lists.openembedded.org__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-H_flajXg$>
<[email protected]> wrote:
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
This case attempts to retrieve the Content-Length field from the HTTP
header of http://example.com/,
but because the site uses chunked transfer encoding, the Content-Length
field is not present, leading to an assertion failure.
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
This is because the ipv6 address for eth0 is not configured on qemu image.
It can pass on genericx86-64 BSP.
I will update commit message in V2.
//Yi
PASS: tcpsupp
PASS: tls
PASS: ws
PASS: wss
There are couple of failures here. Have you
Looked into them ? It would be good to document
That for future if we get back to fixing them
Signed-off-by: Yi Zhao <[email protected]>
---
.../recipes-connectivity/nanomsg/nng/run-ptest | 16
++++++++++++++++
.../recipes-connectivity/nanomsg/nng_1.11.bb
<https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$>
| 16 +++++++++++++---
2 files changed, 29 insertions(+), 3 deletions(-)
create mode 100644
meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
diff --git
a/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
new file mode 100644
index 0000000000..57888a77c9
--- /dev/null
+++ b/meta-networking/recipes-connectivity/nanomsg/nng/run-ptest
@@ -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
diff --git
a/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb
<https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$>
b/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb
<https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$>
index e59b7f34e2..031827a5c0 100644
--- a/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb
<https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$>
+++ b/meta-networking/recipes-connectivity/nanomsg/nng_1.11.bb
<https://urldefense.com/v3/__http://nng_1.11.bb__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-G88JHhQw$>
@@ -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
<https://urldefense.com/v3/__http://github.com/nanomsg/nng.git;branch=stable;protocol=https__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-FaSIM_Yw$>"
+SRC_URI =
"git://github.com/nanomsg/nng.git;branch=stable;protocol=https
<https://urldefense.com/v3/__http://github.com/nanomsg/nng.git;branch=stable;protocol=https__;!!AjveYdw8EvQ!eUD_F_6TrY4Cvi7j2wUSX8ys_GZ3EQyn_sRf0sLMmLUkYRg-OCJ0iGQoleA0pmgjIXDS9y71SmN6R-FaSIM_Yw$>
\
+ 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}/*"
--
2.34.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123346):
https://lists.openembedded.org/g/openembedded-devel/message/123346
Mute This Topic: https://lists.openembedded.org/mt/117190746/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-