Skip to contentSkip to conversation

rsync: add ptest support

PATCH Superseded Nikhil R 2 participants 2 messages Jun 1 – Jun 2

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Nikhil R

author
#0 lore raw

PATCH 1/1 rsync: add ptest support

Package the upstream rsync testsuite and helper binaries into rsync-ptest package and add a run-ptest wrapper for executing the tests.

backup.test is skipped due to intermittent failures observed on qemux86-64.
The issue has been reported upstream:

https://github.com/RsyncProject/rsync/issues/941

Tested on qemux86-64 using ptest-runner with all
executed tests passing.

---
 .../distro/include/ptest-packagelists.inc     |  1 +
 meta/recipes-devtools/rsync/files/run-ptest   | 17 +++++++
 meta/recipes-devtools/rsync/rsync_3.4.2.bb    | 45 ++++++++++++++++++-
 3 files changed, 62 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/rsync/files/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
index 50b6a8a41e..40af77a697 100644
@@ -95,6 +95,7 @@ PTESTS_FAST = "\
     qemu \
     quilt \
     rpm-sequoia \
+    rsync \
     sed \
     slang \
     utfcpp \
meta/recipes-devtools/rsync/files/run-ptest new file +17 -0
new file mode 100644
index 0000000000..762efd23a3
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+cd $(dirname $0)
+
+# backup.test intermittently fails on qemux86-64
+# (observed ~5 failures in 20 runs).
+# Upstream: https://github.com/RsyncProject/rsync/issues/941
+TESTS=$(cd testsuite && \
+    ls *.test | \
+    sed 's/\.test$//' | \
+    grep -v '^backup$')
+
+python3 runtests.py \
+    --rsync-bin=/usr/bin/rsync \
+    --tooldir=$(pwd) \
+    --srcdir=$(pwd) \
+    $TESTS
meta/recipes-devtools/rsync/rsync_3.4.2.bb +44 -1

62 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw
Quoted 8 lines · nikhil via lists.openembedded.org

Package the upstream rsync testsuite and helper binaries into rsync-ptest package and add a run-ptest wrapper for executing the tests.

backup.test is skipped due to intermittent failures observed on qemux86-64.
The issue has been reported upstream:

Quoted 7 lines

https://github.com/RsyncProject/rsync/issues/941

Tested on qemux86-64 using ptest-runner with all
executed tests passing.

---

Hi Nikhil,

Thanks for your patch.

It looks like the execution is failing on the autouilder, because of a missing python module:

Failed ptests:
{'rsync': 'START: ptest-runner\n'
'2026-06-02T09:44\n'
'Traceback (most recent call last):\n'
' File "/usr/lib/rsync/ptest/runtests.py", line 26, in <module>\n'
' import concurrent.futures\n'
"ModuleNotFoundError: No module named 'concurrent'\n" '\n'
'ERROR: Exit status is 1\n'
'DURATION: 2\n'}

ptests which had no test results:
['rsync']

https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1671
https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3735
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/3754
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/485
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/469

Can you have a look at the issue?

Thanks,
Mathieu

Signature · 3 lines
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com