From dc34990b2ef475280b899abead0ef4a809d0175a Mon Sep 17 00:00:00 2001 From: Rodrigo OSORIO Date: Wed, 15 Jan 2025 10:32:48 +0100 Subject: [PATCH] Test send a single directory with -H enabled Ensure this still working after 3.4.0 breakage https://github.com/RsyncProject/rsync/issues/702 --- testsuite/hardlinks.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index af2ea4088..68fd2701c 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -77,5 +77,11 @@ rm -rf "$todir" $RSYNC -aHivv --debug=HLINK5 "$name1" "$todir/" diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed" +# Make sure there's nothing wrong with sending a single directory with -H +# enabled (this has broken in 3.4.0 so far, so we need this test). +rm -rf "$fromdir" "$todir" +makepath "$fromdir/sym" "$todir" +checkit "$RSYNC -aH '$fromdir/sym' '$todir'" "$fromdir" "$todir" + # The script would have aborted on error, so getting here means we've won. exit 0 -- 2.47.2