From: Wayne Davison Date: Wed, 21 Jul 2004 20:58:32 +0000 (+0000) Subject: Adding a test for the --compare-dest option. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dce70db374f130fe001e0af478e07da3608384b8 Adding a test for the --compare-dest option. --- diff --git a/testsuite/compare-dest.test b/testsuite/compare-dest.test new file mode 100644 index 00000000..28dbda1c --- /dev/null +++ b/testsuite/compare-dest.test @@ -0,0 +1,30 @@ +#! /bin/sh + +# Copyright (C) 2003 by Wayne Davison + +# 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