X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a3e1363aaa4ace8a61b39240642c31c9858c2384..71daa07fb1c791c0f5eba3fc1b615df3a46441fc:/testsuite/exclude.test diff --git a/testsuite/exclude.test b/testsuite/exclude.test index da4c19e3..2fef0922 100644 --- a/testsuite/exclude.test +++ b/testsuite/exclude.test @@ -2,26 +2,28 @@ # Copyright (C) 2003, 2004, 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 exclude/include directives. +# Test rsync handling of exclude/include directives. # Test some of the more obscure wildcard handling of exclude/include # processing. . "$suitedir/rsync.fns" -HOME="$scratchdir" CVSIGNORE='*.junk' -export HOME CVSIGNORE +export CVSIGNORE # Build some files/dirs/links to copy makepath "$fromdir/foo/down/to/you" +makepath "$fromdir/foo/sub" makepath "$fromdir/bar/down/to/foo/too" makepath "$fromdir/bar/down/to/bar/baz" makepath "$fromdir/mid/for/foo/and/that/is/who" +makepath "$fromdir/new/keep/this" +makepath "$fromdir/new/lose/this" cat >"$fromdir/.filt" <"$fromdir/foo/file1" +echo filtered-1 >"$fromdir/foo/file1" echo removed >"$fromdir/foo/file2" echo cvsout >"$fromdir/foo/file2.old" cat >"$fromdir/foo/.filt" <"$fromdir/foo/sub/file1" cat >"$fromdir/bar/.filt" <"$fromdir/mid/for/one-in-one-out" echo expunged >"$fromdir/mid/for/foo/extra" echo retained >"$fromdir/mid/for/foo/keep" -ln -s too "$fromdir/bar/down/to/foo/sym" # Setup our test exclude/include files. @@ -85,8 +87,12 @@ cat >"$excl" <"$scratchdir/.cvsignore" <