Skip to contentSkip to conversation

rsync: add ptest support

PATCH In review Nikhil R 2 participants 2 messages Jun 2 – Jun 3

lore
Share & tools
lore

Nikhil R

author
#0 lore raw

PATCH v2 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    | 46 ++++++++++++++++++-
 3 files changed, 63 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 +45 -1

63 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 the new version.

It looks like some tests are failing now:

AssertionError:
Failed ptests:
{'rsync': 'START: ptest-runner\n'

          '2026-06-02T19:14\n'
          '============================================================\n'
          'runtests.py running in /usr/lib/rsync/ptest\n'
          '    rsync_bin=/usr/bin/rsync\n'
          '    srcdir=/usr/lib/rsync/ptest\n'
          '    TLS_ARGS=-l -L\n'
          '    testuser=root\n'
          '    os=Linux qemuarm64 6.18.33-yocto-standard #1 SMP PREEMPT Wed '
          'May 27 22:05:49 UTC 2026 aarch64 GNU/Linux\n'
	  ...
          'cd+++++++++ ./\n'
          'cd+++++++++ A weird)name/\n'
          '>f+++++++++ A weird)name/file\n'
          'tls: stat ./A\\: No such file or directory\n'
          '----- 00-hello log ends\n'
          'FAIL    00-hello\n'

https://autobuilder.yoctoproject.org/valkyrie/#/builders/61/builds/3737
https://autobuilder.yoctoproject.org/valkyrie/#/builders/73/builds/3756
https://autobuilder.yoctoproject.org/valkyrie/#/builders/109/builds/487
https://autobuilder.yoctoproject.org/valkyrie/#/builders/110/builds/471

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