in 280+ tests/* files, use $srcdir, not $top_srcdir/tests
authorJim Meyering <meyering@redhat.com>
Tue, 27 May 2008 11:45:44 +0000 (13:45 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 27 May 2008 11:48:32 +0000 (13:48 +0200)
282 files changed:
tests/Makefile.am
tests/check.mk
tests/chgrp/basic
tests/chgrp/default-no-deref
tests/chgrp/deref
tests/chgrp/no-x
tests/chgrp/posix-H
tests/chgrp/recurse
tests/chmod/c-option
tests/chmod/equal-x
tests/chmod/equals
tests/chmod/inaccessible
tests/chmod/no-x
tests/chmod/octal
tests/chmod/setgid
tests/chmod/thru-dangling
tests/chmod/umask-x
tests/chmod/usage
tests/chown/basic
tests/chown/deref
tests/chown/preserve-root
tests/chown/separator
tests/cp/abuse
tests/cp/acl
tests/cp/backup-1
tests/cp/backup-dir
tests/cp/backup-is-src
tests/cp/cp-HL
tests/cp/cp-a-selinux
tests/cp/cp-deref
tests/cp/cp-i
tests/cp/cp-mv-backup
tests/cp/cp-parents
tests/cp/deref-slink
tests/cp/dir-rm-dest
tests/cp/dir-slash
tests/cp/dir-vs-file
tests/cp/existing-perm-race
tests/cp/fail-perm
tests/cp/file-perm-race
tests/cp/into-self
tests/cp/link
tests/cp/link-no-deref
tests/cp/link-preserve
tests/cp/no-deref-link1
tests/cp/no-deref-link2
tests/cp/no-deref-link3
tests/cp/parent-perm
tests/cp/parent-perm-race
tests/cp/perm
tests/cp/preserve-2
tests/cp/preserve-gid
tests/cp/proc-zero-len
tests/cp/r-vs-symlink
tests/cp/same-file
tests/cp/slink-2-slink
tests/cp/sparse
tests/cp/special-bits
tests/cp/special-f
tests/cp/src-base-dot
tests/cp/symlink-slash
tests/cp/thru-dangling
tests/dd/misc
tests/dd/not-rewound
tests/dd/skip-seek2
tests/dd/unblock-sync
tests/du/2g
tests/du/8gb
tests/du/basic
tests/du/deref
tests/du/deref-args
tests/du/exclude
tests/du/fd-leak
tests/du/hard-link
tests/du/inacc-dest
tests/du/inacc-dir
tests/du/inaccessible-cwd
tests/du/long-from-unreadable
tests/du/long-sloop
tests/du/no-deref
tests/du/no-x
tests/du/one-file-system
tests/du/restore-wd
tests/du/slash
tests/du/slink
tests/du/trailing-slash
tests/du/two-args
tests/install/basic-1
tests/install/create-leading
tests/install/d-slashdot
tests/install/trap
tests/ln/backup-1
tests/ln/hard-backup
tests/ln/misc
tests/ln/sf-1
tests/ln/target-1
tests/ls/color-dtype-dir
tests/ls/dangle
tests/ls/dired
tests/ls/file-type
tests/ls/follow-slink
tests/ls/infloop
tests/ls/inode
tests/ls/m-option
tests/ls/nameless-uid
tests/ls/no-arg
tests/ls/proc-selinux-segfault
tests/ls/recursive
tests/ls/rt-1
tests/ls/stat-dtype
tests/ls/stat-failed
tests/ls/stat-free-symlinks
tests/ls/stat-vs-dirent
tests/ls/symlink-slash
tests/ls/x-option
tests/misc/arch
tests/misc/cat-proc
tests/misc/chcon
tests/misc/chcon-fail
tests/misc/close-stdout
tests/misc/csplit
tests/misc/date-sec
tests/misc/df
tests/misc/df-P
tests/misc/false-status
tests/misc/fmt-long-line
tests/misc/groups-dash
tests/misc/groups-version
tests/misc/head-c
tests/misc/head-pos
tests/misc/help-version
tests/misc/id-context
tests/misc/ls-time
tests/misc/mknod
tests/misc/nice
tests/misc/nl
tests/misc/nohup
tests/misc/od-N
tests/misc/od-x8
tests/misc/pathchk1
tests/misc/printf
tests/misc/printf-hex
tests/misc/printf-surprise
tests/misc/ptx-overrun
tests/misc/pwd-long
tests/misc/pwd-unreadable-parent
tests/misc/readlink-fp-loop
tests/misc/runcon-no-reorder
tests/misc/selinux
tests/misc/shred-exact
tests/misc/shred-remove
tests/misc/shuf
tests/misc/sort-compress
tests/misc/sort-rand
tests/misc/split-a
tests/misc/split-fail
tests/misc/split-l
tests/misc/stat-fmt
tests/misc/stty
tests/misc/stty-invalid
tests/misc/stty-row-col
tests/misc/sum-sysv
tests/misc/tac-continue
tests/misc/tee
tests/misc/tee-dash
tests/misc/wc-files0
tests/mkdir/p-1
tests/mkdir/p-2
tests/mkdir/p-3
tests/mkdir/p-slashdot
tests/mkdir/p-thru-slink
tests/mkdir/p-v
tests/mkdir/parents
tests/mkdir/perm
tests/mkdir/selinux
tests/mkdir/special-1
tests/mkdir/t-slash
tests/mkdir/writable-under-readonly
tests/mv/acl
tests/mv/atomic
tests/mv/atomic2
tests/mv/backup-dir
tests/mv/backup-is-src
tests/mv/childproof
tests/mv/diag
tests/mv/dir-file
tests/mv/dir2dir
tests/mv/dup-source
tests/mv/force
tests/mv/hard-2
tests/mv/hard-3
tests/mv/hard-4
tests/mv/hard-link-1
tests/mv/hard-verbose
tests/mv/i-2
tests/mv/i-3
tests/mv/i-4
tests/mv/i-5
tests/mv/i-link-no
tests/mv/into-self
tests/mv/into-self-2
tests/mv/into-self-3
tests/mv/into-self-4
tests/mv/leak-fd
tests/mv/mv-special-1
tests/mv/no-target-dir
tests/mv/part-fail
tests/mv/part-hardlink
tests/mv/part-rename
tests/mv/part-symlink
tests/mv/partition-perm
tests/mv/perm-1
tests/mv/reply-no
tests/mv/sticky-to-xpart
tests/mv/to-symlink
tests/mv/trailing-slash
tests/mv/update
tests/readlink/can-e
tests/readlink/can-f
tests/readlink/can-m
tests/readlink/rl-1
tests/rm/cycle
tests/rm/dangling-symlink
tests/rm/deep-1
tests/rm/deep-2
tests/rm/dir-no-w
tests/rm/dir-nonrecur
tests/rm/dot-rel
tests/rm/empty-inacc
tests/rm/f-1
tests/rm/fail-2eperm
tests/rm/fail-eacces
tests/rm/hash
tests/rm/i-1
tests/rm/i-never
tests/rm/i-no-r
tests/rm/ignorable
tests/rm/inaccessible
tests/rm/interactive-always
tests/rm/interactive-once
tests/rm/ir-1
tests/rm/isatty
tests/rm/no-give-up
tests/rm/one-file-system
tests/rm/r-1
tests/rm/r-2
tests/rm/r-3
tests/rm/r-4
tests/rm/readdir-bug
tests/rm/rm1
tests/rm/rm2
tests/rm/rm3
tests/rm/rm4
tests/rm/rm5
tests/rm/sunos-1
tests/rm/unread2
tests/rm/unread3
tests/rm/v-slash
tests/rmdir/fail-perm
tests/rmdir/ignore
tests/rmdir/t-slash
tests/sample-test
tests/tail-2/append-only
tests/tail-2/assert
tests/tail-2/assert-2
tests/tail-2/big-4gb
tests/tail-2/infloop-1
tests/tail-2/proc-ksyms
tests/tail-2/start-middle
tests/tail-2/tail-n0f
tests/touch/dangling-symlink
tests/touch/dir-1
tests/touch/empty-file
tests/touch/fail-diag
tests/touch/fifo
tests/touch/no-create-missing
tests/touch/no-rights
tests/touch/not-owner
tests/touch/now-owned-by-other
tests/touch/obsolescent
tests/touch/read-only
tests/touch/relative

index bddf6e1..1b7dcfa 100644 (file)
@@ -552,4 +552,4 @@ pr_data =                                   \
   pr/ttb3-FF                                   \
   pr/w72l24f-ll
 
-include $(top_srcdir)/tests/check.mk
+include $(srcdir)/check.mk
index 5cb8b78..0e34e98 100644 (file)
@@ -48,15 +48,15 @@ built_programs = \
 # The rest are envvar settings that propagate build-related Makefile
 # variables to test scripts.
 TESTS_ENVIRONMENT =                            \
-  . $(top_srcdir)/tests/lang-default;          \
+  . $(srcdir)/lang-default;                    \
   tmp__=$$TMPDIR; test -d $tmp__ || tmp__=.;   \
-  . $(top_srcdir)/tests/envvar-check;          \
+  . $(srcdir)/envvar-check;                    \
   TMPDIR=$$tmp__; export TMPDIR;               \
   shell_or_perl_() {                           \
     if grep '^\#!/usr/bin/perl' "$$1" > /dev/null; then                        \
       if $(PERL) -e 'use warnings' > /dev/null 2>&1; then              \
        grep '^\#!/usr/bin/perl -T' "$$1" > /dev/null && T_=T || T_=;   \
-        $(PERL) -w$$T_ -I$(top_srcdir)/tests -MCoreutils               \
+        $(PERL) -w$$T_ -I$(srcdir) -MCoreutils                         \
              -M"CuTmpdir qw($$tst)" -- "$$1";  \
       else                                     \
        echo 1>&2 "$$tst: configure did not find a usable version of Perl," \
index 889a62c..03b8f21 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 fail=0
index ff484ed..f7ffc94 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 set _ $groups; shift
index ce70b9d..e63a142 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 set _ $groups; shift
index 93dd520..4cf1685 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 skip_if_root_
 
index 0b18b44..b376e4a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 set _ $groups; shift
index 52b0e19..e4f90a6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 set _ $groups; shift
index 461b6fa..42da4b2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 0
 file=f
index 6400d02..06c53c6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 file=f
 touch $file || framework_failure
index 7ad2793..9aca394 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch f || framework_failure
 
index 6e8744d..70cdc9b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir -p d/e || framework_failure
 chmod 0 d/e d || framework_failure
index 336041c..b65295b 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p d/no-x/y a/b || framework_failure
index 32c5512..a7ddb45 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index c156354..30e92f0 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 0
 mkdir d || framework_failure
index 0924b47..055f9c5 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s non-existent dangle || framework_failure
 
index 1bc5033..13b6e9a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 touch file
index 9c867c0..ba0ea73 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index fbe74a2..434a6ba 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 touch f || framework_failure
index b7688c3..4a46827 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s no-such dangle || framework_failure
 
index 9ec18f5..8e2923b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir d && ln -s / d/slink-to-root
index b409b02..eaf27b6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 id_u=`id -u` || framework_failure
 test -n "$id_u" || framework_failure
index 2f6e20f..d0faba4 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a b c || framework_failure
 ln -s ../t a/1 || framework_failure
index bfbb238..21a7742 100755 (executable)
@@ -26,7 +26,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:
index 6f2ca2e..7fc1658 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 suffix=.b
 file=b1.$$
index d2ac2be..88de81a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir x y || framework_failure
 
index 23d2a59..3703350 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo a > a || framework_failure
 echo a-tilde > a~ || framework_failure
index dbfaed1..bdc34d9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir src-dir dest-dir || framework_failure
 echo f > f || framework_failure
index 92627e7..feb66f9 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 require_selinux_
 
index 181ba47..8958450 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a b c d || framework_failure
 ln -s ../c a || framework_failure
index a2c47be..a248eaa 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir -p a b/a/c || framework_failure
 touch a/c || framework_failure
index 41bf877..4280e48 100755 (executable)
@@ -23,7 +23,7 @@ fi
 
 # Ensure that ls sorts the same way for everyone.
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 022
 
index 3394265..e936f59 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 working_umask_or_skip_
 
index 6a24290..d2e9537 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch f slink-target || framework_failure
 ln -s slink-target slink || framework_failure
index e9934c3..c97e709 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir d e || framework_failure
 
index 3521a1a..0e591ce 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir1 dir2 || framework_failure
 touch dir1/file || framework_failure
index cb23172..317c69a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 touch file || framework_failure
index f2a3287..d428e99 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_membership_in_two_groups_
 
 set _ $groups; shift
index ae9ca04..f2dabd1 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 chmod g-s . || framework_failure
index 09d38a7..1b6eff6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 022
 mkfifo fifo ||
index 49f5fed..53dfe56 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 
index 49cedeb..a1cf926 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch src || framework_failure
 touch dest || framework_failure
index d249b03..3ff16e0 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s no-such-file dangling-slink || framework_failure
 
index b396cd5..0dd96f0 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch a || framework_failure
 ln a b || framework_failure
index 018a029..e92c40c 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a b
 msg=bar
index 0046dce..20b87fc 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir b
 msg=bar
index 5d0ba75..32966ca 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 msg=bar
 echo $msg > a
index 77bcf75..a7da5e2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 working_umask_or_skip_
 
index de542e0..c84f2e9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 002
 mkdir mode ownership d || framework_failure
index b482c17..aed3a72 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 very_expensive_
 
 umask 037
index 0bbe339..667b503 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch f || framework_failure
 
index 1f18e03..a999322 100755 (executable)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 create() {
index aef5e5a..33e5802 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch empty || framework_failure
 
index 6ee2370..08070f7 100755 (executable)
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo abc > foo || framework_failure
 ln -s foo slink || framework_failure
index b32d2d8..e5cc823 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Unset CDPATH.  Otherwise, output from the `cd dir' command
 # can make this test fail.
index 8fd1dac..c86a251 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch file || framework_failure
 ln -s file a || framework_failure
index 0d915df..2c2024c 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_sparse_support_
 
 # Create a sparse file.
index e0f8bbb..c75fb50 100755 (executable)
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 touch a b c || framework_failure
index 82e6ae2..054ad70 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkfifo fifo ||
   skip_test_ "fifos not supported"
index a20268b..09aedb2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir x y || framework_failure
 
index a5854e1..893a413 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index aa494c5..71b41cd 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s no-such dangle || framework_failure
 echo hi > f || framework_failure
index e734ba2..d54fbfa 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 tmp_in=dd-in.$$
 tmp_in2=dd-in2.$$
index 76eb8a3..b0bdf12 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 0840ad2..1381305 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 484da88..b666533 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 printf 000100020003xx > in || framework_failure
 
index 8479524..6a7463c 100755 (executable)
@@ -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_
index 66f02e7..49989d1 100755 (executable)
@@ -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
index 3a378ce..837ec92 100755 (executable)
@@ -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
 
index 47f4449..facdf42 100755 (executable)
@@ -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
index c0281d5..02bdf7d 100755 (executable)
@@ -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
index 73a0c5b..1e32b60 100755 (executable)
@@ -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
 
index 73fe4f8..14df938 100755 (executable)
@@ -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.
index d0ca855..f4fdf26 100755 (executable)
@@ -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; } )
index 589328d..b0ea4d6 100755 (executable)
@@ -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 \
index 919406a..3b5fa50 100755 (executable)
@@ -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
index f6af786..70e83a1 100755 (executable)
@@ -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`
index 1e20bb3..fdaf91a 100755 (executable)
@@ -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
index 208417e..31aac1f 100755 (executable)
@@ -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.
index e1b7140..8d8bc6c 100755 (executable)
@@ -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
index b7d6273..5569b5d 100755 (executable)
@@ -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
index fd26956..82081c6 100755 (executable)
@@ -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
 
index 62409db..b716b41 100755 (executable)
@@ -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
 
index a939b91..d433a92 100755 (executable)
@@ -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
index 082efdd..588c4df 100755 (executable)
@@ -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,
index a3f8536..92de5d4 100755 (executable)
@@ -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
index 5cb875f..2b25bf5 100755 (executable)
@@ -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
index 92c383f..31f3215 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 dir=dir
index 6999938..3e60792 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index e7bf8ea..057c7be 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   install --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 915ad9e..5b2b115 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index b1d1bb1..f796f3a 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch a b || framework_failure
 
index 0021d37..90f8cd8 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch f || framework_failure
 
index 1f3c1d1..f8ec46f 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 t=tln-symlink
 d=tln-subdir
index 224d2cb..2dd3d8c 100755 (executable)
@@ -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
 
 echo foo > a || framework_failure
 ln -s . b || framework_failure
index 6a49b2f..e60106c 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir d || framework_failure
 fail=0
index 8a431c4..37b40c4 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Don't let a different umask perturb the results.
 umask 22
index 7266fac..942b45a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s no-such-file dangle || framework_failure
 mkdir -p dir/sub || framework_failure
index 6a1bbd2..3d96852 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 
index 327c350..1dfc303 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir sub
 cd sub
index a4374bf..e0468de 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Isolate output files from directory being listed
 mkdir dir dir/sub dir1 || framework_failure
index bc783ba..6476e25 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir loop || framework_failure
 ln -s ../loop loop/sub || framework_failure
index 636c064..dea2b28 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch f || framework_failure
 ln -s f slink || framework_failure
index 9750422..1549587 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 seq 2000 > b || framework_failure
 touch a || framework_failure
index 9381810..d5fa7f1 100755 (executable)
@@ -22,9 +22,9 @@ if test "$VERBOSE" = yes; then
 fi
 
 : ${srcdir=.}
-. $top_srcdir/tests/require-perl
+. $srcdir/require-perl
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 nameless_uid=`$PERL -e 'foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }'`
index ea0730e..cd9dd38 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir -p dir/subdir || framework_failure
 touch dir/subdir/file2 || framework_failure
index 79ea523..1a31ece 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 f=/proc/sys
 test -r $f || f=.
index d8b159c..158b9ce 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir x y a b c a/1 a/2 a/3 || framework_failure
 touch f a/1/I a/1/II || framework_failure
index c07e5e5..1a13176 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 date=1998-01-15
 
index a6d5289..7e7dcb9 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Skip this test unless "." is on a file system with useful d_type info.
 # FIXME: This uses "ls -p" to decide whether to test "ls" with other options,
index 1d1630a..be9a780 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir d || framework_failure
index 4dc01b5..be4d490 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_strace_ stat
 
 touch x || framework_failure
index f69ffba..f105e2f 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 830cb96..4315b06 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index eb1a39e..b479600 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir subdir || framework_failure
 touch subdir/b || framework_failure
index 3a510b6..1661d6c 100755 (executable)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # skip this test if arch isn't being built.
 case " $built_programs " in
index 0d7b07e..8fa3f56 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cat --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 
 f=/proc/cpuinfo
index d7a9c5f..f8caada 100755 (executable)
@@ -6,7 +6,7 @@ if test "$VERBOSE" = yes; then
   chcon --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 require_selinux_
 skip_if_mcstransd_is_running_
index 5c67276..d9bac7c 100755 (executable)
@@ -7,7 +7,7 @@ if test "$VERBOSE" = yes; then
   chcon --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index c3f54da..ede7520 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 p="$abs_top_builddir"
 
index 3d681fd..9997860 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   csplit --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 6d7a8bc..dea1835 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   date --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 
 fail=0
index fe8dabb..bb895e7 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   df --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 case `df .` in
 *'
index 7669550..8024864 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   df --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 7eaec30..67191a3 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   false --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 false --version > /dev/null && fail=1
index 05e0346..6902023 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   fmt --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 printf '%2030s\n' ' '|sed 's/../ y/g' > in || framework_failure
 
index 62bf1a4..bc132d8 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   groups --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Coreutils 6.9 and earlier failed to display information on first argument
 # if later argument was --.
index 12e16c3..34dbd33 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   groups --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_built_ groups id
 
 fail=0
index 7610533..2b348d2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   head --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo abc > in || framework_failure
 
index 90efe22..0c55a87 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   head --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 (echo a; echo b) > in || framework_failure
 
index 77e54c7..1dcf96f 100755 (executable)
@@ -25,7 +25,7 @@ test "$VERBOSE" = yes && set -x
 test "x$SHELL" = x && SHELL=/bin/sh
 export SHELL
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 expected_failure_status_nohup=127
 expected_failure_status_printenv=2
index 5dca744..ea90ec6 100755 (executable)
@@ -20,7 +20,7 @@ if test "$VERBOSE" = yes; then
   id --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 # Require selinux - when selinux is disabled, id never prints scontext.
 require_selinux_
 
index 69f5979..07271c6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Avoid any possible glitches due to daylight-saving changes near the
 # time stamps used during the test.
index bcaf98b..bb8e024 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mknod --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index f4d4012..4fcb80f 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   nice --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 tests='
 0 empty 10
index 58baef9..572e44a 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   nl --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index dc90f48..1b36dbd 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   nohup --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 0213dc4..884127c 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   od --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo abcdefg > in || framework_failure
 
index 267ab4d..b52c1ce 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   od --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 od -t x8 /dev/null >/dev/null ||
   skip_test_ "od lacks support for 8-byte quantities"
index 3bc5869..5b20f07 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   pathchk --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 touch file || framework_failure
index bdcfb5d..78084b3 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   "$prog" --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index e5db45e..968f667 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   "$prog" --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 
 fail=0
index 90a2997..dd3c332 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   env $prog --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_ulimit_
 
 fail=0
index 552d7e2..1859691 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ptx --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Using a long file name makes an abort more likely.
 # Even with no file name, valgrind detects the buffer overrun.
index a8aff70..94d4e4c 100755 (executable)
@@ -18,9 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $top_srcdir/tests/require-perl
+. $srcdir/require-perl
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_readable_root_
 
 ARGV_0=$0
index 165cd79..75df827 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 test $host_os != linux-gnu &&
   skip_test_ 'vendor getcwd may be inadequate'
index 99c1ec0..7ac54b9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 cwd=$("$abs_top_builddir/src/pwd")
 
 # To trigger this bug, we have to construct a name/situation during
index 77637a3..07dd081 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   runcon --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 cat <<\EOF > exp || framework_failure
 runcon: runcon may be used only on a SELinux kernel
index 87b3af2..8065182 100755 (executable)
@@ -10,7 +10,7 @@ if test "$VERBOSE" = yes; then
   stat --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 require_selinux_
 skip_if_mcstransd_is_running_
index ea46590..d90a80e 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shred --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index f69166a..a5dc6f1 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shred --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 # The length of the basename is what matters.
index 2231dcd..9710949 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shuf --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 seq 100 > in || framework_failure
 
index a555b26..f3c4735 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   sort --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 seq -w 2000 > exp || framework_failure
 tac exp > in || framework_failure
index c42d16f..f675c95 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   sort --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 seq 100 > in || framework_failure
 
index cde4855..b390099 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   split --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 a_z='a b c d e f g h i j k l m n o p q r s t u v w x y z'
 
index d15dd92..0334c2d 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   split --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch in || framework_failure
 
index f2f2383..453f100 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 printf '1\n2\n3\n4\n5\n' > in || framework_failure
 
index e19fb12..f169166 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   stat --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 
 fail=0
index 8c4815b..8b5fbff 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure there's a tty on stdin.
-. $top_srcdir/tests/input-tty
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/input-tty
+. $srcdir/test-lib.sh
 
 # The following list of reversible options was generated with
 # grep -w REV stty.c|sed -n '/^  {"/{s//REV_/;s/".*/=1/;p;}'|fmt
index d478765..168bb59 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure there's a tty on stdin.
-. $top_srcdir/tests/input-tty
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/input-tty
+. $srcdir/test-lib.sh
 
 fail=0
 
index d5d7510..7fc917f 100755 (executable)
@@ -37,8 +37,8 @@ LC_ALL=C
 export LC_ALL
 
 # Make sure there's a tty on stdin.
-. $top_srcdir/tests/input-tty
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/input-tty
+. $srcdir/test-lib.sh
 
 # Versions of GNU stty from shellutils-1.9.2c and earlier failed
 # tests #2 and #4 when run on SunOS 4.1.3.
index e536183..8766449 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 : ${srcdir=.}
-. $top_srcdir/tests/require-perl
+. $srcdir/require-perl
 
 # Avoid a problem when run in a UTF-8 locale.
 # Otherwise, Perl would try to (and fail to) interpret
@@ -30,7 +30,7 @@ fi
 LC_ALL=C
 export LC_ALL
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index c8da320..ce41a52 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   tac --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # See if the envvar is defined.
 if test x = "x$FULL_PARTITION_TMPDIR"; then
index e73619f..adf0caa 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tee --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo line >sample || framework_failure
 nums=`seq 9` || framework_failure
index 7b330f9..2564117 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tee --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 tee - </dev/null || fail=1
index d80911d..aa2221e 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   wc --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 echo 2 > 2b || framework_failure
 echo 2 words > 2w || framework_failure
index 95b26be..85a2458 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 mkdir --parents "`pwd`/t" || fail=1
index bbf3913..7daf0b5 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 mkdir --parents "`pwd`/t/u" || fail=1
index e05021f..54052f1 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir no-access || framework_failure
index 273b7b7..d2c3f98 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index c326191..accdc79 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s . slink || framework_failure
 
index b3759d5..27696b5 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 mkdir -pv foo/a/b/c/d >out || fail=1
index 2aee87e..5433ee0 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 . "$abs_srcdir/setgid-check"
 
 mkdir -m 700 e-dir || framework_failure
index 6df1d43..4fa9b56 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 . "$abs_srcdir/setgid-check"
 
 working_umask_or_skip_
index 31b1f3e..291d62d 100755 (executable)
@@ -27,7 +27,7 @@ fi
 # mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
 # successfully, in spite of the invalid context string.
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 c=invalid-selinux-context
 msg="failed to set default file creation context to \`$c':"
index 10d5b86..9d13cba 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 set_mode_string=u=rwx,g=rx,o=w,-s,+t
 output_mode_string=drwxr-x-wT
index fdb5e86..e95b052 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index ebca859..1057b44 100755 (executable)
@@ -29,7 +29,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 # FIXME: for now, skip it unconditionally
index 536391a..e9121a5 100755 (executable)
@@ -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:
index e0e8adc..b360e13 100755 (executable)
@@ -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:
index 4d2b4fc..796d9c4 100755 (executable)
@@ -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:
index e3b42fb..28876a0 100755 (executable)
@@ -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
index 3c41ecb..eee4fd9 100755 (executable)
@@ -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"
 
index 1fa77dc..dffdf40 100755 (executable)
@@ -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
index 413da6f..ef25d80 100755 (executable)
@@ -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
index 5899441..38217e0 100755 (executable)
@@ -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
index 76622dc..9a03881 100755 (executable)
@@ -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
index edb5397..d7b56e8 100755 (executable)
@@ -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
index 05d7f04..f2eaf91 100755 (executable)
@@ -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
index 7813f8a..aaf9349 100755 (executable)
@@ -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
index 359a74d..a2fa4e7 100755 (executable)
@@ -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
index b082c1b..881cab5 100755 (executable)
@@ -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
 
index fd586ae..864fd03 100755 (executable)
@@ -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"
 
index 3a24566..0b4a129 100755 (executable)
@@ -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
index 4153dc9..1cc1394 100755 (executable)
@@ -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
index 3052526..eed3c8b 100755 (executable)
@@ -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
index e1a2c1c..5de59b4 100755 (executable)
@@ -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
index 3b2e27d..da97168 100755 (executable)
@@ -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
index 2eddf85..b322872 100755 (executable)
@@ -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
index e9273d1..915194f 100755 (executable)
@@ -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
index ffc97c3..13e996a 100755 (executable)
@@ -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"
 
index 3235b7f..3b96732 100755 (executable)
@@ -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
index 39e053d..9f00113 100755 (executable)
@@ -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
index 127a826..1141b73 100755 (executable)
@@ -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"
index ff4869f..f10dc10 100755 (executable)
@@ -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"
 
index ba9a6b0..7df1fb9 100755 (executable)
@@ -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
index fdbab1d..60c4210 100755 (executable)
@@ -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"
index 8f83fcf..3eaa083 100755 (executable)
@@ -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"
 
index 009c6d4..8bff991 100755 (executable)
@@ -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"
 
index 68c46f9..9262524 100755 (executable)
@@ -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"
 
index a8ca44c..03f169e 100755 (executable)
@@ -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"
 
index 8a359ff..95bbccb 100755 (executable)
@@ -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
index e394772..42967c8 100755 (executable)
@@ -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
 
index 38f3836..14cb762 100755 (executable)
@@ -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"; }
index 12f1447..560d63d 100755 (executable)
@@ -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"
 
index 0a2a361..eea982f 100755 (executable)
@@ -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
 
index 7edb99a..15e6fa7 100755 (executable)
@@ -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
index 500bbc5..72c2c5c 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index 3ddfb8d..67f84b9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index e6a3e75..24f98c9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index c2fbcd4..91401b0 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir subdir || framework_failure
 touch regfile || framework_failure
index 5daf716..4c9f04d 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p a/b
index 8292ed7..7581be2 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 ln -s no-file dangle
 ln -s / symlink
index 25239d6..34e9e19 100755 (executable)
@@ -28,7 +28,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 umask 022
 
index 277a0b6..ed84c66 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Root can run this test, but it always succeeds, since for root, all
 # files are writable, and write_protected_non_symlink never reaches
index 94f53e6..35ab185 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir --mode=0500 unwritable-dir || framework_failure
 
index 32cabc6..064ef5d 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir d || framework_failure
 
index 256abcb..0d0e1a1 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a b || framework_failure
 touch a/f b/f || framework_failure
index d0b661f..e89d103 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -m0 inacc || framework_failure
index 5d80d85..acd241a 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir -p d || framework_failure
 
index 6e98baa..132e22c 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 # The containing directory must be owned by the user who eventually runs rm.
index d2b5b04..916b257 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 ok=0
index 56f96e4..abb7ffd 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 expensive_
 
 # Create a hierarchy with 3*26 leaf directories, each at depth 153.
index 15fd94f..d19ebea 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 t=t
 mkdir -p $t || framework_failure
index 24035f3..244054a 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 touch f || framework_failure
index d2b2c10..f028b63 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 echo y > y || framework_failure
index 0473a20..37e0150 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 touch existing-non-dir || framework_failure
index 2f86b03..35cddc5 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Skip this test if your system has neither the openat-style functions
 # nor /proc/self/fd support with which to emulate them.
index a6d08f3..382cc6f 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
   || framework_failure
index 4c92516..6238f3f 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure
 touch file1-1 file2-1 file2-2 file2-3 file3-1 file3-2 file3-3 file3-4 \
index 21bd8f0..c3cdc0b 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 t=t
 mkdir -p $t $t/a $t/b $t/c || framework_failure
index 382f30a..5968873 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 fail=0
index aa31d93..b888296 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 mkdir d || framework_failure
index 0030f34..419ada2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 # If used, these must *follow* test-lib.sh.
index 97f00c6..ec846fb 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a a/a || framework_failure
 > b || framework_failure
index f3e1cfa..0bf6756 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir t t/a t/a/b || framework_failure
 > t/a/f || framework_failure
index 2635560..9c31d88 100755 (executable)
@@ -28,7 +28,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir t || framework_failure
 cd t || framework_failure
index 7430273..3d21079 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir d || framework_failure
 touch d/a || framework_failure
index 6b81a74..15dc741 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Create a directory containing many files.
 # What counts is a combination of the number of files and
index 110a82d..70bc0e8 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p b/a/p b/c b/d || framework_failure
index 8df52c8..853f4e2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p a/0 || framework_failure
index 1682ea3..c5630a2 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p z || framework_failure
index 0b6ab69..2fbf317 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir dir || framework_failure
index e9c94ad..f54d640 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p d/e || framework_failure
index 03200bf..ce1016e 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 rm -r '' > /dev/null 2>&1 && fail=1
index 7f582d0..005c425 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p a/b || framework_failure
index 36e93bb..e79bd60 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 mkdir -p a/1 b c d/2 e/3 || framework_failure
index a942f1f..3a9d541 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir a || framework_failure
 touch a/x || framework_failure
index bbfcad8..9eeb633 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir d d/e d/e/f || framework_failure
 chmod a-w d || framework_failure
index 70b2944..e55ae1f 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 cwd=`pwd`
 mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure
index cd4dad3..923e9c9 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkdir dir || framework_failure
 
index a9ec3a4..67bc0d1 100644 (file)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   FIXME --version
 fi
 
-# FIXME: . $top_srcdir/tests/lang-default
-. $top_srcdir/tests/test-lib.sh
+# FIXME: . $srcdir/lang-default
+. $srcdir/test-lib.sh
 # FIXME: skip_if_root_
 # FIXME: require_root_
 
index e061b12..fc76100 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 chattr_a_works=1
index 88371c2..309d12d 100755 (executable)
@@ -29,7 +29,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Not "expensive" per se, but sleeping for so long is annoying.
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 very_expensive_
 
 ok='ok ok ok'
index 4cfd6fb..4c6f4a9 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Not "expensive" per se, but sleeping for so long is annoying.
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 very_expensive_
 
 ok='ok ok ok'
index 8b64c6e..b362aeb 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 expensive_
 
 # Create a file of size exactly 4GB (2^32) with 8 bytes
index 4015fcb..c18c3e6 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 yes > t &
 yes_pid=$!
index ccd4fdc..84566b5 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index d11eaec..3151e9d 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 (echo 1; echo 2) > k || framework_failure
 
index c07b30c..4a22541 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 sleep 2 &
 pid=$!
index 66392a5..aedb4af 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 rm -f touch-target t-symlink
 ln -s touch-target t-symlink
index e48484a..3402307 100755 (executable)
@@ -7,7 +7,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 touch . || fail=1
index 1020a37..0f42ba5 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 DEFAULT_SLEEP_SECONDS=2
 SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
index 1df8e54..b888912 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 d1=no-$$
index 22cde83..9cd2d01 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 mkfifo_or_skip_ fifo
 
index a503ff7..be2d0db 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 fail=0
 
index 9466166..7550bae 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 # Make sure t2 is newer than t1.
 touch -d '2000-01-01 00:00' t1 || framework_failure
index f3b294d..adcdaa8 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 if env -- test -w /; then
   skip_test_ you have write access to /.
index 2f85850..2c1faef 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 require_root_
 
 group_num=$(id -g $NON_ROOT_USERNAME)
index 25f7382..8b55877 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 _POSIX2_VERSION=199209; export _POSIX2_VERSION
 POSIXLY_CORRECT=1; export POSIXLY_CORRECT
index 47b7eb2..e2338c5 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 skip_if_root_
 
 : > read-only || framework_failure
index 6a5d100..7c1396f 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $top_srcdir/tests/test-lib.sh
+. $srcdir/test-lib.sh
 
 TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure