X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/766526c7915ea42c85d1e3fc044b9f17f591c45a..7d8219327b7d79406869cd2462eaa75e31c26d2c:/testsuite/duplicates.test diff --git a/testsuite/duplicates.test b/testsuite/duplicates.test index 9648bd8e..6bbcdd35 100644 --- a/testsuite/duplicates.test +++ b/testsuite/duplicates.test @@ -21,6 +21,9 @@ . $srcdir/testsuite/rsync.fns +echo "SKIP THIS FOR NOW; It's a known bug" +exit 77 + set -x # Build some hardlinks @@ -28,15 +31,26 @@ set -x fromdir="$scratchdir/from" todir="$scratchdir/to" -# TODO: Need to test whether hardlinks are possible on this OS/filesystem - mkdir "$fromdir" name1="$fromdir/name1" -name1="$fromdir/name2" +name2="$fromdir/name2" echo "This is the file" > "$name1" ln -s "$name1" "$name2" || fail "can't create symlink" -checkit "rsync -avv \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" +outfile="$scratchdir/rsync.out" + +checkit "rsync -avv \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir" \ + | tee "$outfile" + +# Make sure each file was only copied once... +if [ `grep -c '^name1$' "$outfile"` != 1 ] +then + test_xfail "name1 was not copied exactly once" +fi +if [ `grep -c '^name2$' "$outfile"` != 1 ] +then + test_xfail "name2 was not copied exactly once" +fi exit 0 # last [] may have failed but if we get here then we've won