X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/8a3d4658eb6beef06c172702b29390c04405f618..043ef55b227146d2482859c66573b3229042ee75:/testsuite/delete.test diff --git a/testsuite/delete.test b/testsuite/delete.test index 99791d5a..208ff456 100644 --- a/testsuite/delete.test +++ b/testsuite/delete.test @@ -2,7 +2,7 @@ # Copyright (C) 2005 by Wayne Davison -# This program is distributable under the terms of the GNU GPL see +# This program is distributable under the terms of the GNU GPL (see # COPYING). # Test rsync handling of various delete directives. @@ -11,17 +11,36 @@ hands_setup -makepath "$chkdir" +makepath "$chkdir" "$todir/extradir" "$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. +# what we expect to be left behind by the copy using --remove-source-files. $RSYNC -av "$fromdir/" "$chkdir/copy/" $RSYNC -av -f 'exclude,! */' "$fromdir/" "$chkdir/empty/" -checkit "$RSYNC -avv --remove-sent-files \ +checkit "$RSYNC -avv --del --remove-source-files \ \"$fromdir/\" \"$todir/\"" "$chkdir/copy" "$todir" diff -r "$chkdir/empty" "$fromdir" +# Make sure that "P" but not "-" per-dir merge-file filters take effect with +# --delete-excluded. +cat >"$todir/filters" <