]> git.ipfire.org Git - thirdparty/rsync.git/commit
testsuite: verify --fuzzy actually selects a basis
authorAndrew Tridgell <andrew@tridgell.net>
Sun, 24 May 2026 22:01:11 +0000 (08:01 +1000)
committerAndrew Tridgell <andrew@tridgell.net>
Mon, 25 May 2026 21:43:00 +0000 (07:43 +1000)
commit034a4f3b1ee987772904aa9c23292de23317c994
tree0fe41dd066b6a379bf923ddc003d7b3252a9d464
parent4f5a5857ce51f2ec0c564f3ed006ed9f7297402b
testsuite: verify --fuzzy actually selects a basis

Both fuzzy tests asserted only that the final file content matched, which a
full transfer that ignored --fuzzy would also satisfy -- so a broken fuzzy
basis selection would pass undetected. Drive rsync directly with --debug=FUZZY
and assert the generator reports the expected basis ("fuzzy basis selected
for <f>: <basis>", generator.c find_fuzzy): rsync2.c for fuzzy, and the
closest-named candidate archive-v1.tar for fuzzy-basis. fuzzy switches from
checkit() to a manual run plus verify_dirs() so the output can be captured.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
testsuite/fuzzy-basis_test.py
testsuite/fuzzy_test.py