Test --del too.
authorWayne Davison <wayned@samba.org>
Fri, 10 Nov 2006 15:36:15 +0000 (15:36 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 10 Nov 2006 15:36:15 +0000 (15:36 +0000)
testsuite/delete.test

index 00e3614..fdd5966 100644 (file)
 hands_setup
 
 makepath "$chkdir"
+makepath "$todir/extradir"
+makepath "$todir/emptydir/subdir"
+
+echo extra >"$todir"/remove1
+echo extra >"$todir"/remove2
+echo extra >"$todir"/extradir/remove3
+echo extra >"$todir"/emptydir/subdir/remove4
 
 # Create two chk dirs, one with a copy of the source files, and one with
 # what we expect to be left behind by the copy using --remove-sent-files.
 $RSYNC -av "$fromdir/" "$chkdir/copy/"
 $RSYNC -av -f 'exclude,! */' "$fromdir/" "$chkdir/empty/"
 
-checkit "$RSYNC -avv --remove-sent-files \
+checkit "$RSYNC -avv --del --remove-sent-files \
     \"$fromdir/\" \"$todir/\"" "$chkdir/copy" "$todir"
 
 diff -r "$chkdir/empty" "$fromdir"