-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a test for the --compare-dest option.
- Loading branch information
Wayne Davison
committed
Jul 21, 2004
1 parent
2adbcdc
commit dce70db
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#! /bin/sh | ||
|
||
# Copyright (C) 2003 by Wayne Davison <wayned@samba.org> | ||
|
||
# This program is distributable under the terms of the GNU GPL see | ||
# COPYING). | ||
|
||
# Test rsync handling of exclude/include directives. | ||
|
||
# Test some of the more obscure wildcard handling of exclude/include | ||
# processing. | ||
|
||
. "$suitedir/rsync.fns" | ||
|
||
set -x | ||
|
||
altdir="$tmpdir/alt" | ||
|
||
# Build some files/dirs/links to copy | ||
|
||
hands_setup | ||
|
||
# Setup the chk and alt dirs | ||
$RSYNC -av --exclude=text "$fromdir/" "$chkdir/" | ||
$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$altdir/" | ||
|
||
checkit "$RSYNC -avv --compare-dest=\"$altdir\" \"$fromdir/\" \"$todir/\"" "$chkdir" "$todir" | ||
|
||
# The script would have aborted on error, so getting here means we've won. | ||
exit 0 |