summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/acl2
-rwxr-xr-xtests/mv/atomic2
-rwxr-xr-xtests/mv/atomic22
-rwxr-xr-xtests/mv/backup-dir2
-rwxr-xr-xtests/mv/backup-is-src2
-rwxr-xr-xtests/mv/childproof2
-rwxr-xr-xtests/mv/diag2
-rwxr-xr-xtests/mv/dir-file2
-rwxr-xr-xtests/mv/dir2dir2
-rwxr-xr-xtests/mv/dup-source2
-rwxr-xr-xtests/mv/force2
-rwxr-xr-xtests/mv/hard-22
-rwxr-xr-xtests/mv/hard-32
-rwxr-xr-xtests/mv/hard-42
-rwxr-xr-xtests/mv/hard-link-12
-rwxr-xr-xtests/mv/hard-verbose2
-rwxr-xr-xtests/mv/i-22
-rwxr-xr-xtests/mv/i-34
-rwxr-xr-xtests/mv/i-42
-rwxr-xr-xtests/mv/i-52
-rwxr-xr-xtests/mv/i-link-no2
-rwxr-xr-xtests/mv/into-self2
-rwxr-xr-xtests/mv/into-self-22
-rwxr-xr-xtests/mv/into-self-32
-rwxr-xr-xtests/mv/into-self-42
-rwxr-xr-xtests/mv/leak-fd2
-rwxr-xr-xtests/mv/mv-special-12
-rwxr-xr-xtests/mv/no-target-dir2
-rwxr-xr-xtests/mv/part-fail2
-rwxr-xr-xtests/mv/part-hardlink2
-rwxr-xr-xtests/mv/part-rename2
-rwxr-xr-xtests/mv/part-symlink2
-rwxr-xr-xtests/mv/partition-perm2
-rwxr-xr-xtests/mv/perm-12
-rwxr-xr-xtests/mv/reply-no2
-rwxr-xr-xtests/mv/sticky-to-xpart2
-rwxr-xr-xtests/mv/to-symlink2
-rwxr-xr-xtests/mv/trailing-slash2
-rwxr-xr-xtests/mv/update2
39 files changed, 40 insertions, 40 deletions
diff --git a/tests/mv/acl b/tests/mv/acl
index 536391a68..e9121a59b 100755
--- a/tests/mv/acl
+++ b/tests/mv/acl
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
setfacl --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_acl_
# Skip this test if cp was built without ACL support:
diff --git a/tests/mv/atomic b/tests/mv/atomic
index e0e8adce1..b360e13eb 100755
--- a/tests/mv/atomic
+++ b/tests/mv/atomic
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_strace_ unlink
# Before the fix, mv would unnecessarily unlink the destination symlink:
diff --git a/tests/mv/atomic2 b/tests/mv/atomic2
index 4d2b4fc08..796d9c499 100755
--- a/tests/mv/atomic2
+++ b/tests/mv/atomic2
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_strace_ unlink
# Before the fix, mv would unnecessarily unlink the destination symlink:
diff --git a/tests/mv/backup-dir b/tests/mv/backup-dir
index e3b42fbbb..28876a007 100755
--- a/tests/mv/backup-dir
+++ b/tests/mv/backup-dir
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir A B || framework_failure
touch X Y || framework_failure
diff --git a/tests/mv/backup-is-src b/tests/mv/backup-is-src
index 3c41ecba8..eee4fd9d8 100755
--- a/tests/mv/backup-is-src
+++ b/tests/mv/backup-is-src
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/childproof b/tests/mv/childproof
index 1fa77dc01..dffdf40c1 100755
--- a/tests/mv/childproof
+++ b/tests/mv/childproof
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
ln --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir a b c || framework_failure
diff --git a/tests/mv/diag b/tests/mv/diag
index 413da6fa6..ef25d8092 100755
--- a/tests/mv/diag
+++ b/tests/mv/diag
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
fi
# Make sure we get English translations.
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
touch f1 || framework_failure
touch f2 || framework_failure
diff --git a/tests/mv/dir-file b/tests/mv/dir-file
index 589944191..38217e0f3 100755
--- a/tests/mv/dir-file
+++ b/tests/mv/dir-file
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p dir/file || framework_failure
> file || framework_failure
diff --git a/tests/mv/dir2dir b/tests/mv/dir2dir
index 76622dc0a..9a038814a 100755
--- a/tests/mv/dir2dir
+++ b/tests/mv/dir2dir
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p a/t b/t || framework_failure
touch a/t/f || framework_failure
diff --git a/tests/mv/dup-source b/tests/mv/dup-source
index edb539733..d7b56e854 100755
--- a/tests/mv/dup-source
+++ b/tests/mv/dup-source
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
fail=0
diff --git a/tests/mv/force b/tests/mv/force
index 05d7f0446..f2eaf918e 100755
--- a/tests/mv/force
+++ b/tests/mv/force
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
ff=mvforce
ff2=mvforce2
diff --git a/tests/mv/hard-2 b/tests/mv/hard-2
index 7813f8a95..aaf9349af 100755
--- a/tests/mv/hard-2
+++ b/tests/mv/hard-2
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
cp --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir dst || framework_failure
diff --git a/tests/mv/hard-3 b/tests/mv/hard-3
index 359a74dba..a2fa4e759 100755
--- a/tests/mv/hard-3
+++ b/tests/mv/hard-3
@@ -35,7 +35,7 @@ if test "$VERBOSE" = yes; then
cp --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir -p x dst/x || framework_failure
diff --git a/tests/mv/hard-4 b/tests/mv/hard-4
index b082c1b21..881cab518 100755
--- a/tests/mv/hard-4
+++ b/tests/mv/hard-4
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
touch a || framework_failure
ln a b || framework_failure
diff --git a/tests/mv/hard-link-1 b/tests/mv/hard-link-1
index fd586aeca..864fd0318 100755
--- a/tests/mv/hard-link-1
+++ b/tests/mv/hard-link-1
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/hard-verbose b/tests/mv/hard-verbose
index 3a2456633..0b4a12903 100755
--- a/tests/mv/hard-verbose
+++ b/tests/mv/hard-verbose
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
touch x || framework_failure
ln x y || framework_failure
diff --git a/tests/mv/i-2 b/tests/mv/i-2
index 4153dc98f..1cc139497 100755
--- a/tests/mv/i-2
+++ b/tests/mv/i-2
@@ -26,7 +26,7 @@ fi
# Make sure we get English translations.
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
for i in a b c d e f g h; do
diff --git a/tests/mv/i-3 b/tests/mv/i-3
index 3052526e9..eed3c8b66 100755
--- a/tests/mv/i-3
+++ b/tests/mv/i-3
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/input-tty
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/input-tty
+. $srcdir/test-lib.sh
skip_if_root_
touch f g h i || framework_failure
diff --git a/tests/mv/i-4 b/tests/mv/i-4
index e1a2c1cae..5de59b43b 100755
--- a/tests/mv/i-4
+++ b/tests/mv/i-4
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
for i in a b; do
echo $i > $i || framework_failure
diff --git a/tests/mv/i-5 b/tests/mv/i-5
index 3b2e27d15..da9716888 100755
--- a/tests/mv/i-5
+++ b/tests/mv/i-5
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir a || framework_failure
touch b || framework_failure
diff --git a/tests/mv/i-link-no b/tests/mv/i-link-no
index 2eddf8513..b32287259 100755
--- a/tests/mv/i-link-no
+++ b/tests/mv/i-link-no
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir a b || framework_failure
echo foo > a/foo || framework_failure
diff --git a/tests/mv/into-self b/tests/mv/into-self
index e9273d16a..915194f60 100755
--- a/tests/mv/into-self
+++ b/tests/mv/into-self
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
dir=toself-dir
file=toself-file
diff --git a/tests/mv/into-self-2 b/tests/mv/into-self-2
index ffc97c316..13e996a22 100755
--- a/tests/mv/into-self-2
+++ b/tests/mv/into-self-2
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/into-self-3 b/tests/mv/into-self-3
index 3235b7f95..3b967322f 100755
--- a/tests/mv/into-self-3
+++ b/tests/mv/into-self-3
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
dir1=is3-dir1
dir2=is3-dir2
diff --git a/tests/mv/into-self-4 b/tests/mv/into-self-4
index 39e053d61..9f001139f 100755
--- a/tests/mv/into-self-4
+++ b/tests/mv/into-self-4
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
touch file || framework_failure
ln -s file s || framework_failure
diff --git a/tests/mv/leak-fd b/tests/mv/leak-fd
index 127a826ab..1141b7303 100755
--- a/tests/mv/leak-fd
+++ b/tests/mv/leak-fd
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/mv-special-1 b/tests/mv/mv-special-1
index ff4869fc2..f10dc10ef 100755
--- a/tests/mv/mv-special-1
+++ b/tests/mv/mv-special-1
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/no-target-dir b/tests/mv/no-target-dir
index ba9a6b0a9..7df1fb99f 100755
--- a/tests/mv/no-target-dir
+++ b/tests/mv/no-target-dir
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p d/sub empty src d2/sub e2 || framework_failure
touch f || framework_failure
diff --git a/tests/mv/part-fail b/tests/mv/part-fail
index fdbab1d7d..60c421031 100755
--- a/tests/mv/part-fail
+++ b/tests/mv/part-fail
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/part-hardlink b/tests/mv/part-hardlink
index 8f83fcf27..3eaa083cd 100755
--- a/tests/mv/part-hardlink
+++ b/tests/mv/part-hardlink
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/part-rename b/tests/mv/part-rename
index 009c6d443..8bff9915f 100755
--- a/tests/mv/part-rename
+++ b/tests/mv/part-rename
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index 68c46f9ea..926252493 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
cp --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/partition-perm b/tests/mv/partition-perm
index a8ca44c8e..03f169ebb 100755
--- a/tests/mv/partition-perm
+++ b/tests/mv/partition-perm
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/perm-1 b/tests/mv/perm-1
index 8a359ff71..95bbccb8d 100755
--- a/tests/mv/perm-1
+++ b/tests/mv/perm-1
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir -p no-write/dir || framework_failure
diff --git a/tests/mv/reply-no b/tests/mv/reply-no
index e3947724f..42967c866 100755
--- a/tests/mv/reply-no
+++ b/tests/mv/reply-no
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
touch a b || framework_failure
diff --git a/tests/mv/sticky-to-xpart b/tests/mv/sticky-to-xpart
index 38f383692..14cb76211 100755
--- a/tests/mv/sticky-to-xpart
+++ b/tests/mv/sticky-to-xpart
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_root_
cleanup_() { rm -rf "$other_partition_tmpdir"; }
diff --git a/tests/mv/to-symlink b/tests/mv/to-symlink
index 12f1447d1..560d63de9 100755
--- a/tests/mv/to-symlink
+++ b/tests/mv/to-symlink
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/trailing-slash b/tests/mv/trailing-slash
index 0a2a361b0..eea982f3e 100755
--- a/tests/mv/trailing-slash
+++ b/tests/mv/trailing-slash
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir foo || framework_failure
diff --git a/tests/mv/update b/tests/mv/update
index 7edb99a75..15e6fa762 100755
--- a/tests/mv/update
+++ b/tests/mv/update
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
mv --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
echo old > old || framework_failure
touch -d yesterday old || framework_failure