Use $suitedir to find rsync.fns.
authorWayne Davison <wayned@samba.org>
Tue, 18 May 2004 00:41:40 +0000 (00:41 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 18 May 2004 00:41:40 +0000 (00:41 +0000)
testsuite/hardlinks.test
testsuite/symlink-ignore.test
testsuite/trimslash.test
testsuite/unsafe-byname.test
testsuite/wildmatch.test

index a3391c5..31005e7 100644 (file)
@@ -10,7 +10,7 @@
 # specify -H, then hard links are detected and recreated as hardlinks
 # on the other end.
 
 # specify -H, then hard links are detected and recreated as hardlinks
 # on the other end.
 
-. $srcdir/testsuite/rsync.fns
+. "$suitedir/rsync.fns"
 
 set -x
 
 
 set -x
 
index 3f35021..42ce2d3 100644 (file)
@@ -8,7 +8,7 @@
 # Test rsync's somewhat over-featured symlink control: the default
 # behaviour is that symlinks should not be copied at all.
 
 # 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
 
 
 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 $?"
 
 # 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
 
 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
 
 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
 then
     test_fail "absolute symlink was copied"
 fi
index 4eac9ce..56e79cc 100644 (file)
@@ -7,7 +7,7 @@
 
 # Test tiny function to trim trailing slashes.
 
 
 # Test tiny function to trim trailing slashes.
 
-. $srcdir/testsuite/rsync.fns
+. "$suitedir/rsync.fns"
 
 set -x
 
 
 set -x
 
index a4f5370..61e0e24 100644 (file)
@@ -4,7 +4,7 @@
 
 # Call directly into unsafe_symlink and test its handling of various filenames
 
 
 # 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
 
 test_unsafe() {
     # $1 is the target of a symlink
index 53123f4..71e0ff0 100644 (file)
@@ -7,7 +7,7 @@
 
 # Test the wildmatch functionality
 
 
 # Test the wildmatch functionality
 
-. $srcdir/testsuite/rsync.fns
+. "$suitedir/rsync.fns"
 
 set -x
 
 
 set -x