Annotation of embedaddon/rsync/testsuite/compare-dest.test, revision 1.1.1.1

1.1       misho       1: #! /bin/sh
                      2: 
                      3: # Copyright (C) 2004 by Wayne Davison <wayned@samba.org>
                      4: 
                      5: # This program is distributable under the terms of the GNU GPL (see
                      6: # COPYING).
                      7: 
                      8: # Test rsync handling of the --compare-dest option.
                      9: 
                     10: . "$suitedir/rsync.fns"
                     11: 
                     12: alt1dir="$tmpdir/alt1"
                     13: alt2dir="$tmpdir/alt2"
                     14: 
                     15: # Build some files/dirs/links to copy
                     16: 
                     17: hands_setup
                     18: 
                     19: # Setup the alt and chk dirs
                     20: $RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$alt1dir/"
                     21: $RSYNC -av --include=etc-ltr-list --include='*/' --exclude='*' "$fromdir/" "$alt2dir/"
                     22: 
                     23: sleep 1
                     24: touch "$fromdir/dir/text"
                     25: 
                     26: $RSYNC -av --exclude=/text --exclude=etc-ltr-list "$fromdir/" "$chkdir/"
                     27: 
                     28: # Let's do it!
                     29: checkit "$RSYNC -avv --no-whole-file \
                     30:     --compare-dest='$alt1dir' --compare-dest='$alt2dir' \
                     31:     '$fromdir/' '$todir/'" "$chkdir" "$todir"
                     32: checkit "$RSYNC -avv --no-whole-file \
                     33:     --copy-dest='$alt1dir' --copy-dest='$alt2dir' \
                     34:     '$fromdir/' '$todir/'" "$fromdir" "$todir"
                     35: 
                     36: # The script would have aborted on error, so getting here means we've won.
                     37: exit 0

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>