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
3cd2af41
Commit
3cd2af41
authored
Dec 14, 2001
by
Martin Pool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test that when none of -l, -L, -a are specified symlinks are not
copied at all.
parent
b214eda4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
rsync.fns
testsuite/rsync.fns
+15
-0
symlink-ignore.test
testsuite/symlink-ignore.test
+25
-0
No files found.
testsuite/rsync.fns
View file @
3cd2af41
...
...
@@ -210,5 +210,20 @@ EOF
}
build_symlinks
()
{
fromdir
=
"
$scratchdir
/from"
todir
=
"
$scratchdir
/to"
mkdir
"
$fromdir
"
date
>
"
$fromdir
/referent"
ln
-s
referent
"
$fromdir
/relative"
ln
-s
"
$fromdir
/referent"
"
$fromdir
/absolute"
ln
-s
nonexistent
"
$fromdir
/dangling"
}
test_fail
()
{
echo
"
$@
"
>
&2
exit
1
}
# be reproducible
umask
077
\ No newline at end of file
testsuite/symlink-ignore.test
0 → 100644
View file @
3cd2af41
#! /bin/sh
# Copyright (C) 2001 by Martin Pool <mbp@samba.org>
# This program is distributable under the terms of the GNU GPL (see
# COPYING).
# Test rsync's somewhat over-featured symlink control: the default
# behaviour is that symlinks should not be copied at all.
.
$srcdir
/
testsuite
/
rsync
.
fns
build_symlinks
# Copy recursively, but without -l or -L or -a, and all the symlinks
# should be missing.
"
$rsync_bin
"
-
r
"
$fromdir
/"
"
$todir
"
||
test_fail
"rsync returned $?"
[
-
e
$todir
/
referent
]
||
test_fail
"referent was not copied"
[
-
e
$todir
/
from
]
&&
test_fail
"extra level of directories"
[
-
e
$todir
/
dangling
]
&&
test_fail
"dangling symlink was copied"
[
-
e
$todir
/
relative
]
&&
test_fail
"relative symlink was copied"
[
-
e
$todir
/
absolute
]
&&
test_fail
"absolute symlink was copied"
true
# cool
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