Skip to contentSkip to conversation

libplist: fix ptest error

PATCH In review [email protected] 2 participants 3 messages Nov 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libplist: fix ptest error

From: Ankur Tyagi <[email protected]>

---
 .../0001-test-fix-operator-error.patch        | 68 +++++++++++++++++++
 .../libimobiledevice/libplist_2.6.0.bb        |  1 +
 2 files changed, 69 insertions(+)
 create mode 100644 meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch
meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +68 -0
new file mode 100644
index 0000000000..0866851537
@@ -0,0 +1,68 @@
+From 18e5b22a71f85091127cc063db79c8df687c582c Mon Sep 17 00:00:00 2001
+From: Ankur Tyagi <[email protected]>
+Date: Thu, 20 Nov 2025 16:01:58 +1300
+Subject: [PATCH] test: fix operator error
+
+Otherwise test fail with error [: -neq: binary operator expected
+
+Upstream-Status: Submitted [https://github.com/libimobiledevice/libplist/pull/284]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ test/json-invalid-types.test  | 6 +++---
+ test/ostep-invalid-types.test | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/test/json-invalid-types.test b/test/json-invalid-types.test
+index c532316..a21fcd9 100755
+--- a/test/json-invalid-types.test
++++ b/test/json-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 1
+ fi
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 2
+ fi
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 3
+ fi
+ 
+diff --git a/test/ostep-invalid-types.test b/test/ostep-invalid-types.test
+index 9222394..240505c 100755
+--- a/test/ostep-invalid-types.test
++++ b/test/ostep-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_OSTEP_DEBUG=1
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 1
+ fi
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 2
+ fi
+ 
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 3
+ fi
+ 
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +1 -0
index 69b9b46d62..17b1d7cfd3 100644
@@ -11,6 +11,7 @@ inherit autotools pkgconfig python3native python3targetconfig ptest
 SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
 SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV} \
            file://run-ptest \
+           file://0001-test-fix-operator-error.patch \
 "
 
 
#1 lore raw

We still have build QA errors to address

WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/tools/plistutil in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_test++ in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_jtest in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_btest in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_otest in package libplist-ptest contains reference to TMPDIR [buildpaths]

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

From: Ankur Tyagi <[email protected]>

---
 .../0001-test-fix-operator-error.patch        | 68 +++++++++++++++++++
 .../libimobiledevice/libplist_2.6.0.bb        |  1 +
 2 files changed, 69 insertions(+)
 create mode 100644

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch

diff --git a/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch b/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file mode 100644
index 0000000000..0866851537
--- /dev/null
+++
b/meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +8 -0
@@ -0,0 +1,68 @@
+From 18e5b22a71f85091127cc063db79c8df687c582c Mon Sep 17 00:00:00 2001
+From: Ankur Tyagi <[email protected]>
+Date: Thu, 20 Nov 2025 16:01:58 +1300
+Subject: [PATCH] test: fix operator error
+
+Otherwise test fail with error [: -neq: binary operator expected
+
+Upstream-Status: Submitted [

https://github.com/libimobiledevice/libplist/pull/284]

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +41 -0
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ test/json-invalid-types.test  | 6 +++---
+ test/ostep-invalid-types.test | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/test/json-invalid-types.test b/test/json-invalid-types.test
+index c532316..a21fcd9 100755
+--- a/test/json-invalid-types.test
++++ b/test/json-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 1
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 2
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 3
+ fi
+
+diff --git a/test/ostep-invalid-types.test b/test/ostep-invalid-types.test
+index 9222394..240505c 100755
+--- a/test/ostep-invalid-types.test
++++ b/test/ostep-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_OSTEP_DEBUG=1
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o

/dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +5 -0
+   exit 1
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o

/dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +5 -0
+   exit 2
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o

/dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then

meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +3 -0
+   exit 3
+ fi
+
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +0 -0
index 69b9b46d62..17b1d7cfd3 100644
@@ -11,6 +11,7 @@ inherit autotools pkgconfig python3native

python3targetconfig ptest
SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
SRC_URI = "git://
github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV}
<http://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=$%7BPV%7D>

\
            file://run-ptest \

+ file://0001-test-fix-operator-error.patch \
"

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

#2 lore raw
Quoted 9 lines · Khem Raj

We still have build QA errors to address

WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/tools/plistutil in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_test++ in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_jtest in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_btest in package libplist-ptest contains reference to TMPDIR [buildpaths]
WARNING: libplist-2.6.0-r0 do_package_qa: QA Issue: File /usr/lib/libplist/ptest/test/test/plist_otest in package libplist-ptest contains reference to TMPDIR [buildpaths]

Hi Khem,

I was not seeing these errors in my build, fetching the latest version and will try again.

cheers
Ankur

Quoted 106 lines · Ankur Tyagi via lists.openembedded.org
Quoted 105 lines

From: Ankur Tyagi <[email protected]>

---
 .../0001-test-fix-operator-error.patch        | 68 +++++++++++++++++++
 .../libimobiledevice/libplist_2.6.0.bb        |  1 +
 2 files changed, 69 insertions(+)
 create mode 100644 meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch
meta-oe/recipes-extended/libimobiledevice/libplist/0001-test-fix-operator-error.patch new file +68 -0
new file mode 100644
index 0000000000..0866851537
@@ -0,0 +1,68 @@
+From 18e5b22a71f85091127cc063db79c8df687c582c Mon Sep 17 00:00:00 2001
+From: Ankur Tyagi <[email protected]>
+Date: Thu, 20 Nov 2025 16:01:58 +1300
+Subject: [PATCH] test: fix operator error
+
+Otherwise test fail with error [: -neq: binary operator expected
+
+Upstream-Status: Submitted [https://github.com/libimobiledevice/libplist/pull/284]
+Signed-off-by: Ankur Tyagi <[email protected]>
+---
+ test/json-invalid-types.test  | 6 +++---
+ test/ostep-invalid-types.test | 6 +++---
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/test/json-invalid-types.test b/test/json-invalid-types.test
+index c532316..a21fcd9 100755
+--- a/test/json-invalid-types.test
++++ b/test/json-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_JSON_DEBUG=1
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE0 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 1
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE1 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 2
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f json -i $DATASRC/$TESTFILE2 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 3
+ fi
+
+diff --git a/test/ostep-invalid-types.test b/test/ostep-invalid-types.test
+index 9222394..240505c 100755
+--- a/test/ostep-invalid-types.test
++++ b/test/ostep-invalid-types.test
+@@ -14,19 +14,19 @@ export PLIST_OSTEP_DEBUG=1
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE0 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 1
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstepn -i $DATASRC/$TESTFILE1 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 2
+ fi
+
+ echo "Converting (failure expected)"
+ $top_builddir/tools/plistutil -f openstep -i $DATASRC/$TESTFILE2 -o /dev/null
+-if [ $? -neq 2 ]; then
++if [ $? -ne 2 ]; then
+   exit 3
+ fi
+
meta-oe/recipes-extended/libimobiledevice/libplist_2.6.0.bb +1 -1
index 69b9b46d62..17b1d7cfd3 100644
@@ -11,6 +11,7 @@ inherit autotools pkgconfig python3native python3targetconfig ptest
 SRCREV = "2117b8fdb6b4096455bd2041a63e59a028120136"
 SRC_URI = "git://github.com/libimobiledevice/libplist;protocol=https;branch=master;tag=${PV} \
            file://run-ptest \
+           file://0001-test-fix-operator-error.patch \
 "
 
 
 
-=-=-=-=-=-=-=-=-=-=-=-

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