Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
337a1a86
Commit
337a1a86
authored
Apr 23, 2003
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed one part of the exclude-test setup to test the --existing
option. Also tweaked a few comment lines.
parent
b7dc46c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
exclude.test
testsuite/exclude.test
+6
-6
No files found.
testsuite/exclude.test
View file @
337a1a86
...
@@ -54,10 +54,10 @@ cat >"$excl" <<EOF
...
@@ -54,10 +54,10 @@ cat >"$excl" <<EOF
EOF
EOF
# Create the chk dir with what we expect to be excluded
# Create the chk dir with what we expect to be excluded
checkit "$RSYNC -avv \"$fromdir/\" \"$chkdir/\"" "$fromdir" "$chkdir"
checkit "$RSYNC -avv \"$fromdir/\" \"$chkdir/\"" "$fromdir" "$chkdir"
# Ensure that the following removes will tweak the directory times.
sleep 1 # Ensures that the rm commands will tweak the directory times.
sleep 1
# XXX Note modified to work with current broken behavior (to be fixed soon!)
# XXX Note modified to work with current broken behavior (to be fixed soon!)
rm -r "$chkdir"/foo/down
rm -r "$chkdir"/foo/down
...
@@ -67,12 +67,12 @@ rm "$chkdir"/foo/file[235-9]
...
@@ -67,12 +67,12 @@ rm "$chkdir"/foo/file[235-9]
rm -r "$chkdir"/bar # XXX
rm -r "$chkdir"/bar # XXX
rm "$chkdir"/mid/for/foo/extra
rm "$chkdir"/mid/for/foo/extra
# Make sure that the tweaked dirs times migrate back but nothing else.
# Un-tweak the directory times in our first (weak) exclude test (though
$RSYNC -av --include='*/
' --exclude='
*
' "$chkdir/" "$fromdir/"
# it's a good test of the --existing option).
$RSYNC -av --existing --include='*/
' --exclude='
*
'
"
$fromdir
/"
"
$chkdir
/"
# Now, test if rsync excludes the same files
# Now, test if rsync excludes the same files
.
checkit
"
$RSYNC
-avv --exclude-from=
$excl
\"
$fromdir
/
\"
\"
$todir
/
\"
"
"
$chkdir
"
"
$todir
"
checkit
"
$RSYNC
-avv --exclude-from=
$excl
\"
$fromdir
/
\"
\"
$todir
/
\"
"
"
$chkdir
"
"
$todir
"
exit
0
exit
0
# last [] may have failed but if we get here then we'
ve
won
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment