Decided I like "set -x" after all.
[rsync/rsync.git] / testsuite / delete.test
CommitLineData
0254bd46
WD
1#! /bin/sh
2
3# Copyright (C) 2005 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 various delete directives.
9
10. "$suitedir/rsync.fns"
11
13725744
WD
12set -x
13
0254bd46
WD
14hands_setup
15
16makepath "$chkdir"
17
18# Create two chk dirs, one with a copy of the source files, and one with
19# what we expect to be left behind by the copy using --remove-sent-files.
20$RSYNC -av "$fromdir/" "$chkdir/copy/"
21$RSYNC -av -f 'exclude,! */' "$fromdir/" "$chkdir/empty/"
22
23checkit "$RSYNC -avv --remove-sent-files \
24 \"$fromdir/\" \"$todir/\"" "$chkdir/copy" "$todir"
25
26diff -r "$chkdir/empty" "$fromdir"
27
28# The script would have aborted on error, so getting here means we've won.
29exit 0