]> git.ipfire.org Git - thirdparty/rsync.git/commit
testsuite: add content and return-code assertions
authorAndrew Tridgell <andrew@tridgell.net>
Sun, 24 May 2026 22:14:04 +0000 (08:14 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Mon, 25 May 2026 21:43:00 +0000 (07:43 +1000)
commit5b36673d0adf59ca17ef89bae338ca9957aeb427
tree2e9e37754cc9249dc87d108eca2d6e61cb2920e8
parent1687230672ad4ad23f63d76d6d7a2fdc520de6ed
testsuite: add content and return-code assertions

Several tests proved only that rsync exited cleanly (or that a file merely
exists), so a no-op/short transfer would pass:

  protected-regular  compare the dst bytes to the source after --inplace.
  00-hello           re-assert one/two were copied on the RSYNC_OLD_ARGS=1
                     env-var path (the explicit --old-args case already did).
  missing            check the dry-run's exit status in test 1.
  mkpath             compare transferred bytes (not just existence) and add a
                     negative control: a transfer WITHOUT --mkpath must fail
                     and create no intermediate path.
  size-filter        compare each kept file's content to its source.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
testsuite/00-hello_test.py
testsuite/missing_test.py
testsuite/mkpath_test.py
testsuite/protected-regular_test.py
testsuite/size-filter_test.py