3 # Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
5 # This program is distributable under the terms of the GNU GPL see
8 # Test rsync handling of the --compare-dest option.
10 . "$suitedir/rsync.fns"
16 # Build some files/dirs/links to copy
20 # Setup the alt and chk dirs
21 $RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$altdir/"
24 touch "$fromdir/dir/text"
26 $RSYNC -av --exclude=/text "$fromdir/" "$chkdir/"
29 checkit "$RSYNC -avv --no-whole-file --compare-dest=\"$altdir\" \
30 \"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
32 # The script would have aborted on error, so getting here means we've won.