summaryrefslogtreecommitdiff
path: root/tests/du
diff options
context:
space:
mode:
Diffstat (limited to 'tests/du')
-rwxr-xr-xtests/du/2g2
-rwxr-xr-xtests/du/8gb2
-rwxr-xr-xtests/du/basic2
-rwxr-xr-xtests/du/deref2
-rwxr-xr-xtests/du/deref-args2
-rwxr-xr-xtests/du/exclude2
-rwxr-xr-xtests/du/fd-leak2
-rwxr-xr-xtests/du/hard-link2
-rwxr-xr-xtests/du/inacc-dest2
-rwxr-xr-xtests/du/inacc-dir2
-rwxr-xr-xtests/du/inaccessible-cwd2
-rwxr-xr-xtests/du/long-from-unreadable2
-rwxr-xr-xtests/du/long-sloop2
-rwxr-xr-xtests/du/no-deref2
-rwxr-xr-xtests/du/no-x2
-rwxr-xr-xtests/du/one-file-system2
-rwxr-xr-xtests/du/restore-wd2
-rwxr-xr-xtests/du/slash2
-rwxr-xr-xtests/du/slink2
-rwxr-xr-xtests/du/trailing-slash2
-rwxr-xr-xtests/du/two-args2
21 files changed, 21 insertions, 21 deletions
diff --git a/tests/du/2g b/tests/du/2g
index 8479524c0..6a7463c02 100755
--- a/tests/du/2g
+++ b/tests/du/2g
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Creating a 2GB file counts as `very expensive'.
very_expensive_
diff --git a/tests/du/8gb b/tests/du/8gb
index 66f02e78b..49989d1f2 100755
--- a/tests/du/8gb
+++ b/tests/du/8gb
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_sparse_support_
dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
diff --git a/tests/du/basic b/tests/du/basic
index 3a378cedd..837ec92d5 100755
--- a/tests/du/basic
+++ b/tests/du/basic
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p a/b d d/sub || framework_failure
diff --git a/tests/du/deref b/tests/du/deref
index 47f444921..facdf426b 100755
--- a/tests/du/deref
+++ b/tests/du/deref
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p a/sub || framework_failure
ln -s a/sub slink || framework_failure
diff --git a/tests/du/deref-args b/tests/du/deref-args
index c0281d5a5..02bdf7d55 100755
--- a/tests/du/deref-args
+++ b/tests/du/deref-args
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p dir/a || framework_failure
ln -s dir slink || framework_failure
diff --git a/tests/du/exclude b/tests/du/exclude
index 73a0c5bde..1e32b60f3 100755
--- a/tests/du/exclude
+++ b/tests/du/exclude
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p a/b/c a/x/y a/u/v || framework_failure
diff --git a/tests/du/fd-leak b/tests/du/fd-leak
index 73fe4f8e7..14df938d3 100755
--- a/tests/du/fd-leak
+++ b/tests/du/fd-leak
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Call this an expensive test. It's not that expensive, but command line
# limitations might induce failure on some losing systems.
diff --git a/tests/du/hard-link b/tests/du/hard-link
index d0ca8551e..f4fdf2616 100755
--- a/tests/du/hard-link
+++ b/tests/du/hard-link
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p dir/sub
( cd dir && { echo non-empty > f1; ln f1 f2; echo non-empty > sub/F; } )
diff --git a/tests/du/inacc-dest b/tests/du/inacc-dest
index 589328d66..b0ea4d677 100755
--- a/tests/du/inacc-dest
+++ b/tests/du/inacc-dest
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
diff --git a/tests/du/inacc-dir b/tests/du/inacc-dir
index 919406a07..3b5fa5088 100755
--- a/tests/du/inacc-dir
+++ b/tests/du/inacc-dir
@@ -20,7 +20,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir -p a/sub || framework_failure
diff --git a/tests/du/inaccessible-cwd b/tests/du/inaccessible-cwd
index f6af78600..70e83a1f9 100755
--- a/tests/du/inaccessible-cwd
+++ b/tests/du/inaccessible-cwd
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
cwd=`pwd`
diff --git a/tests/du/long-from-unreadable b/tests/du/long-from-unreadable
index 1e20bb324..fdaf91ab4 100755
--- a/tests/du/long-from-unreadable
+++ b/tests/du/long-from-unreadable
@@ -33,7 +33,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
proc_file=/proc/self/fd
if test ! -d $proc_file; then
diff --git a/tests/du/long-sloop b/tests/du/long-sloop
index 208417e70..31aac1fe5 100755
--- a/tests/du/long-sloop
+++ b/tests/du/long-sloop
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Create lots of directories, each containing a single symlink
# pointing at the next directory in the list.
diff --git a/tests/du/no-deref b/tests/du/no-deref
index e1b714036..8d8bc6c68 100755
--- a/tests/du/no-deref
+++ b/tests/du/no-deref
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p dir/a/b || framework_failure
ln -s dir slink || framework_failure
diff --git a/tests/du/no-x b/tests/du/no-x
index b7d62730a..5569b5d19 100755
--- a/tests/du/no-x
+++ b/tests/du/no-x
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
skip_if_root_
mkdir -p d/no-x/y || framework_failure
diff --git a/tests/du/one-file-system b/tests/du/one-file-system
index fd2695631..82081c6da 100755
--- a/tests/du/one-file-system
+++ b/tests/du/one-file-system
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p b/c y/z || framework_failure
diff --git a/tests/du/restore-wd b/tests/du/restore-wd
index 62409db57..b716b4112 100755
--- a/tests/du/restore-wd
+++ b/tests/du/restore-wd
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir a b || framework_failure
diff --git a/tests/du/slash b/tests/du/slash
index a939b91b6..d433a9235 100755
--- a/tests/du/slash
+++ b/tests/du/slash
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
require_readable_root_
fail=0
diff --git a/tests/du/slink b/tests/du/slink
index 082efddf7..588c4df32 100755
--- a/tests/du/slink
+++ b/tests/du/slink
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Determine if `.' is on a local (would non-NFS be sufficient?) file system.
# On at least some NFS implementations, symlinks never take up space,
diff --git a/tests/du/trailing-slash b/tests/du/trailing-slash
index a3f853682..92de5d45c 100755
--- a/tests/du/trailing-slash
+++ b/tests/du/trailing-slash
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
mkdir -p dir/1/2 || framework_failure
ln -s dir slink || framework_failure
diff --git a/tests/du/two-args b/tests/du/two-args
index 5cb875ff0..2b25bf535 100755
--- a/tests/du/two-args
+++ b/tests/du/two-args
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
du --version
fi
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
# Run this test from a sub-directory one level deeper than normal,
# so that the "du .." below doesn't traverse sibling directories