From: Rodrigo OSORIO Date: Wed, 15 Jan 2025 09:32:48 +0000 (+0100) Subject: Test send a single directory with -H enabled X-Git-Tag: v3.4.1~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dc34990b2ef475280b899abead0ef4a809d0175a;p=thirdparty%2Frsync.git Test send a single directory with -H enabled Ensure this still working after 3.4.0 breakage https://github.com/RsyncProject/rsync/issues/702 --- diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index af2ea408..68fd2701 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