summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-10-24 11:42:29 -0700
committerWayne Davison <wayned@samba.org>2009-10-24 11:42:29 -0700
commit217066780233f05c64bc75b3b0cc7f8512adcf9f (patch)
tree9ba708199e3629fb895faf4dd7383883bca33d5c /testsuite
parent705132bceed54d18fb38aefa3f976b4c402cb7b8 (diff)
downloadrsync-217066780233f05c64bc75b3b0cc7f8512adcf9f.tar.gz
Make use of $suitedir.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/acls.test2
-rw-r--r--testsuite/chmod-option.test2
-rw-r--r--testsuite/default-acls.test2
-rw-r--r--testsuite/dir-sgid.test2
-rw-r--r--testsuite/executability.test2
-rw-r--r--testsuite/missing.test2
-rw-r--r--testsuite/rsync.fns3
-rw-r--r--testsuite/xattrs.test2
8 files changed, 8 insertions, 9 deletions
diff --git a/testsuite/acls.test b/testsuite/acls.test
index fe827ba7..40490a67 100644
--- a/testsuite/acls.test
+++ b/testsuite/acls.test
@@ -5,7 +5,7 @@
# Test that rsync handles basic ACL preservation.
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
diff --git a/testsuite/chmod-option.test b/testsuite/chmod-option.test
index 461690e0..81fd38c7 100644
--- a/testsuite/chmod-option.test
+++ b/testsuite/chmod-option.test
@@ -7,7 +7,7 @@
# Test that the --chmod option functions correctly.
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
# Build some files
diff --git a/testsuite/default-acls.test b/testsuite/default-acls.test
index 42ed253a..eb41a6ff 100644
--- a/testsuite/default-acls.test
+++ b/testsuite/default-acls.test
@@ -5,7 +5,7 @@
# Test that rsync obeys default ACLs. -- Matt McCutchen
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
$RSYNC --version | grep ", ACLs" >/dev/null || test_skipped "Rsync is configured without ACL support"
diff --git a/testsuite/dir-sgid.test b/testsuite/dir-sgid.test
index 8109b0ce..bbd86a61 100644
--- a/testsuite/dir-sgid.test
+++ b/testsuite/dir-sgid.test
@@ -5,7 +5,7 @@
# Test that rsync obeys directory setgid. -- Matt McCutchen
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
umask 077
diff --git a/testsuite/executability.test b/testsuite/executability.test
index b11e6722..05a64e48 100644
--- a/testsuite/executability.test
+++ b/testsuite/executability.test
@@ -5,7 +5,7 @@
# Test the --executability or -E option. -- Matt McCutchen
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
# Put some files in the From directory
mkdir "$fromdir"
diff --git a/testsuite/missing.test b/testsuite/missing.test
index 82eaeb3c..008c0f4f 100644
--- a/testsuite/missing.test
+++ b/testsuite/missing.test
@@ -5,7 +5,7 @@
# Test three bugs fixed by my redoing of the missing_below logic.
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
makepath "$fromdir/subdir" "$todir"
echo data >"$fromdir/subdir/file"
diff --git a/testsuite/rsync.fns b/testsuite/rsync.fns
index b26aee32..19838776 100644
--- a/testsuite/rsync.fns
+++ b/testsuite/rsync.fns
@@ -17,7 +17,6 @@
# License along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
tmpdir="$scratchdir"
fromdir="$tmpdir/from"
todir="$tmpdir/to"
@@ -31,7 +30,7 @@ dots='.....' # trailing dots after changes
# Berkley's nice.
PATH="$PATH:/usr/ucb"
-if diff -u "$srcdir/testsuite/rsync.fns" "$srcdir/testsuite/rsync.fns" >/dev/null 2>&1; then
+if diff -u "$suitedir/rsync.fns" "$suitedir/rsync.fns" >/dev/null 2>&1; then
diffopt="-u"
else
diffopt="-c"
diff --git a/testsuite/xattrs.test b/testsuite/xattrs.test
index 8b40eec3..76b90993 100644
--- a/testsuite/xattrs.test
+++ b/testsuite/xattrs.test
@@ -5,7 +5,7 @@
# Test that rsync handles basic xattr preservation.
-. $srcdir/testsuite/rsync.fns
+. $suitedir/rsync.fns
$RSYNC --version | grep ", xattrs" >/dev/null || test_skipped "Rsync is configured without xattr support"