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