X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/c8d19f90a679343c92295e364e57fb3375c0a8e6..48ffc11e9cd35d57f518a5cac8e56d79d424ca04:/testsuite/delete.test diff --git a/testsuite/delete.test b/testsuite/delete.test index 93fb60a3..bab92a12 100644 --- a/testsuite/delete.test +++ b/testsuite/delete.test @@ -12,16 +12,37 @@ 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. +# 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" <