From ee887d98f6f6656e24cd21527307804d932faa29 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 23 Apr 2005 18:20:47 +0000 Subject: [PATCH] Two more tests: - Update the hard-linked cluster and copy over the old versions. - Add a new hard-linked item down in a new subdir to make sure that the new file doesn't get handled before the subdir gets created. --- testsuite/hardlinks.test | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/testsuite/hardlinks.test b/testsuite/hardlinks.test index d5e4db93..2f5399eb 100644 --- a/testsuite/hardlinks.test +++ b/testsuite/hardlinks.test @@ -30,12 +30,23 @@ echo "This is the file" > "$name1" ln "$name1" "$name2" || fail "Can't create hardlink" ln "$name2" "$name3" || fail "Can't create hardlink" cp "$name2" "$name4" || fail "Can't copy file" +cat $srcdir/*.c >"$fromdir/text" + +checkit "$RSYNC -aHivv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" + +echo "extra extra" >>"$todir/name1" + +checkit "$RSYNC -aHivv --no-whole-file \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" + +mkdir "$fromdir/subdir" +ln "$name1" "$fromdir/subdir/new-file" +rm "$todir/text" 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 broken twice so far, so we need this test). +rm -rf "$todir" $RSYNC -aHivv "$name1" "$todir/" diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed" -- 2.34.1