Skip to contentSkip to conversation

cli11: upgrade 2.6.0 -> 2.6.1

PATCH In review [email protected] 2 participants 9 messages Nov 19, 2025 – Nov 20, 2025 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 cli11: upgrade 2.6.0 -> 2.6.1

From: Ankur Tyagi <[email protected]>

Release Notes:
https://github.com/CLIUtils/CLI11/releases/tag/v2.6.1

---
 .../recipes-support/cli11/{cli11_2.6.0.bb => cli11_2.6.1.bb}    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-support/cli11/{cli11_2.6.0.bb => cli11_2.6.1.bb} (95%)
meta-oe/recipes-support/cli11/cli11_2.6.1.bb renamed from meta-oe/recipes-support/cli11/cli11_2.6.0.bb +1 -1
similarity index 95%
rename from meta-oe/recipes-support/cli11/cli11_2.6.0.bb
rename to meta-oe/recipes-support/cli11/cli11_2.6.1.bb
index def32b7a6b..b6c1ac56ba 100644
@@ -8,7 +8,7 @@ DEPENDS = "catch2"
 SRC_URI = "gitsm://github.com/CLIUtils/CLI11;branch=main;protocol=https;tag=v${PV} \
            file://remove_tmpdir_from_test_binary.patch \
            file://run-ptest"
-SRCREV = "3914826ef81208f37dc5843fa16f491d7f8c0829"
+SRCREV = "bfffd37e1f804ca4fae1caae106935791696b6a9"
 
 inherit cmake ptest
 
#1 lore raw

PATCH 2/6 c-periphery: upgrade 2.4.3 -> 2.5.0

From: Ankur Tyagi <[email protected]>

Updated SRC_URI to include tag.

Changelog:
https://github.com/vsergeev/c-periphery/compare/v2.4.3...v2.5.0

---
 .../{c-periphery_2.4.3.bb => c-periphery_2.5.0.bb}            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
 rename meta-oe/recipes-support/c-periphery/{c-periphery_2.4.3.bb => c-periphery_2.5.0.bb} (86%)
meta-oe/recipes-support/c-periphery/c-periphery_2.5.0.bb renamed from meta-oe/recipes-support/c-periphery/c-periphery_2.4.3.bb +2 -2
similarity index 86%
rename from meta-oe/recipes-support/c-periphery/c-periphery_2.4.3.bb
rename to meta-oe/recipes-support/c-periphery/c-periphery_2.5.0.bb
index 058ede614e..0851463d7d 100644
@@ -8,8 +8,8 @@ SECTION = "libs"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=e88456d0a60de4c71ff4d787c212f253"
 
-SRC_URI = "git://github.com/vsergeev/c-periphery;protocol=https;branch=master"
-SRCREV = "911e989fe41eb90c7df274cb54555346caf2a632"
+SRC_URI = "git://github.com/vsergeev/c-periphery;protocol=https;branch=master;tag=v${PV}"
+SRCREV = "76c4edd4b5c43a597fd37c618ed32dbc2a27ec40"
 
 
 inherit cmake
#2 lore raw

PATCH 3/6 libplist: add ptest support

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

---
 .../include/ptest-packagelists-meta-oe.inc    |  1 +
 .../libimobiledevice/libplist/run-ptest       |  6 ++++
 .../libimobiledevice/libplist_2.6.0.bb        | 30 +++++++++++++++++--
 3 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-extended/libimobiledevice/libplist/run-ptest
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
index 09b1dbb3e1..25db9fe5cc 100644
@@ -54,6 +54,7 @@ PTESTS_FAST_META_OE = "\
     xmlsec1 \
     zeromq \
     cjson \
+    libplist \
 "
 PTESTS_FAST_META_OE:append:x86 = " mcelog"
 PTESTS_FAST_META_OE:append:x86-64 = " mcelog"
meta-oe/recipes-extended/libimobiledevice/libplist/run-ptest new file +6 -0
new file mode 100644
index 0000000000..ed940af5f6
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for t in `ls test/*.test`; do
+	top_srcdir=$(pwd)/input top_builddir=$(pwd)/test ./$t && echo PASS: $t || echo FAIL: $t
+	rm $(pwd)/test/test/data/* 2>/dev/null
+done
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +28 -2
index 7f01962a97..1dfe895d23 100644
@@ -6,10 +6,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ebb5c50ab7cab4baeffba14977030c07 \
 
 DEPENDS = "libxml2 glib-2.0 swig python3"
 
-inherit autotools pkgconfig python3native python3targetconfig
+inherit autotools pkgconfig python3native python3targetconfig ptest
 
 SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
-SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master"
+SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master \
+           file://run-ptest \
+"
 
 
 CVE_STATUS_GROUPS += "CVE_STATUS_LIBLIST"
@@ -30,6 +32,28 @@ do_install:append () {
     fi
 }
 
+do_install_ptest(){
+    # tests expect a particular directory structure for input and output
+    install -d ${D}${PTEST_PATH}/input/test/data
+    install -d ${D}${PTEST_PATH}/test/tools
+    install -d ${D}${PTEST_PATH}/test/test/.libs
+    install -d ${D}${PTEST_PATH}/test/test/data
+    install ${S}/test/data/* ${D}${PTEST_PATH}/input/test/data/
+    install ${S}/test/*.test ${D}${PTEST_PATH}/test/
+    install -m 0755 ${B}/test/.libs/plist* ${D}${PTEST_PATH}/test/test/.libs/
+    install -m 0755 ${B}/test/.libs/integer_set_test ${D}${PTEST_PATH}/test/test/
+    for t in $(find ${B}/test -type f -name 'plist*' \! -name '*.o'); do
+        install -m 0755 $t ${D}${PTEST_PATH}/test/test/
+    done
+    for t in $(find ${B}/tools -type f -name 'plist*' \! -name '*.o'); do
+        install -m 0755 $t ${D}${PTEST_PATH}/test/tools/
+    done
+    sed -i 's@LD_LIBRARY_PATH="[^"]*:@LD_LIBRARY_PATH="@g' \
+        ${D}${PTEST_PATH}/test/test/plist_cmp
+    sed -i 's@LD_LIBRARY_PATH="[^"]*:@LD_LIBRARY_PATH="@g' \
+        ${D}${PTEST_PATH}/test/test/plist_test
+}
+
 PACKAGES =+ "${PN}-utils \
              ${PN}++ \
              ${PN}-python"
@@ -38,3 +62,5 @@ FILES:${PN} = "${libdir}/libplist-2.0${SOLIBS}"
 FILES:${PN}++ = "${libdir}/libplist++-2.0${SOLIBS}"
 FILES:${PN}-utils = "${bindir}/*"
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
+
+RDEPENDS:${PN}-ptest += "bash"
#3 lore raw

PATCH 4/6 libplist: update SRC_URI to include tag

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

---
 meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +1 -1
index 1dfe895d23..69b9b46d62 100644
@@ -9,7 +9,7 @@ DEPENDS = "libxml2 glib-2.0 swig python3"
 inherit autotools pkgconfig python3native python3targetconfig ptest
 
 SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
-SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master \
+SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV} \
            file://run-ptest \
 "
 
#4 lore raw

PATCH 5/6 tmux: update UPSTREAM_CHECK_REGEX

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Update UPSTREAM_CHECK_REGEX to check the correct latest stable verison.

Before the patch:

$ devtool latest-version tmux
INFO: Current version: 3.5
INFO: Latest version: 3.5

After the patch:
INFO: Current version: 3.5
INFO: Latest version: 3.5a

---
 meta-oe/recipes-extended/tmux/tmux_3.5.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/tmux/tmux_3.5.bb +1 -1
index 33f709681d..c7c87eb4a1 100644
@@ -11,7 +11,7 @@ SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.g
 SRC_URI[sha256sum] = "2fe01942e7e7d93f524a22f2c883822c06bc258a4d61dba4b407353d7081950f"
 
 UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"
-UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+)"
+UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+[a-z]?)"
 
 inherit autotools pkgconfig
 
#5 lore raw

PATCH 6/6 tmux: upgrade 3.5 -> 3.5a

In reply to [email protected]

From: Ankur Tyagi <[email protected]>

Changelog:
https://raw.githubusercontent.com/tmux/tmux/3.5a/CHANGES

---
 meta-oe/recipes-extended/tmux/{tmux_3.5.bb => tmux_3.5a.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-oe/recipes-extended/tmux/{tmux_3.5.bb => tmux_3.5a.bb} (90%)
meta-oe/recipes-extended/tmux/tmux_3.5a.bb renamed from meta-oe/recipes-extended/tmux/tmux_3.5.bb +1 -1
similarity index 90%
rename from meta-oe/recipes-extended/tmux/tmux_3.5.bb
rename to meta-oe/recipes-extended/tmux/tmux_3.5a.bb
index c7c87eb4a1..72c84f562e 100644
@@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = "file://tmux.c;beginline=3;endline=17;md5=f256b76d52e7b4d02bf
 DEPENDS = "ncurses libevent bison-native"
 
 SRC_URI = "https://github.com/tmux/tmux/releases/download/${PV}/tmux-${PV}.tar.gz"
-SRC_URI[sha256sum] = "2fe01942e7e7d93f524a22f2c883822c06bc258a4d61dba4b407353d7081950f"
+SRC_URI[sha256sum] = "16216bd0877170dfcc64157085ba9013610b12b082548c7c9542cc0103198951"
 
 UPSTREAM_CHECK_URI = "https://github.com/tmux/tmux/releases"
 UPSTREAM_CHECK_REGEX = "(?P<pver>\d+(\.\d+)+[a-z]?)"

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

Re: [oe][meta-oe][PATCH 3/6] libplist: add ptest support

ptest summary:

root@qemux86-64:~# time ptest-runner libplist
START: ptest-runner
2025-11-19T10:23
BEGIN: /usr/lib64/libplist/ptest
ERROR: Could not parse plist data, expected XML or binary plist
PASS: test/amp.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/6.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 99092
Output size : 99083
Comparing
PList parsing succeeded
PASS: test/bigarray++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/6.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 99092
Output size : 99083
Comparing
PList parsing succeeded
PASS: test/bigarray.test
PList parsing succeeded
PASS: test/cdata.test
PList parsing succeeded
PList parsing succeeded
PASS: test/dates.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/1.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 752
Output size : 765
Comparing
PList parsing succeeded
PASS: test/empty++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/1.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 752
Output size : 765
Comparing
PList parsing succeeded
PASS: test/empty.test
PList parsing succeeded
PASS: test/empty_keys.test
PList parsing succeeded
PASS: test/entities.test
PList parsing succeeded
PASS: test/hex.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/5.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 4292380
Output size : 4305301
Comparing
PList parsing succeeded
PASS: test/huge++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/5.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 4292380
Output size : 4305301
Comparing
PList parsing succeeded
PASS: test/huge.test
SUCCESS: plist_set_uint_val with 0x8000000000000000LL
SUCCESS: plist_set_int_val with 0x8000000000000000LL
SUCCESS: plist_set_uint_val with (uint64_t)-1LL
SUCCESS: plist_set_int_val with -1LL
SUCCESS: plist_set_uint_val with 0x8000000000000001LL
SUCCESS: plist_set_uint_val with 0x8000000000000001LL
PASS: test/integer_set.test
ERROR: Could not parse plist data, expected XML or binary plist
PASS: test/invalid_tag.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/int64_min_max.json is open
PList JSON parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList JSON writing succeeded
Comparing
PList parsing succeeded
PASS: test/json-int64-min-max.test
Converting (failure expected)
ERROR: Input plist data is not compatible with output format.
./test/json-invalid-types.test: line 17: [: -neq: binary operator expected
Converting (failure expected)
ERROR: Input plist data is not compatible with output format.
./test/json-invalid-types.test: line 23: [: -neq: binary operator expected
Converting (failure expected)
ERROR: Input plist data is not compatible with output format.
./test/json-invalid-types.test: line 29: [: -neq: binary operator expected
PASS: test/json-invalid-types.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/j1.json is open
PList JSON parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList JSON writing succeeded
Size of input and output is different
Input size : 171
Output size : 170
Comparing
PList parsing succeeded
PASS: test/json1.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/j2.json is open
PList JSON parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList JSON writing succeeded
Size of input and output is different
Input size : 426
Output size : 423
Comparing
PList parsing succeeded
PASS: test/json2.test
Converting input file to JSON
Converting to binary and back to JSON
File /usr/lib64/libplist/ptest/test/test/data/json3.test.json is open
PList JSON parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList JSON writing succeeded
Size of input and output is different
Input size : 1017
Output size : 866
Comparing
PList parsing succeeded
PASS: test/json3.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/4.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 391148
Output size : 392301
Comparing
PList parsing succeeded
PASS: test/large++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/4.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 391148
Output size : 392301
Comparing
PList parsing succeeded
PASS: test/large.test
ERROR: Could not parse plist data, expected XML or binary plist
PASS: test/malformed_dict.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/3.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 31034
Output size : 31101
Comparing
PList parsing succeeded
PASS: test/medium++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/3.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 31034
Output size : 31101
Comparing
PList parsing succeeded
PASS: test/medium.test
* checking off1byte.bplist
PList parsing succeeded
* checking off2bytes.bplist
PList parsing succeeded
* checking off3bytes.bplist
PList parsing succeeded
* checking off4bytes.bplist
PList parsing succeeded
* checking off5bytes.bplist
PList parsing succeeded
* checking off6bytes.bplist
PList parsing succeeded
* checking off7bytes.bplist
PList parsing succeeded
* checking off8bytes.bplist
PList parsing succeeded
PASS: test/offsetsize.test
PList parsing succeeded
PASS: test/order.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/o3.ostep is open
OpenStep PList parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
OpenStep PList writing succeeded
Size of input and output is different
Input size : 341
Output size : 125
Comparing
PList parsing succeeded
PASS: test/ostep-comments.test
Converting (failure expected)
./test/ostep-invalid-types.test: line 17: [: -neq: binary operator expected
Converting (failure expected)
ERROR: Input plist data is not compatible with output format.
./test/ostep-invalid-types.test: line 23: [: -neq: binary operator expected
Converting (failure expected)
ERROR: Input plist data is not compatible with output format.
./test/ostep-invalid-types.test: line 29: [: -neq: binary operator expected
PASS: test/ostep-invalid-types.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/test.strings is open
OpenStep PList parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
OpenStep PList writing succeeded
Size of input and output is different
Input size : 312
Output size : 274
Comparing
PList parsing succeeded
PASS: test/ostep-strings.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/o1.ostep is open
OpenStep PList parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
OpenStep PList writing succeeded
Size of input and output is different
Input size : 566
Output size : 148
Comparing
PList parsing succeeded
PASS: test/ostep1.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/o2.ostep is open
OpenStep PList parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
OpenStep PList writing succeeded
Size of input and output is different
Input size : 461
Output size : 382
Comparing
PList parsing succeeded
PASS: test/ostep2.test
ERROR: Could not parse plist data, expected XML or binary plist
PASS: test/recursion.test
* checking dictref1byte.bplist
PList parsing succeeded
* checking dictref2bytes.bplist
PList parsing succeeded
* checking dictref3bytes.bplist
PList parsing succeeded
* checking dictref4bytes.bplist
PList parsing succeeded
* checking dictref5bytes.bplist
PList parsing succeeded
* checking dictref6bytes.bplist
PList parsing succeeded
* checking dictref7bytes.bplist
PList parsing succeeded
* checking dictref8bytes.bplist
PList parsing succeeded
PASS: test/refsize.test
PASS: test/signedunsigned1.test
PASS: test/signedunsigned2.test
PASS: test/signedunsigned3.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/2.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 6030
Output size : 6021
Comparing
PList parsing succeeded
PASS: test/small++.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/2.plist is open
PList XML parsing succeeded
PList BIN writing succeeded
PList BIN parsing succeeded
PList XML writing succeeded
Size of input and output is different
Input size : 6030
Output size : 6021
Comparing
PList parsing succeeded
PASS: test/small.test
PList parsing succeeded
PList parsing succeeded
PASS: test/timezone1.test
PList parsing succeeded
PList parsing succeeded
PList parsing succeeded
PASS: test/timezone2.test
Converting
File /usr/lib64/libplist/ptest/input/test/data/uid.bplist is open
PList BIN parsing succeeded
PList XML writing succeeded
PList XML parsing succeeded
PList BIN writing succeeded
Comparing
PList parsing succeeded
PASS: test/uid.test
DURATION: 7
END: /usr/lib64/libplist/ptest
2025-11-19T10:23
STOP: ptest-runner
TOTAL: 1 FAIL: 0

real 0m7.166s
user 0m2.552s
sys 0m5.882s

Quoted 98 lines · Ankur Tyagi via lists.openembedded.org

From: Ankur Tyagi <[email protected]>

---
 .../include/ptest-packagelists-meta-oe.inc    |  1 +
 .../libimobiledevice/libplist/run-ptest       |  6 ++++
 .../libimobiledevice/libplist_2.6.0.bb        | 30 +++++++++++++++++--
 3 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 meta-oe/recipes-extended/libimobiledevice/libplist/run-ptest
meta-oe/conf/include/ptest-packagelists-meta-oe.inc +1 -0
index 09b1dbb3e1..25db9fe5cc 100644
@@ -54,6 +54,7 @@ PTESTS_FAST_META_OE = "\
     xmlsec1 \
     zeromq \
     cjson \
+    libplist \
 "
 PTESTS_FAST_META_OE:append:x86 = " mcelog"
 PTESTS_FAST_META_OE:append:x86-64 = " mcelog"
meta-oe/recipes-extended/libimobiledevice/libplist/run-ptest new file +6 -0
new file mode 100644
index 0000000000..ed940af5f6
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for t in `ls test/*.test`; do
+       top_srcdir=$(pwd)/input top_builddir=$(pwd)/test ./$t && echo PASS: $t || echo FAIL: $t
+       rm $(pwd)/test/test/data/* 2>/dev/null
+done
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +28 -3
index 7f01962a97..1dfe895d23 100644
@@ -6,10 +6,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=ebb5c50ab7cab4baeffba14977030c07 \
 
 DEPENDS = "libxml2 glib-2.0 swig python3"
 
-inherit autotools pkgconfig python3native python3targetconfig
+inherit autotools pkgconfig python3native python3targetconfig ptest
 
 SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
-SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master"
+SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master \
+           file://run-ptest \
+"
 
 
 CVE_STATUS_GROUPS += "CVE_STATUS_LIBLIST"
@@ -30,6 +32,28 @@ do_install:append () {
     fi
 }
 
+do_install_ptest(){
+    # tests expect a particular directory structure for input and output
+    install -d ${D}${PTEST_PATH}/input/test/data
+    install -d ${D}${PTEST_PATH}/test/tools
+    install -d ${D}${PTEST_PATH}/test/test/.libs
+    install -d ${D}${PTEST_PATH}/test/test/data
+    install ${S}/test/data/* ${D}${PTEST_PATH}/input/test/data/
+    install ${S}/test/*.test ${D}${PTEST_PATH}/test/
+    install -m 0755 ${B}/test/.libs/plist* ${D}${PTEST_PATH}/test/test/.libs/
+    install -m 0755 ${B}/test/.libs/integer_set_test ${D}${PTEST_PATH}/test/test/
+    for t in $(find ${B}/test -type f -name 'plist*' \! -name '*.o'); do
+        install -m 0755 $t ${D}${PTEST_PATH}/test/test/
+    done
+    for t in $(find ${B}/tools -type f -name 'plist*' \! -name '*.o'); do
+        install -m 0755 $t ${D}${PTEST_PATH}/test/tools/
+    done
+    sed -i 's@LD_LIBRARY_PATH="[^"]*:@LD_LIBRARY_PATH="@g' \
+        ${D}${PTEST_PATH}/test/test/plist_cmp
+    sed -i 's@LD_LIBRARY_PATH="[^"]*:@LD_LIBRARY_PATH="@g' \
+        ${D}${PTEST_PATH}/test/test/plist_test
+}
+
 PACKAGES =+ "${PN}-utils \
              ${PN}++ \
              ${PN}-python"
@@ -38,3 +62,5 @@ FILES:${PN} = "${libdir}/libplist-2.0${SOLIBS}"
 FILES:${PN}++ = "${libdir}/libplist++-2.0${SOLIBS}"
 FILES:${PN}-utils = "${bindir}/*"
 FILES:${PN}-python = "${PYTHON_SITEPACKAGES_DIR}/*"
+
+RDEPENDS:${PN}-ptest += "bash"
 
-=-=-=-=-=-=-=-=-=-=-=-

Links: You receive all messages sent to this group.
View/Reply Online (#121893): https://lists.openembedded.org/g/openembedded-devel/message/121893
Mute This Topic: https://lists.openembedded.org/mt/116371540/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#8 lore raw

Re: [oe][meta-oe][PATCH 3/6] libplist: add ptest support

Quoted 3 lines · Ankur Tyagi via lists.openembedded.org

ptest summary:

root@qemux86-64:~# time ptest-runner libplist

...

Quoted 11 lines

PASS: test/json-int64-min-max.test
Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 17: [: -neq: binary operator expected Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 23: [: -neq: binary operator expected Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 29: [: -neq: binary operator expected

This looks like a syntax error due to a missing variable in the test script itself

#9 lore raw

Re: [oe][meta-oe][PATCH 3/6] libplist: add ptest support

Quoted 18 lines · Gyorgy Sarvari
Quoted 3 lines · Ankur Tyagi via lists.openembedded.org

ptest summary:

root@qemux86-64:~# time ptest-runner libplist

...

Quoted 11 lines

PASS: test/json-int64-min-max.test
Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 17: [: -neq: binary operator expected Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 23: [: -neq: binary operator expected Converting (failure expected)
ERROR: Input plist data is not compatible with output format. ./test/json-invalid-types.test: line 29: [: -neq: binary operator expected

Quoted 2 lines

This looks like a syntax error due to a missing variable in the test script itself

Thanks for spotting this, I'll send a fix in v2.