X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/05118158f4f59a5f512e5bab640f253332a6e181..042dc7360efae7efc883def2792760b7460ef493:/testsuite/hardlinks.test diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index a3391c5e..39e0a170 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -10,7 +10,7 @@ # specify -H, then hard links are detected and recreated as hardlinks # on the other end. -. $srcdir/testsuite/rsync.fns +. "$suitedir/rsync.fns" set -x @@ -31,7 +31,15 @@ ln "$name1" "$name2" || fail "Can't create hardlink" ln "$name2" "$name3" || fail "Can't create hardlink" cp "$name2" "$name4" || fail "Can't copy file" -checkit "$RSYNC -aHvv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +checkit "$RSYNC -aHivv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +rm -rf "$todir" + +# Make sure there's nothing wrong with sending a single file with -H +# enabled (this has had a problem twice now, so we need this). +mkdir "$chkdir" +cp -p "$name1" "$chkdir" +rsync -avvi -f '-! */' "$fromdir/" "$chkdir/" +checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir" # The script would have aborted on error, so getting here means we've won. exit 0