@@ -4,8 +4,7 @@ RET=0
cd tests
for t in $(ls *); do
- ./$t > /dev/null
- if [ $? -eq 0 ]; then
+ if "./$t"; then
echo PASS: $t
else
echo FAIL: $t
similarity index 77%
rename from meta-networking/recipes-connectivity/nanomsg/nng_1.12.3.bb
rename to meta-networking/recipes-connectivity/nanomsg/nng_2.1.0.bb
@@ -5,11 +5,11 @@ 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=main;protocol=https \
file://run-ptest \
"
-SRCREV = "73f715235967afc783e0b99c52d015dc10897fda"
+SRCREV = "0912dcbd63f2f44324fa974e9fc9695c7621abb9"
inherit cmake pkgconfig ptest
@@ -23,7 +23,8 @@ 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/ \;
+ find ${B}/src -type f -executable -name '*_test' -exec install {} ${D}${PTEST_PATH}/tests/ \;
+ install ${B}/tests/cplusplus_pair ${D}${PTEST_PATH}/tests/
}
PACKAGES =+ "${PN}-tools"
This is a major release for NNG that includes breaking changes to the API. Changelogs: * https://github.com/nanomsg/nng/releases/tag/v2.0.0 * https://github.com/nanomsg/nng/releases/tag/v2.1.0 Signed-off-by: Nate Kent <nate@nkent.net> --- meta-networking/recipes-connectivity/nanomsg/nng/run-ptest | 3 +-- .../nanomsg/{nng_1.12.3.bb => nng_2.1.0.bb} | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) rename meta-networking/recipes-connectivity/nanomsg/{nng_1.12.3.bb => nng_2.1.0.bb} (77%)