Adding a test for the --compare-dest option.
[rsync/rsync.git] / testsuite / compare-dest.test
... / ...
CommitLineData
1#! /bin/sh
2
3# Copyright (C) 2003 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 exclude/include directives.
9
10# Test some of the more obscure wildcard handling of exclude/include
11# processing.
12
13. "$suitedir/rsync.fns"
14
15set -x
16
17altdir="$tmpdir/alt"
18
19# Build some files/dirs/links to copy
20
21hands_setup
22
23# Setup the chk and alt dirs
24$RSYNC -av --exclude=text "$fromdir/" "$chkdir/"
25$RSYNC -av --include=text --include='*/' --exclude='*' "$fromdir/" "$altdir/"
26
27checkit "$RSYNC -avv --compare-dest=\"$altdir\" \"$fromdir/\" \"$todir/\"" "$chkdir" "$todir"
28
29# The script would have aborted on error, so getting here means we've won.
30exit 0