fuzzy.test 561 B

12345678910111213141516171819202122232425
  1. #! /bin/sh
  2. # Copyright (C) 2005 by Wayne Davison <wayned@samba.org>
  3. # This program is distributable under the terms of the GNU GPL (see
  4. # COPYING).
  5. # Test rsync handling of the --fuzzy option.
  6. . "$suitedir/rsync.fns"
  7. mkdir "$fromdir"
  8. mkdir "$todir"
  9. cp -p "$srcdir"/rsync.c "$fromdir"/rsync.c
  10. cp_touch "$fromdir"/rsync.c "$todir"/rsync2.c
  11. sleep 1
  12. # Let's do it!
  13. checkit "$RSYNC -avvi --no-whole-file --fuzzy --delete-delay \
  14. '$fromdir/' '$todir/'" "$fromdir" "$todir"
  15. # The script would have aborted on error, so getting here means we've won.
  16. exit 0