mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-27 16:18:16 -04:00
Use $suitedir to find rsync.fns.
This commit is contained in:
1 parent
7892e5ac77
commit
e920830ec5
5 files changed
+10
-10
No files matched your search
@@ -10,7 +10,7 @@
|
||||
# specify -H, then hard links are detected and recreated as hardlinks
|
||||
# on the other end.
|
||||
|
||||
. $srcdir/testsuite/rsync.fns
|
||||
. "$suitedir/rsync.fns"
|
||||
|
||||
set -x
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
# Test rsync's somewhat over-featured symlink control: the default
|
||||
# behaviour is that symlinks should not be copied at all.
|
||||
|
||||
. $srcdir/testsuite/rsync.fns
|
||||
. "$suitedir/rsync.fns"
|
||||
|
||||
set -x
|
||||
|
||||
@@ -18,19 +18,19 @@ build_symlinks || test_fail "failed to build symlinks"
|
||||
# should be missing.
|
||||
$RSYNC -r "$fromdir/" "$todir" || test_fail "$RSYNC returned $?"
|
||||
|
||||
[ -f "${todir}/referent" ] || test_fail "referent was not copied"
|
||||
[ -d "${todir}/from" ] && test_fail "extra level of directories"
|
||||
if is_a_link "${todir}/dangling"
|
||||
[ -f "$todir/referent" ] || test_fail "referent was not copied"
|
||||
[ -d "$todir/from" ] && test_fail "extra level of directories"
|
||||
if is_a_link "$todir/dangling"
|
||||
then
|
||||
test_fail "dangling symlink was copied"
|
||||
fi
|
||||
|
||||
if is_a_link "${todir}/relative"
|
||||
if is_a_link "$todir/relative"
|
||||
then
|
||||
test_fail "relative symlink was copied"
|
||||
fi
|
||||
|
||||
if is_a_link "${todir}/absolute"
|
||||
if is_a_link "$todir/absolute"
|
||||
then
|
||||
test_fail "absolute symlink was copied"
|
||||
fi
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
# Test tiny function to trim trailing slashes.
|
||||
|
||||
. $srcdir/testsuite/rsync.fns
|
||||
. "$suitedir/rsync.fns"
|
||||
|
||||
set -x
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
# Call directly into unsafe_symlink and test its handling of various filenames
|
||||
|
||||
. $srcdir/testsuite/rsync.fns
|
||||
. "$suitedir/rsync.fns"
|
||||
|
||||
test_unsafe() {
|
||||
# $1 is the target of a symlink
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
# Test the wildmatch functionality
|
||||
|
||||
. $srcdir/testsuite/rsync.fns
|
||||
. "$suitedir/rsync.fns"
|
||||
|
||||
set -x
|
||||
|
||||
|
||||
Reference in new issue
Block a user