]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: convert first batch of tests from test-lib.sh to init.sh
authorJim Meyering <meyering@redhat.com>
Sun, 14 Nov 2010 10:05:05 +0000 (11:05 +0100)
committerJim Meyering <meyering@redhat.com>
Wed, 17 Nov 2010 19:48:57 +0000 (20:48 +0100)
Initially, I did this,
git grep -l srcdir/test-lib.sh|xargs perl -p0i -e '~180-byte script'
but that line would have been much longer than the maximum permitted
by coreutils' commit hook, and wasn't readable besides, so here's a
more readable version:

lhs=$(printf '%s\\n' \
'if test "$VERBOSE" = yes; then' \
'  set -x' \
'  touch --version' \
'fi' \
'' \
'. $srcdir/test-lib.sh' \
  | sed 's/\$/\\\$/g;s/touch/(\\w+)/')

rhs=$(printf '%s\\n' \
'. "${srcdir=.}/init.sh"; path_prepend_ ../src' \
'test "$VERBOSE" = yes && FIXME --version' \
  | sed 's/\$/\\\$/g;s/FIXME/\$1/')

git grep -l srcdir/test-lib.sh|xargs perl -p0i -e "s,$lhs,$rhs,"

323 files changed:
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/backup-1
tests/cp/backup-dir
tests/cp/backup-is-src
tests/cp/capability
tests/cp/cp-HL
tests/cp/cp-a-selinux
tests/cp/cp-deref
tests/cp/cp-i
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-heap
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/preserve-2
tests/cp/preserve-slink-time
tests/cp/proc-short-read
tests/cp/proc-zero-len
tests/cp/r-vs-symlink
tests/cp/reflink-auto
tests/cp/reflink-perm
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/direct
tests/dd/misc
tests/dd/not-rewound
tests/dd/reblock
tests/dd/skip-seek-past-dev
tests/dd/skip-seek-past-file
tests/dd/skip-seek2
tests/dd/stderr
tests/dd/unblock-sync
tests/df/total-verify
tests/df/unreadable
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/id/no-context
tests/install/basic-1
tests/install/create-leading
tests/install/d-slashdot
tests/install/install-C
tests/install/install-C-root
tests/install/install-C-selinux
tests/install/strip-program
tests/install/trap
tests/ln/backup-1
tests/ln/hard-backup
tests/ln/hard-to-sym
tests/ln/misc
tests/ln/slash-decorated-nonexistent-dest
tests/ln/target-1
tests/ls/abmon-align
tests/ls/capability
tests/ls/color-clear-to-eol
tests/ls/color-dtype-dir
tests/ls/color-norm
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/multihardlink
tests/ls/no-arg
tests/ls/no-cap
tests/ls/proc-selinux-segfault
tests/ls/readdir-mountpoint-inode
tests/ls/recursive
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/cat-buf
tests/misc/cat-proc
tests/misc/chcon
tests/misc/chcon-fail
tests/misc/chroot-credentials
tests/misc/chroot-fail
tests/misc/close-stdout
tests/misc/csplit
tests/misc/date-sec
tests/misc/df
tests/misc/df-P
tests/misc/env
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/id-context
tests/misc/id-groups
tests/misc/ls-time
tests/misc/mknod
tests/misc/nice
tests/misc/nice-fail
tests/misc/nl
tests/misc/nohup
tests/misc/nproc-avail
tests/misc/nproc-positive
tests/misc/od-N
tests/misc/od-multiple-t
tests/misc/od-x8
tests/misc/pathchk1
tests/misc/ptx-overrun
tests/misc/readlink-fp-loop
tests/misc/runcon-no-reorder
tests/misc/seq-long-double
tests/misc/shred-exact
tests/misc/shred-passes
tests/misc/shred-remove
tests/misc/shuf
tests/misc/sort-compress
tests/misc/sort-continue
tests/misc/sort-debug-keys
tests/misc/sort-debug-warn
tests/misc/sort-float
tests/misc/sort-merge-fdlimit
tests/misc/sort-month
tests/misc/sort-rand
tests/misc/sort-version
tests/misc/split-a
tests/misc/split-fail
tests/misc/split-l
tests/misc/stat-fmt
tests/misc/stat-hyphen
tests/misc/stat-slash
tests/misc/stty-invalid
tests/misc/tac-continue
tests/misc/tee
tests/misc/tee-dash
tests/misc/timeout
tests/misc/timeout-parameters
tests/misc/truncate-dangling-symlink
tests/misc/truncate-dir-fail
tests/misc/truncate-fail-diag
tests/misc/truncate-fifo
tests/misc/truncate-no-create-missing
tests/misc/truncate-overflow
tests/misc/truncate-parameters
tests/misc/truncate-relative
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/special-1
tests/mkdir/t-slash
tests/mkdir/writable-under-readonly
tests/mv/atomic
tests/mv/atomic2
tests/mv/backup-dir
tests/mv/backup-is-src
tests/mv/dir-file
tests/mv/dir2dir
tests/mv/force
tests/mv/hard-3
tests/mv/hard-4
tests/mv/hard-link-1
tests/mv/hard-verbose
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-n
tests/mv/mv-special-1
tests/mv/no-target-dir
tests/mv/part-fail
tests/mv/part-hardlink
tests/mv/part-rename
tests/mv/partition-perm
tests/mv/perm-1
tests/mv/sticky-to-xpart
tests/mv/to-symlink
tests/mv/trailing-slash
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/ext3-perf
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/one-file-system2
tests/rm/r-1
tests/rm/r-2
tests/rm/r-3
tests/rm/r-4
tests/rm/read-only
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/tail-2/append-only
tests/tail-2/assert
tests/tail-2/assert-2
tests/tail-2/big-4gb
tests/tail-2/flush-initial
tests/tail-2/follow-stdin
tests/tail-2/infloop-1
tests/tail-2/inotify-hash-abuse2
tests/tail-2/inotify-race
tests/tail-2/pid
tests/tail-2/pipe-f
tests/tail-2/pipe-f2
tests/tail-2/proc-ksyms
tests/tail-2/start-middle
tests/tail-2/tail-n0f
tests/tail-2/wait
tests/touch/60-seconds
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-dereference
tests/touch/no-rights
tests/touch/not-owner
tests/touch/now-owned-by-other
tests/touch/obsolescent
tests/touch/read-only
tests/touch/relative
tests/touch/trailing-slash

index 19e9602cab96550abf49ddecdee9027700ebb829..7d6716624afea59c0d352d4094006533b83a6431 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 
 
index b4ea299f8fc99f861ad7a64a7d462207c065fa6c..77d3bcbcbe61b070180bb62354501c96a64f5524 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 
 set _ $groups; shift
index 36a320be0dcb2c7da554253cb977ea300e4970ef..e3cfed2294d6111707b0f172fd285c590a74c884 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 
 set _ $groups; shift
index a8e49cddb53a59fdf547ce7336c6aa2914c89413..e3a4aefd0cc480fd0cb071dfaae23d7d24eb728f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 skip_if_root_
 
index db0b077967cb1000f33549c394d6ae0db08fc5ea..6cf101c8f6612b52a6c6696e2b1cf4f96d75a277 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 
 set _ $groups; shift
index 8fd53da4d353ee785e4d3fec2c98a2d04a93993b..0f7f00f223c0aed9f75807957b8626dccc77f416 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_membership_in_two_groups_
 
 set _ $groups; shift
index c8b8ac8d1213391969b3f3ad354034a2cacfbcce..4db905fc63e54e5c25cfab3debf67327eb673b25 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 umask 0
 file=f
index cd1358a00216cc105cf2c07d534fe313d6a4adbf..32226f1ff093548d56ec80de1c91a62e5368ab92 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 file=f
 touch $file || framework_failure
index 79f39f46be02001ee4d4fc1acceb78c626dae765..79e01fb04f067028ff1bba256f718cd3a9dc1e93 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 touch f || framework_failure
 
index 6127ad5374c6a851c947f9df69af134918a9077d..37dc8ffac57eccb0c865eef4b3eb71e4a6e4bc83 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 mkdir -p d/e || framework_failure
 chmod 0 d/e d || framework_failure
index f4e10826d3869f5ab48db81fb0a379b84bdb95d4..464a2544ae381db0ecb73128d3225a4e24340be2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 skip_if_root_
 
 mkdir -p d/no-x/y a/b || framework_failure
index 695dbbd380f6fcc11358daacdec1884c07d4008c..add57775bd00d345abd3c1b666714114e2bca4bc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 
 # Before coreutils-5.92, this would mistakenly succeed,
index 01a320db9bfc346b9550384c47af9e99db12a9c7..89e971c5fe030e639f8219be6ddde9b783d6a865 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 umask 0
 mkdir d || framework_failure
index 478db701ad59305a66067eaaa65e97aa05b7fa79..8421a989c6b962916a0f038ae60e9325c2c2ef1e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 ln -s non-existent dangle || framework_failure
 
index da1cf1525f21c0feb438218fb30a432f5a7eaeaf..e0c5e36a962d2143d8b7e96bcb590e4da58aaa23 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 touch file
 chmod 755 file
index 0aa1e18fcdf0615fce5ad36511afc27613c6dea7..e2d33fc323936697ef4e559b12fe2c6c2fc3075f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chmod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chmod --version
 
 
 # Each line in this list is a set of arguments, followed by :,
index f161b536bcf8dfee8c9ae6892176b791a1255c0e..3ad43b403f66b7a15dc3edb6657d9662bc69a036 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chgrp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chgrp --version
 require_root_
 
 touch f || framework_failure
index 7a269e75672f67d18a6de241f8a7b938d7d8a53d..85603b4299832f9804febdac0cb101b5dcf0fd35 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chown --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chown --version
 
 ln -s no-such dangle || framework_failure
 
index 81483db5b4643131d7d5cfb78c28abf5712eafa2..c01149629f1dde5eb0884908b4cc5d47a6b32f88 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chown --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chown --version
 skip_if_root_
 
 mkdir d && ln -s / d/slink-to-root
index 4c204f126be44b853bb1465e232f2495be4164c4..914d9cca4b381b4befb94bafb88511d5488cbfcb 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chown --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chown --version
 
 id_u=`id -u` || framework_failure
 test -n "$id_u" || framework_failure
index 2979f0d99a61d69f4b512e2d9ea4fea38de938e1..fb5e4358c58ccf38081771e15e1e7a17f80e2314 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir a b c || framework_failure
 ln -s ../t a/1 || framework_failure
index fc720285744e5c3f8da751cebd4ed4863aa68113..6908462141d653b8b8c357dbd7f44b2a0f9de960 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 suffix=.b
 file=b1.$$
index 43681231962bec6a64db4e49ecafa293651c7d1f..c1718dedc19d5906e314e6a5ec9741e2e5a5e4cf 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir x y || framework_failure
 
index 5944eb9b7c30f7fd9a9e77b4bb3783b761914712..8a8b4806947d092f9a7be914493558dba2f5ffe2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 echo a > a || framework_failure
 echo a-tilde > a~ || framework_failure
index f4ee227f5ffa8bf71b81fefa2e47c76cfad0cdbf..3a241d0587d667f1fe769a92d9d5a6e4b419b2a4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 require_root_
 working_umask_or_skip_
 
index 6407fb7dca0e8ce6b0c3b811570c9c200a3a4d0b..f2a2dc4389372f5dc37dacd693687425356de773 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir src-dir dest-dir || framework_failure
 echo f > f || framework_failure
index cff87311ffd91c020b6b593b2d657a57b3ba1f0e..bfc79562d22ba153cab5e42300004acafb9f9e77 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 require_root_
 require_selinux_
 
index 50efdd3b518dfeb01e22bbec6a44a4cd4394c31c..8315a6254517457648ea9ecd1854877dead57edb 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir a b c d || framework_failure
 ln -s ../c a || framework_failure
index f5cba16e1e147f16b817caa3af77977a3e15990c..8e86267fa181005e0283ff452b11b60fa495df1a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir -p a b/a/c || framework_failure
 touch a/c || framework_failure
index c77a32857de28bc52ea0b38cdf8a6bc0c2262904..22100b5026dad8c0d91857e9a6ec94a11f9a4e5f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 working_umask_or_skip_
 
index de2e5e63194761fa10aa0f615f9acf8ec504464c..a11bd0dc91cade36c88b7854f42f033c4869b7e1 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 touch f slink-target || framework_failure
 ln -s slink-target slink || framework_failure
index 523edbdc1c15bcafa14d89ac6ce51ff7ce64238d..2923a474eaaa7797245449fe2be1798218ba6a4d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir d e || framework_failure
 
index 76b14b6e79e20cbf175cfa383b5e16826752f556..18050a3afcde64428d6fb71fd8e1dbe44e1c7920 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir dir1 dir2 || framework_failure
 touch dir1/file || framework_failure
index 32530a613f848a378520a757cd5087d2139a1fd2..499014184d193936c3bbb03a7102761bd075087e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir dir || framework_failure
 touch file || framework_failure
index ffd29f0f4ac2b012c94b27c78acff714cf4dc25d..f1c7bc1adf0783049026c977bb2690cb0c6ea2c2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 require_membership_in_two_groups_
 
index 656b16e23ef25bf68b24d64a8217be3088a69c87..cd763f7dabf11b3a4f22d296336fc2e13a6c28ff 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 skip_if_root_
 
 chmod g-s . || framework_failure
index d807612595d488858ce699c3c1ad069276582784..6b3b60450d5f850f44c9f156df0dbb7abcdfe1b1 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
 require_local_dir_
index 21aae8076b38391026b015560b7aea69b48c95ab..3341d1a8bebd487768bf2ffa7f9f8c4536b1f8c1 100755 (executable)
 # Now it gives this:
 #   cp: can't copy a directory `dir' into itself `dir/dir'
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir a dir || framework_failure
 
index 9935465d407b5b2df005e2a88406ee4a7ba364b9..f0bd241f93c832878787fb73c90adf1c08aa4a15 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 touch src || framework_failure
 touch dest || framework_failure
index fe2f6b1aafe29e11afa7df32c0fdc8a890a47315..f5ed6e60e2bef8f4d16a429baaef8ceadbbc60c7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 expensive_
 require_ulimit_
 
index 86f05fd5d1c62684bc451a4e4ef4b72a987070bf..d575ec85154b71bb512eef7957b256784671a749 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 ln -s no-such-file dangling-slink || framework_failure
 
index 9eb95ad5e50b8e953bb17f9a0de755c6e719ec09..fe5ad42c925fe004821af33dcd28d865870d97dc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 touch a || framework_failure
 ln a b || framework_failure
index 411692842c0bad1f5b306216a164518a3adb2ddf..f0d1a9e9b13936f9b40cdf79d17eedc1ad7ac94d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir a b
 msg=bar
index aa0d8ab3bc460e12fecbd80bdd2a11b3d6533d92..2351589a799483021f80761f09dd419e5133cd4c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir b
 msg=bar
index c3c7d89ac25d4ab159277cb5c3af09c53220dca3..1053b3ef76f9470e2db58d2730ffe05d8013fde2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 msg=bar
 echo $msg > a
index 4a7d98947a38f99518906356973ac1358c990f0b..82dd913ac516af35158fbad72f7818081dd478ec 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 working_umask_or_skip_
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
index e595d9ea8e81cc27214fe47dc87ccc06f778913d..b6374aecd92d4a8406ddb573a327bf7db03d0fe0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
 require_local_dir_
index 9863952c2761d77dc22d1a07008c6af2b815733f..d7565df3b5c6722b8f8044c91dd9c537415cb005 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
 require_local_dir_
index 88c1016f81c6ae19dcd6a4f95611b58fe699d075..5a61b7e8cf11b164c6003d3eb23db28f2df4b46b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
 grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||
index afe08491b30ea776fa3a352a287b3885c681d13a..2bc2a6195302b62d6bbfaa14f89fec4fe62dd048 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 kall=/proc/kallsyms
 
index 9cc81bc14235a1d5a03f713635ae821096708c04..ca28fa428564c9ae12252c2b1d531c04351ea4f8 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 touch empty || framework_failure
 
index e537767b9b593bc8512ad204654d346f9b90707f..7d9dfd8e424297574935dcda51ab5f9949258477 100755 (executable)
 # though now such usage evokes a warning:
 # cp: `slink': WARNING: using -r to copy symbolic links is not portable
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 echo abc > foo || framework_failure
 ln -s foo slink || framework_failure
index 9d60940bb338705e43f4545faab9ae9c13afec62..7d61ed25bcbc6f5f052bb73cd666ead7e7f00287 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
index e1c12aa5ad8db5d2c56bcb683bb66712fa9239ef..a330584c10c476075dcc1b83b35da209e7d5bd13 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 
 : > time_check
index bcb2a9d0d1b83b37281beb243eb8af53d794329f..97b5b2909696a657e09e5b1d2df8b12b511d7a39 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 # Unset CDPATH.  Otherwise, output from the `cd dir' command
 # can make this test fail.
index bdfb9a90b3a100c68e7e72108f1b095588193d1b..69e0c95113853ed028c748bacf36ccc74ba28c41 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 touch file || framework_failure
 ln -s file a || framework_failure
index 73c292476559659fec52d8395e84910d1a93da2d..60e226b27332a5784cced8e6783a18ed5abcf7df 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 require_sparse_support_
 
 # Create a sparse file.
index 6f32847bc06c4af55bf396d96f76350519417647..f09e499fc279796cd31413e13ed601431cec13fb 100755 (executable)
 # This test would fail due to a bug introduced in 4.0y.
 # The bug was fixed in 4.0z.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 require_root_
 
 touch a b c || framework_failure
index 22872e7338e7b1385a75cefa3218b020130e63db..6c0b13734c633d2cc51d67c759d70bc4a7bbd661 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkfifo fifo ||
   skip_test_ "fifos not supported"
index 8e38ae68a23cc7df2908e9e85a628869f6ebc484..73e4f6ff7958dd25d5dad9d52fd770e4d45a77fd 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir x y || framework_failure
 
index ac63ba2b187ee464e5479dbe791fe03db1888a5e..dfc9b2bf0035538d35fe963afa246cde458005f5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index 729eb5e6fdeb366f1492005131ed6e5f3681c19c..592dda2a59d583f1ce2a5ab4a083d9259f2506f3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 
 ln -s no-such dangle || framework_failure
 echo hi > f || framework_failure
index 46bf35f3204f007c108a19df1c833d69dd767877..1381ce68c98050b13366fece9cc5fe1d60bba55a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 truncate -s 8192 in || framework_failure
 dd if=in oflag=direct of=out 2> /dev/null \
index ddd7bbd9ecd27d7c816d1617da28fc301295b2f3..92be45046082e58e6a9cd3727251685ea683930c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 tmp_in=dd-in.$$
 tmp_in2=dd-in2.$$
index 67c2971f439671992e0acfcb47b2e812b246589c..75c08c952f4f2d264cc7b1b51a5202497738f690 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 
 echo abcde > in
index 9c9b0f85f2e19170654821b4d61d9faa0bd826d4..c5d667c8c770632fb99e6dd6bd14cef954160de4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 # 2 short reads -> 1 full write + 1 partial write
 cat <<\EOF > exp-reblock || framework_failure
index 9e910e8ee99cf3a9046c10d2bc6114790c0102c6..762671c274862b9ec5dbba373c90038c212e35f1 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 # need write access to local device
 # (even though we don't actually write anything)
index 9327f1ea54d704b28383caad1dd1856fee615470..605e964f7148bb7246a4b43b7a778920748287c8 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 require_sparse_support_ # for `truncate --size=$OFF_T_MAX`
 eval $(getlimits) # for OFF_T limits
 
index 7b60af62e6f85970cfdbf56cf4507fbe230ab941..4897e10e1c9367b6a4e9bfd65346588bce4aab28 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 
 echo LA:3456789abcdef > in || fail=1
index 5ef91e45e6d4487438896630cb9c6e15a3d62f45..fd7b7470d7baf496ab0d25fafd1c47a6dade207d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 p=$abs_top_builddir
 
index 7e45b7ee876f87da02eb96ae33d6f76eb0543e4f..2d8dc328e9d27e8b31c4b1fa8735d6fde27143a5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  dd --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && dd --version
 
 printf 000100020003xx > in || framework_failure
 
index 8bfa2053bf847cf6db6743380a0313352d615e21..abe85bcbf5b137ad97d7dc60f62047d23f84e8cc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  df --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && df --version
 
 df || skip_test_ "df fails"
 
index e58692d206224d39f8752936a06b48f9dd0efb08..5c987600294393d15eaf305433539a6a3e2317ed 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  df --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && df --version
 skip_if_root_
 
 touch unreadable || fail=1
index 61bbebce8f08fa096ee40b50482315f973e97b81..0021fdadce6e52e696a5ad48db5fe4cb6928f25e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 # Creating a 2GB file counts as `very expensive'.
 very_expensive_
index 8043b8ae8fe8ae4493af6fa8e722e6b0b80e5824..f416111ed85b6f8696f4442b61e53b2d63dc17ae 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 require_sparse_support_
 
 dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
index 6d3eeb1e72dbb1d8f01fe634bb8a04b74c771c5f..b96d861c84379a089b526e49d5dfa83e05d322a0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p a/b d d/sub || framework_failure
 
index 8e4feac3bf7c0bea0729c1b7eb646c68506c031a..0dbf4854e1f71a39cc74dcee1fe1e525b2b5018a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p a/sub || framework_failure
 ln -s a/sub slink || framework_failure
index 57118f741548fe4ec45f074dbcd490638fc93cd6..1743b04480a0d1de53f726eeacb24d6b61c234ef 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p dir/a || framework_failure
 ln -s dir slink || framework_failure
index 9649623b0dd1fe6c12a156c1e40c46e40a50a177..d3295cf68360e35ef8f6d8ab146592e414f73f84 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p a/b/c a/x/y a/u/v || framework_failure
 
index ac9274e36f2842ac6d930f345c44b4dd2aa7631b..728ce05335b3b6cdf67308170b92df4fe8a7221e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 # Call this an expensive test.  It's not that expensive, but command line
 # limitations might induce failure on some losing systems.
index e22320b56fae50b89fc4ccfef23a2c3be923ce60..68a7e2245af9b0dd2ca79b98302a109e376ea71c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p dir/sub
 ( cd dir &&
index 4c7b9b875611f0da2d66d714696ff529642e212d..24242815d37f28e1deffd578d4845f332576cc6e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 skip_if_root_
 
 mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
index 8504d643802aae1c78b2bf8d225cbc220252ed83..0be254c784024643df99c506f73307fafeef9482 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 skip_if_root_
 
 mkdir -p a/sub || framework_failure
index 1a4bf9fe697a8c3980adc5732dd203c7b656e407..a1656b2174046efa2dc0c19d828d2b09cd34a622 100755 (executable)
 # Before the switch to an fts-based implementation in coreutils 5.0.92,
 # this test would fail.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 skip_if_root_
 
 cwd=`pwd`
index 73d32a676184790b1f27d6bab231fa69ac96ecc5..2b38e69e7bb67732c1fa971b2874d59a7ddb7247 100755 (executable)
 # on Linux+PROC_FS systems because its fts implementation would revert
 # unnecessarily to using FTS_NOCHDIR mode in this corner case.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 proc_file=/proc/self/fd
 if test ! -d $proc_file; then
index 06843dcc38afcfb67623ca0cc2d6a17ae22e698e..391174a3d67254d24fe706601db7476c77802df0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 # Create lots of directories, each containing a single symlink
 # pointing at the next directory in the list.
index 4aa3a5672e4fecd1b5565923914f747357d9913e..d56bc753e8d43c550c813352c47aba7dfc760120 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p dir/a/b || framework_failure
 ln -s dir slink || framework_failure
index bf00ec647a4e09b4025d963cc2e3379fe662a389..580b527a4445400092fc178eb3e42f2e1a59c81e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 skip_if_root_
 
 mkdir -p d/no-x/y || framework_failure
index 53ca9ebfc1626b0207421811d451657f035660a4..bb4d7cba1c0af41ffc05c22fd2c5a338574b37c9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p b/c y/z || framework_failure
 
index 8bddf014ead61bbed7764224525461c8e9e59f80..bb2b165c500ae41e6abca5d0434a191a5bad9eef 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir a b || framework_failure
 
index 1a849bb104a3b96b4a7056fbeb0dede3a18ae2d1..3434e3ef3e2a0296e0e758ca132605d8807bf780 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 require_readable_root_
 
 
index 5c2b125c78894747934ebbe00293faa356de72fe..092ea129226ca340a4294073fef1a1fc1c6d9056 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 # Determine if `.' is on a local (would non-NFS be sufficient?) file system.
 # At least on OSF/1 4.0d, when using an nfsv3 file system,
index 87fe62a69caab9ae58f9a87dc296c0d87994ad90..70549a80da5a6d8ddbde2d7151d9b552ae009163 100755 (executable)
 
 # Before coreutils-4.5.3, it would remove a single trailing slash.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 mkdir -p dir/1/2 || framework_failure
 ln -s dir slink || framework_failure
index e679921fec59e1a4c58702e0bc3db9da73beb52b..ed544b09154e74137be9721cc4fff0554d8a1283 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  du --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && du --version
 
 # Run this test from a sub-directory one level deeper than normal,
 # so that the "du .." below doesn't traverse sibling directories
index fa9ffb35085fc488895dcebbc188d82210e66313..90ff71ee0eba368b50631bb0623941aecc9146b7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  id --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && id --version
 
 # We don't need selinux *FS* support to test id,
 # but this is as good a witness as any, in general.
index 7ea103b28d0f01047399fe375788969a407548ba..6470f5dd386f75da19187028688c58d6c203d222 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 skip_if_root_
 
 dir=dir
index e342e23df0a42eef3fdaee3cfa5c4ea2775943f7..acb92a9a602d90b6c5c5d28399b81c091ab37ce7 100755 (executable)
 # Note that the tests below use `ginstall', not install, because
 # that's the name of the binary in ../../src.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 
 
 file=file
index 960898c52ea3040868b96fb5c8f3cc017ab2e3c3..b7cd17a2285521c43ada08e39380ad5c33c06f58 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  install --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && install --version
 
 
 ginstall -d d1/. || fail=1
index 681a60e9a7c9b538cbe71d00ac10e803914a3b8e..ea6292c792456bc714194e266084cca516c70089 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 skip_if_setgid_
 
 mode1=0644
index 29ff2503cada32b3b7f7400760c2256c0bbfbc15..a36aa1efe6a5680089661d2fae1133455e1e9e55 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 require_root_
 skip_if_setgid_
 
index fe8e5a61b3841f59a57e489da852314dcbad59dc..8818c7359ffa54f4c057bc75ebfdf37d5e01090d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 require_selinux_
 
 
index abe4b5fb09a1179f6983297c75cba93792cc03c9..71001d9d97c1da55af4417b1e4f400f3de89345f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 
 working_umask_or_skip_
 
index d71bd4a0108107c81c9dfceca7997e04472cf519..3092e9249d2b19750c0e149291092e5f426d42a2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ginstall --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ginstall --version
 
 
 # Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
index 83d7e629b2c3ecb1dd236140f6e6da9c5c8bfe03..f07ba94931d07f07bcfde41140a38219d594c37a 100755 (executable)
 
 # Based on a problem report from Jamie Lokier.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 touch a b || framework_failure
 
index 6dfce51639216a1afa3e032abc44ff30ee05862c..3b3f6ec715685358780a4f772d68a15e4753e00f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 touch f || framework_failure
 
index ac74bb97dd650773329a11b6d544ff449acd70b0..a78b738ad2d09be41e942e508bcfc920cd5d5e94 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 
 # ===================================================
index 362bf354ca76852868bc8fac07dae38869eb11c8..de03890f4be7151fad1b3420c441e1a01ac283b4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 t=tln-symlink
 d=tln-subdir
index f7d51e8bb1ebd3268bc18ed367d561ba448d82a1..1020da270bef09d285e3671c65f3cc93da9a663e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 touch f || framework_failure
 
index 3865e2cdec2909236e8435406afe1b8d8883f1c4..1f1ebc2d51638190188900502cbb60e57ae5aa8d 100755 (executable)
 # ln: `d/.': cannot overwrite directory
 # Based on a test case from Dmitry V. Levin.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 mkdir d || framework_failure
 ln -s --target-dir=d ../f || fail=1
index 9b50d5e4d1b5bd53cb902a2ea8224b6b20159a94..21c22f480b73bd4076bfb5f7c98672e42ec54926 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 for mon in $(seq -w 12); do
     touch -d"+$mon month" $mon.ts || framework_failure
index 3997c731efc3bc1e64f247b85d4dcee572a1e675..200060ae86a4abf6940e03b98005de7cd849875a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 require_root_
 
 grep '^#define HAVE_CAP 1' $CONFIG_HEADER > /dev/null \
index 1be68cab6000d3dc43be154d37ec9cfd49d43677..683ee4e9f87746a12ec19f256a1f16ce508f2fd9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 long_name=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.foo
 touch $long_name || framework_failure
index 29b872c2163cfa1e9f38fd78296f7c4187070d3a..b691ae75c08aa2151b4a954ac0bfaa909e066fcb 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # Don't let a different umask perturb the results.
 umask 22
index e7a68299e48ab0e7cfb20db6977937306c82e26a..9d946a09b56b9e4c463af756f1f9fef26ad0ea04 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # Don't let a different umask perturb the results.
 umask 22
index f7d97833a3b1e67e2a3ff0be4f6c6d5ef504023d..f544df266a845f4322209dca2278a83ebb9a0512 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 ln -s no-such-file dangle || framework_failure
 mkdir -p dir/sub || framework_failure
index 1d9c0ee1b6e1e78c9be4bd8f309d9a3af8ba5115..b59426d83577e62fca0d0247551e21426c7481c2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir dir || framework_failure
 
index 7557166ba48dcf9c9ec440cf323b09ccf9d6485e..07a8cd433062d7a193baef96588317f64cc2ed22 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir sub
 cd sub
index afa9947d8e3fd0ec29bae21451d4342821c49d41..00e49bac921484f0486ff6c77931b6c848634444 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # Isolate output files from directory being listed
 mkdir dir dir/sub dir1 || framework_failure
index b237adc394e524d01ec3166bc7dfa642364394eb..be89efcab989bdde3c3aa956bdf3ddd6fe3a9df3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir loop || framework_failure
 ln -s ../loop loop/sub || framework_failure
index 16a80f25b070b7f0d57ce07a41f298bde33941d2..08ae0f8b97d3948654e465dfd32a5f6eaaf9fa33 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 touch f || framework_failure
 ln -s f slink || framework_failure
index de73b8d8040df2602cd2c8e955932fab50530673..b35e527d4112b9bac9c3d1736728f241deb7e715 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 seq 2000 > b || framework_failure
 touch a || framework_failure
index 20a94c807112290e51d0f035f1cd6f513b36a250..46850e8839692e50d8ce00a93db9eb4cc939caed 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 working_umask_or_skip_
 
 touch file file1 || framework_failure
index 9eb32dce3d6c536315919c5f3a69ac6a89b0a5fa..288688b35787eb87436196daf3a1332476cf714e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir -p dir/subdir || framework_failure
 touch dir/subdir/file2 || framework_failure
index 04b99edbc96e3d3d51dc19128ae20b4d00cf4a3a..c826202699b89cd2502cff6266af7f1a837edcad 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 require_strace_ capget
 
 strace -e capget ls --color=always > /dev/null 2> out || fail=1
index 4173ee84f802154bbbc5015a29ad7122631892ee..f0dbb96ad2b92f3fe929934ee4325cbbbf647acc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 f=/proc/sys
 test -r $f || f=.
index d03ba06f953acfce49b88e4fad7afd7a1fb26d42..9a38627c929c8d5af540c2cd5b0b0afe7033365e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # We use --local here so as to not activate
 # potentially very many remote mounts.
index fe82241ca8aca15bc7ec5cb37417e2aec6197814..a216249d10bc9f5b2bd4f237597c18b04a76348f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 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 6aaab53384cc24ed97fd0820b40195af9ea675fe..bfc51aad35d3c64cc85be3821d8d3c9b4764f7cc 100755 (executable)
 # The trick is to create an un-stat'able symlink and to see if ls
 # can report its type nonetheless, using dirent.d_type.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # 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 4a2b6c4a1659a29ac81ec2e986932bad2b535e36..e7feba55265fc0c94b142df7294ad48b27cbf8bc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 skip_if_root_
 
 mkdir d || framework_failure
index 7af9e344d53a254909a20927a70f78b5a71693a1..f9b6bb59f2572d8b3c520842129f99f1b0c1bb7e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 require_strace_ stat
 
 touch x || framework_failure
index 25b2021e13e1724cfc88e9482b0b65073865e694..00a08140dd50712902564bb125b0f528ca348d18 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 
 root_dev_ino=`stat --format=%d-%i /`
index bacbc73d70423f7895eda59f009ccc74a993e7fe..9db9ba61d24387d95943177d9d5cfd7f6bb64dac 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index 8d965812443d2a57462a3d0c6dacd93ca28091e0..ed6ef625f7ca9a2c81e33d0091df8e9cce99c639 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 mkdir subdir || framework_failure
 touch subdir/b || framework_failure
index cd6f9df8a8eba5ff5bb4a5ccbca9c6d01773695c..303c4e268bbe9d4a31f5f8cd441e896f27bead58 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cat --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cat --version
 
 # Use a fifo rather than a pipe in the tests below
 # so that the producer (cat) will wait until the
index 9219d86aa7cb7ba70fbe3c805516e51e8c8af16b..7214c25c8c72f36d3a5b4c0d94c03e7cfc83d6ea 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cat --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cat --version
 
 
 f=/proc/cpuinfo
index 72961b07765c88865ff97035c6f8da83b41306a1..3aefab51b8ab1dc618916ffa885c3b7b28f9d6f5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chcon --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chcon --version
 require_root_
 require_selinux_
 skip_if_mcstransd_is_running_
index e099256d04f01b1fcd32bb698403791848469df2..4daa848cfc1b0f1c6283c8e7d20e4495c193aad0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chcon --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chcon --version
 
 
 # neither context nor file
index bf79c05ce23a314869850d14c8833e076d133622..e671f7fc8c3dec6d07ffbf908556ff3d6f680b87 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chroot --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chroot --version
 
 require_root_
 
index 6b4e2d8e1407d72c3b6f70578627d7d48b7e8c1b..a3044f70b5f8ea8a447212e4936e4fac4825631c 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if test "$VERBOSE" = yes; then
-  set -x
-  chroot --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && chroot --version
 
 
 # These tests verify exact status of internal failure; since none of
index c7b0b65a96a3431c90ce38e83d1c3ff3ffce91ed..e236558dbe8abdaa3ace6b93ba93812b70d93738 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 p=$abs_top_builddir
 
index f365da33556ea0762ca3fa01cc2adde4f46db5a4..98c704c143978c270913e2469da7b6d804d0832a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  csplit --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && csplit --version
 
 
 # csplit could get a failed assertion to 2.0.17
index 0d184131c07b783e30aec1647f8b39c3cdcb142a..a9f19a55b4ee5237d80bf0ca9e0363521157ec32 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  date --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && date --version
 
 
 
index 730f841a3da696c4ac05a9c7e934bfda2c52ed30..22451c53afc2c1ef18fbb25afec52f849c3f53c7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  df --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && df --version
 
 case `df .` in
 *'
index c7cada4993b28d7e3154c06408fe81a6fa5385bf..bd4e0bc7ca77914f6e10019f6168668dd1e555a5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  df --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && df --version
 
 
               df -P . > t1 || fail=1
index 96a4eaba63464a7b9099f5b0384c70079b3c8e24..11343a1ffb5a2d4c0b1abb9efa9fce0a115cf949 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if test "$VERBOSE" = yes; then
-  set -x
-  env --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && env --version
 
 
 # Verify clearing the environment
index 28f4ce4f2d72d07ee38de195281762d31aecd5db..a8e1fa624cb9b5ec79097bb317cb50ae1bda38f4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  false --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && false --version
 
 false --version > /dev/null && fail=1
 false --help > /dev/null && fail=1
index a8be381f1489ff8769a6d11f33d24d665c52edb4..3fb98e5727f7bcfc2f01d068826e420313c7d916 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  fmt --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && fmt --version
 
 printf '%2030s\n' ' '|sed 's/../ y/g' > in || framework_failure
 
index 5c7989e1d380a6d2f74021b3cdb182bef008cd9d..ea4b94ac7ef1efa0aa96c8bf429c3ac8a3b529be 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  groups --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && groups --version
 require_built_ groups
 
 # Coreutils 6.9 and earlier failed to display information on first argument
index b3a87873b6198d5905bcea5c64a4d799f1b37151..ec157a26cf71208069bd5e83c4eaccea0fa5a964 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  groups --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && groups --version
 require_built_ groups
 
 groups --version | sed 's/^groups/id/; /^$/q' > out || fail=1
index ab933ec7bbcdca6285008aa82219f6b34050ad2d..70a0b45e83daab44d7f790dfd390c7182ebcf03b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  head --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && head --version
 
 echo abc > in || framework_failure
 
index abbf22c0abc0b93c532d8e29fb3e5d24992763ba..8d5d00a276ee8857ce714a8b106baf701bd460e0 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  head --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && head --version
 
 (echo a; echo b) > in || framework_failure
 
index b49fbc6929612f0fa58bba5b07ff9f51162d11e2..8e380944cec1662d7dec665f932fa15550c302d2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  id --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && id --version
 # Require selinux - when selinux is disabled, id never prints scontext.
 require_selinux_
 
index 0b50930c8ac5da499999cad4ba71d5cd212d0233..8a6eea34d16a10d4ad7b7f13ebfd9d3a9367c9b6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  id --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && id --version
 
 id -G $(id -nu) || fail=1
 
index eda0f0105a6a083180e765c6a3464c51e0635158..721fb8128b370813dbec8955fb4c4161c4351614 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ls --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ls --version
 
 # Avoid any possible glitches due to daylight-saving changes near the
 # time stamps used during the test.
index 872249262d0a5d8254dcfa78f1ac2370b15d180a..049ed0f72d3a18cb607377547ad666b11596d440 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mknod --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mknod --version
 
 
 umask 777
index 3a724ad8348da393c175d209eefbad226f680d3d..939a9aa620d01ce0af8e5e6de9dc6779257a2654 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nice --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nice --version
 
 tests='
 0 empty 10
index 944023387062333aa5997d5b7ffd00174f2f8f8c..6c8314c6be79a45364f3d01e05ced4c8333ffc72 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nice --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nice --version
 
 
 # These tests verify exact status of internal failure.
index 506501d91a87aa9a3599aaaac22166c827b74241..81d0a40deb5259cd5b05e7f0c2319c86f6dc4e9a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nl --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nl --version
 
 
 echo a | nl > out || fail=1
index a7246df16e8eb73e2d6fac9ba9169984e132c296..9d3d76aa61834a3fd6374f94096986af550bcf5c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nohup --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nohup --version
 
 
 nohup sh -c 'echo stdout; echo stderr 1>&2' 2>err || fail=1
index ea4ba976c66cc046b0f5aa524634ecd9a920581c..424bbe043be8f5097639ad4947a52f097aa9b4f5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nproc --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nproc --version
 
 all=$(nproc --all)
 available=$(OMP_NUM_THREADS= nproc)
index 03157c51bb4787a0bc817c2d0835864ca48a1c91..1f12c9b96a8d66458084e312873f69b63ecb426a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  nproc --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && nproc --version
 
 for mode in --all ''; do
     procs=$(nproc $mode)
index 037ea371c28586b70f87950de0b12d5df6cf638d..6d09f8e983fb38851961134e9faedff78e6087f7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  od --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && od --version
 
 echo abcdefg > in || framework_failure
 
index bc482d9f53e991f6bf7513417d22c563fc9fe6f5..0aecaf05b6c8e1ed63effcc264e0ab92db5860f1 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  od --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && od --version
 
 # Choose 48 bytes for the input, as that is lcm for 1, 2, 4, 8, 12, 16;
 # we don't anticipate any other native object size on modern hardware.
index f25669efefbbb1f9be087e2a867792a0135b7d85..d9c9338002eea63b1cadbd2b22d184b3a1448f3d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  od --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && od --version
 
 od -t x8 /dev/null >/dev/null ||
   skip_test_ "od lacks support for 8-byte quantities"
index cc0def8665f7b7be5237b222f978dd8add2361b8..ae32c9c295921b1804fac1136e406fe075da34df 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  pathchk --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && pathchk --version
 skip_if_root_
 
 touch file || framework_failure
index 7cd5f847734a305bb6176a75db2c106cc5b51535..637c61d137e3f8eef5bec17b5a649403201f5a64 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ptx --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ptx --version
 
 # Using a long file name makes an abort more likely.
 # Even with no file name, valgrind detects the buffer overrun.
index dfb2ba19a242ecbec043769c1b0b3776642de120..ab66fa12a976403ee226d74aea8779d1ddd8c846 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  readlink --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && readlink --version
 cwd=$("$abs_top_builddir/src/pwd")
 
 # To trigger this bug, we have to construct a name/situation during
index c38c91d3c3477fb8146ae9463e5d12793d96965c..ee20df041261926710ad6c59ee989180206b3c6d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  runcon --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && runcon --version
 
 diag='runcon: runcon may be used only on a SELinux kernel'
 echo "$diag" > exp || framework_failure
index f9450a2eae6d99036e93d68c843a7c16d0116ebc..e07ea82db1aaf18ef796584d714de44c289341a1 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  seq --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && seq --version
 getlimits_
 
 # Run this test only with glibc and sizeof (long double) > sizeof (double).
index 289b4544c04825b607f68b94d5c2f15125140ea9..2aeef77ac8e61d7932524467051550dfa00e1691 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  shred --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && shred --version
 
 
 for opt in --exact --zero; do
index 8d92c053af7f0e224dd0e5666dd702ce42f86f54..2298553eb8c26de375531d65f3ffbbe55d4809f6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  shred --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && shred --version
 
 
 # shred a single letter, zero length file which should result in
index fbd30aaeaafc42dc3a863b20fbe7aac1ade02b4e..0e2423cff230609aac84381ab3193b721981bc5a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  shred --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && shred --version
 skip_if_root_
 
 # The length of the basename is what matters.
index 6adaae37f5ced34acd398b366d9a46b6872db0f8..e612ee0bc87e3d6b632fab1c257784bc5733738e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  shuf --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && shuf --version
 
 seq 100 > in || framework_failure
 
index 5ad28d69d5516343f0c7412d448e1d312abd3201..bba07604da936343c01136411c01d4ca7142113f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 seq -w 2000 > exp || framework_failure
 tac exp > in || framework_failure
index c68ceece1dab45d3c597d9906b5083a96a72ca68..e4b8adfb31791e1ab04165aa50923613cae0df0a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 # Skip the test when running under valgrind.
 ( ulimit -n 6; sort < /dev/null ) \
index 1dd3895c9e9cc2a67e87f6d947c22a2336dd060b..ee65a7284beaecbe979e95b27011a8e9425f1f0f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 number() { cat -n | sed 's/^ *//'; }
 
index 1ba6c0479c5e46112f2426745754a3654c0a55c7..67668a135a73f0ba055844f4ff70919ac75ec996 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 cat <<\EOF > exp
 sort: using simple byte comparison
index 04071598ff43bd5ac20c04d882ea77672269262f..bd6a9b88b5f493b41570898fd93aa60f9899c324 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 # Return 0 if LDBL_MIN is smaller than DBL_MIN, else 1.
 # Dissect numbers like these, comparing first exponent, then
index 56b85181147745948299852ccbec297d6f3291ed..89a40849054aca4435995213082b9f395dc38190 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 require_ulimit_
 
 mkdir in err || framework_failure
index 5ac6afde5734d96e8e16217ea058a5a3e880b85d..c0fb2eb9164538c04c4337f46f5ac57de5000642 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 locale --version >/dev/null 2>&1 ||
   skip_test_ 'The locale utility is not present'
index cead49ef528c79320e82403ec0fa7629e4fe868c..07169e3c6f8faf5758b36814aeb38d618e1629b3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 seq 100 > in || framework_failure
 
index 741ee8b27eb26981b9c99b74c2c28d369c7425aa..e6a07c27b71e34d54797b2149128587e83a842b3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  sort --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && sort --version
 
 cat > in << _EOF_
 gcc-c++-10.fc9.tar.gz
index 2fefff59d8ac2d8861afb1140bc5677899176644..27269e2dbfb94e5ebb799a031394d77d33313a6f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  split --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && split --version
 
 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 0ce6f57340b3a06267fb61bb2950942c25037bde..ec1941691a7d96ad8a961a04ec2fb1422f04705b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  split --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && split --version
 getlimits_
 
 touch in || framework_failure
index fb07a27a06600a8b075d2501148c23658bedf90e..2e64a2c93324de5bd59c220f0fd2e9e3a8b09e3f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  ln --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && ln --version
 
 printf '1\n2\n3\n4\n5\n' > in || framework_failure
 
index 3133c51030c93a815b79ff9fa7e2d6d942544a32..5e58ea46ac1027ee6af1f28e978183fd23c97ad6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  stat --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stat --version
 
 
 
index ea68b08fa5f711340bcfc7508bf6bee3824ee8d4..2e0fdd29aa5085e74c3541b78ab381b2582b2e93 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  stat --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stat --version
 
 printf -- '-\n' > exp || framework_failure
 touch f || framework_failure
index 7210f92fd0995ea1c44369a204b15d2925f5e331..4f0660f22058c836fe2f7d0b446314bdf823a4ac 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  stat --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stat --version
 
 touch file || framework_failure
 mkdir dir || framework_failure
index 0537568bf7e439c07baeb843418fcee4e6bb3340..d80e3d41392717853d1e4c10600dc9356d660cc2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  stty --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && stty --version
 require_controlling_input_terminal_
 trap '' TTOU # Ignore SIGTTOU
 
index 5bf709f78aa087f1b3b1083c057400d5492174d3..59dddc83e9db8c5d0e0ca61b47468fe00464ab89 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tac --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tac --version
 
 # See if the envvar is defined.
 if test x = "x$FULL_PARTITION_TMPDIR"; then
index 6c4c85904355a904fe939f1baf36cb14bfac5db7..9562966ae9c5407705ac3584ea9a4c6e63bb683a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tee --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tee --version
 
 echo line >sample || framework_failure
 nums=`seq 9` || framework_failure
index ba688c00daf598eeafe86eaee9036a40993eb770..e72eadeef52108b2154d87ccfcdfd0b8741594fc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tee --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tee --version
 
 tee - </dev/null || fail=1
 
index 6c9b02e80838120bcc0b6e59ba0ed48905db0176..8c92026138d80e86639fa42ab8cef40cba8acbb5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  timeout --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && timeout --version
 
 # no timeout
 timeout 10 true || fail=1
index 42d7b13b26c5c932216b796b6aabddd8d868d331..c5949e62b8fd39abb0481e59deeb28017c554561 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  timeout --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && timeout --version
 getlimits_
 
 
index 3499da755fc927c879cf1cb5a5255d28a2a0e0e2..801b55d17b2b72c43f80e8bd10dd6a56f8e43d6e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 ln -s truncate-target t-symlink
 
index fe33857a2a856823345c4455e3984043557fff09..cc94dc4bccf49d3dcbe1d320a7ce8497b06ee6da 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 # truncate on dir not allowed
 truncate -s+0 . && fail=1
index 5ce248113e189201ab647ff9ba752f061ca97ce2..68a3842365f23e6b939abf2f21b507252e9225c6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 skip_if_root_
 
 
index a4c36cb90b036b0981c886991dbd8288a9e107bb..469ba5e970bea2a4565631a447e823d981ba68aa 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 mkfifo_or_skip_ fifo
 
index aa43d802689f36be03331591de918e67a4c41e4c..c5a87c2d074243168c807a3d5effaa90f2ca4c18 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 
 # truncate -c no-such-file should not fail.
index 0e9519f6404e197cc8a24e963e5238823df3fb71..991c1c83fbb6c68e6346454383705da29246e2cd 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 getlimits_
 
 
index c2f70197085e5c120f762fc01f94c1a9dd946dc7..980ebffaba6ef7cc88689268a6a890b47d060aba 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 
 # must specify at least 1 file
index 9d589564f2348ebb0a493533065d62af6fd6cdc7..a82fd9c3215cd48c7b4bfef708ad32ea4930babe 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  truncate --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && truncate --version
 
 
 # mixture of relative modifiers not allowed
index eb2aaa6491b2fe081af48422ef0dcd7c384fbc99..7d3634e957d79faeb7e151f0b6096ad1c504c944 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  wc --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && wc --version
 
 echo 2 > 2b || framework_failure
 echo 2 words > 2w || framework_failure
index cd60d9f36958b5b3395e21874b73a1b2fec044aa..9c8e8a5d8ddcf3291760091fc517248b48c33fdc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 mkdir --parents "`pwd`/t" || fail=1
 test -d t || fail=1
index 863f188dc182cd4e6660a147dea31e5174025638..735d7ad08087f92a81848a537bdac44715154e25 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 mkdir --parents "`pwd`/t/u" || fail=1
 test -d t/u || fail=1
index 116c794be946e5b6aa4fb3c46495213e92c4bb33..ddc812e0ecbec68dabfe484b7a860fedb39262b6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 skip_if_root_
 
 mkdir no-access || framework_failure
index 49843f1c0d3e8827b4a3d2cbd08e9ce83bd75376..fba112df2895f5658568809199302b6b8b9a80f9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 
 mkdir -p d1/. || fail=1
index 687c0ffed616764d22f083503c2be5fd9733d8f8..e2cc9c93f954a91b4fad73dbfbcb5c05c2222b60 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 ln -s . slink || framework_failure
 
index 6118b492a51a5b5fd44641f779badb37f4366090..aeae33da9b2f0757e4bb3909ce90193693f18deb 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 mkdir -pv foo/a/b/c/d >out || fail=1
 
index 405cc19426348a631e3c888086df76d04d1e340f..951b6f9e01e860e3cdff1cf3395cadcfe8a463dc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 skip_if_setgid_
 
 mkdir -m 700 e-dir || framework_failure
index 7707e4f8d19c59eae2de44ea6deb8c6e814c6809..0cd0a5581126f6fde4c153e5064f94559efb7067 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 skip_if_setgid_
 
 working_umask_or_skip_
index 93d203e779feba0a68bcbe56819c31bac5e96a62..7ed437021db05820e48bb0df6a00df0478d67d8f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 set_mode_string=u=rwx,g=rx,o=w,-s,+t
 output_mode_string=drwxr-x-wT
index 053f98df3d455e77142d8f12f0cfa5763bf97ffc..ed72880c741a55d180ee85732425e28ce9888b57 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 
 
 mkdir -p dir/ || fail=1
index 18a44ae9a53ebaac382e9c1175b381a17f516db9..2c8ac52f4ea70eab76382205a7850b49b986738b 100755 (executable)
 #
 # Demonstrate the problem, as root:
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mkdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mkdir --version
 require_root_
 
 # FIXME: for now, skip it unconditionally
index 1d313c59e10bec0f0ebac3474247db2178be655a..5df2d60fd0babfc677f41d9bd1ffa8914284322f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 require_strace_ unlink
 
 # Before the fix, mv would unnecessarily unlink the destination symlink:
index 49949bd7cee8f7398a20b2c89a6c827132d07692..4bc0e73fe1a4fd5e74af2c98a851d8d86070f4ef 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 require_strace_ unlink
 
 # Before the fix, mv would unnecessarily unlink the destination symlink:
index 3c2bb52620d3f9537535aaac939ba18df322f381..a96edc680a1905d7fdc9993986532ea3fd20becf 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir A B || framework_failure
 touch X Y || framework_failure
index 45ca17cbb17459366f297e9968cf825a84fb0bca..fe5c6804960398cf79f6d9934a4502ae233c1432 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index 4a0b37a4a0aae61317bd53e7db7704d5555915da..ebe2a673f8d8a4dfe57d5f7fd9820c8c98c9058d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir -p dir/file || framework_failure
 > file || framework_failure
index 8df625db5fcfa7ca95bf44df80180d78a111fbfe..de7770b5d0dde58e5985b12023f564152de68df9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir -p a/t b/t || framework_failure
 touch a/t/f || framework_failure
index bebb04a26dd0658a301a35a98384c67e3a304c0b..708efcbf4523109f60df6918cfe66b4ce2d50c54 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 ff=mvforce
 ff2=mvforce2
index bf6675fe9a195f968f7cfeeff5636d8ad6410c69..61d71c1faf26497c5c8a2dd332127fc8594748d7 100755 (executable)
 # directory, because it requires use of the --preserve=link option that
 # mv enables by default.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  cp --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && cp --version
 skip_if_root_
 
 mkdir -p x dst/x || framework_failure
index d3a513af84f508860ca1dfa46790228fb46dcba4..b22969eb468907da0081268b8f5cd92052af0824 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 touch a || framework_failure
 ln a b || framework_failure
 
index b3d5ce6d6ca14225332137f374355bdd436336b6..3d7c6abf0d76d5cd9e65f4dc114df15020621bab 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index 4c81752c6442f31d2318451283d2f6ccc5dbbcb2..8c0dfe0fa47e27a5e67c5465c38a3be89d87a692 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 touch x || framework_failure
 ln x y || framework_failure
index 7247d94327515c2ab8a5f8f647519af6f660eb2e..fededda975dbf327efe9aa5c2878a5ade2479c4a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 require_controlling_input_terminal_
 skip_if_root_
 trap '' TTIN # Ignore SIGTTIN
index dfd7d8a1b89397bfa1748ed8edd156fecae6b3ab..d5d74656194d9d8f6d0b2540c5f912cafba06033 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 for i in a b; do
   echo $i > $i || framework_failure
index e1d8a523595859e02268c99baa4da69a377a0a31..e73d4b209f1c071d3ffd4906522c6af632953352 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir a || framework_failure
 touch b || framework_failure
index e206d2ccc78c51d1d61216c527728f39921d3d48..2d7630109569746d52785f6262d384e74a7ef43e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir a b || framework_failure
 echo foo > a/foo || framework_failure
index ea999d84b52a9389e7acf8c7b3955880261b137a..2c28a2f713a69657ad751a8cb3cf3eeac3a00435 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 dir=toself-dir
 file=toself-file
index 720bc98393f69618966840a5a0c61c2bda0272cb..c5d1bd5c4cc749d4a419eea0e13abef55aa64175 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index d11365a992c49075e91687ce9ba903f7f056e4d4..8a506626cb2cff66a1b0a48189432a34d6511342 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 dir1=is3-dir1
 dir2=is3-dir2
index 6182c890967164e57bf222f19e971a1b133692b8..18a32dc591aa8542945a51c310db76994cee987e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 touch file || framework_failure
 ln -s file s || framework_failure
index 424f72517d8ac18f867ccc88bcaf26858d210cb7..3155397e79171e7eb782b9f7896b57a08fd4c62c 100755 (executable)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 # limit so don't run it by default.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 skip_if_root_
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
index 5886341c0013a1e2f6fc22ac2f6424ac4184a689..32739dd9f64cd0da60dafcfe24487f2ccf64fbf5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 
 # test miscellaneous combinations of -f -i -n parameters
index 35bdc84c6813cbf0173a4e0d6c9046ab22b69875..fe10acda7e374951159ce6a68bd9fbd9c3f81020 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index 080a290db2138e18e72d879c28df6141416421e6..f1d886ba583ce8745e233e74ded2fc135343bce4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir -p d/sub empty src d2/sub e2 || framework_failure
 touch f || framework_failure
index 41240c0738480d3ef17a4d0db39462a419f1ddc8..c167076af7edb729778616fae4d3ac42ea35641a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 skip_if_root_
 cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; }
 . "$abs_srcdir/other-fs-tmpdir"
index 5b372d421c82388298d5b21ec442e7d9ded61103..b97b0a0b5eae4962f89e3af895f0cb1af9e30767 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index ff32aa9b48bdcf2fa19451649797a74ae8d3ca06..3f18045b48f0b0c41f3934fd1a65ffac08691371 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index 27007bdbc71591bc1d0bc9ede46183f86872ff7d..01b1697d45cdcd715060373fa71924766e7cb401 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index 84b5828fdeea4ea0db1edb53b28cbc405f86ef34..fda23ed2d63a1da48335944d8ae097f79fb157ed 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 skip_if_root_
 
 mkdir -p no-write/dir || framework_failure
index fbb6ab29b4ce7cde1d95e3c6d288ec57aa120e1e..513c32565197fcabcb649748c8df79f4d5fff6e4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 require_root_
 
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
index d9d77a83fe5877b59312fa2f06dae59cda593f00..5530eee4fbfa06c5ce6465480af28b84a7c704ae 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_srcdir/other-fs-tmpdir"
 
index c23fbdb7300537c09535a7da915a7171b987ac58..b0b362c8fd8cc5a4306533468108e03b31c06b3e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  mv --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && mv --version
 
 mkdir foo || framework_failure
 
index 41656f47774803a2b4af2f5312b519bf3cd77f27..d7e934e390a3a6f0b141ba9dd82daf769a82dead 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  readlink --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && readlink --version
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index 2cfac18a170303215c62872ea1cb1b94ecac9f26..a5020e646891b3607d644e7e7fab65ffdf626668 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  readlink --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && readlink --version
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index ee24e69cda8f820bcda831391f7166f251f5bdbd..cf7c994bdd26ef42cd7f4dc292b27e50455be3e5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  readlink --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && readlink --version
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index f6885ff0b339ca71237337360c7b0a4d5620f846..36dde3dc2e313bd204aa86d04e238a7f72ee4872 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  readlink --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && readlink --version
 
 mkdir subdir || framework_failure
 touch regfile || framework_failure
index e700dbf3889caa956a328513932b5b5a0f4901bc..4af7afee39bfe53912f5fc97d16d89b3f9fd018c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p a/b
index 270459c5b30d88a6e8bd2aaa90070e7d1934a22b..b082901a62fc441cd546d8706f4de659c1c8484f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 ln -s no-file dangle
 ln -s / symlink
index 86166791615cee0295ac9a5c7f33417918ee2547..b21e1e60347923034269e14df956e84a065ae756 100755 (executable)
 
 # If this test takes too long on your system, blame the OS.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 umask 022
 
index cb52b7fed80a991177feaeea25c530532b0fffb3..c90f6073089fa6aa5ad1d3e08494dcdcf93ddf96 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 # Root can run this test, but it always succeeds, since for root, all
 # files are writable, and write_protected_non_symlink never reaches
index c1b6fc4cb9234808b9182cd2e67e01e4e32a0671..8dc19d4fa4271df38ded5433893a23ea8c28d947 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir --mode=0500 unwritable-dir || framework_failure
 
index 7f62bd59c31964998ca2aab0d6ed311b37e71150..816b72d184378cbd436d00150818ac4db178b0dc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir d || framework_failure
 
index e88e9238fa87f7f1f9c65f13377df9cf4478a65e..81d405a72617d3e820eaa700840d80b4ced4f103 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir a b || framework_failure
 touch a/f b/f || framework_failure
index 70c974c6bccff27eac04ece469cb91962198be9a..3aef6abaa776fb3cefd30e5d0058409ced459f5b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -m0 inacc || framework_failure
index 227d4b99748f54f4f88be95ee985b9a0d8b1f842..155de1828835adb159e4cccad81056c3461de2e6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 very_expensive_
 
index 819dc2f19d43952cbd114553bdd86a7c615dcc62..6400d5b844440b5ea150cc4fe8781e44b0d1e844 100755 (executable)
 
 test=f-1
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir -p d || framework_failure
 
index 04b2ad1e310f2f24d1f49cc424b0066ff6d888b3..0085d1f48c4f2cad482e93026c35e76053913bc6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 require_root_
 
 # The containing directory must be owned by the user who eventually runs rm.
index 5d87211f9c2bfde8911cc01876aabd796a726a30..fc20bd69ec9c0cf0758080a772000e1e94dafe96 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 ok=0
index 9573f7a3d02a833a0e8c12027256539843569da5..8a4d66154b215c5a5f2b3e6640af3d7b8938540a 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 expensive_
 
 # Create a hierarchy with 3*26 leaf directories, each at depth 153.
index b73b6172544bd47b94aee04bae2853f88ff26582..20e88e8757d3eeadf75112861666cc8783c75d74 100755 (executable)
 
 test=i-1
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 t=t
 mkdir -p $t || framework_failure
index fa6d911a3e1376bf129bd78a543230f2c2fb5ca9..b00d3ef1bf2d96414f60c0ad914c26464a33f291 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 touch f || framework_failure
index c0548b087970dc9c65743567f7506972fbee94db..3178a9843402c80a2634e84f6f34aefefa66fa82 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir dir || framework_failure
 echo y > y || framework_failure
index f7f66b3ee4206c0f5986196b7d37c751ae70a9f6..9028de8dc0f171fe75c5f90150ebd4cfeec9f2f2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 touch existing-non-dir || framework_failure
index 722e49cb985161d57e0535171582fe1a0eeae423..6e09de67afd170308bfa81f9f654b09669924ea4 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 # Skip this test if your system has neither the openat-style functions
 # nor /proc/self/fd support with which to emulate them.
index 8444f7d36adf576c559e77c08395cdf3967ccdf6..9e15e225801a3c93b17dd64e07409c76afa638da 100755 (executable)
 
 test=interactive-always
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
   || framework_failure
index bc612b0e7731461fa7108c873ee18129520a2f5f..48086d704c4fff0f4ab7149c8f184dbc3830e2fb 100755 (executable)
 
 test=interactive-once
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 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 e453def757e796b2cc30ebc4f08dd72d2254639a..b48fa948b8f084c991f36032c94998c9dc6845b3 100755 (executable)
 
 test=ir-1
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 t=t
 mkdir -p $t $t/a $t/b $t/c || framework_failure
index ac3e1420bec42b91e8fbcc4ff1e64a7508fb49e9..1b18654cb11552b03e68664f9be7813ee669780d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 
index 9ee0357fe9c39d2094a4f77888aa028ff3ea8024..e85196ce7d171393c6672291a16e74ee5c226bf6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 require_root_
 
 mkdir d || framework_failure
index cb0b713b44f58716599271d1e5f5a1ed3df5d9cc..8abf7dc7197a81ae8d8bbf169e883b18eb616ef6 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 require_root_
 
 # If used, these must *follow* test-lib.sh.
index 64725c7bea4b74ae1d4a75d230d61c2ab8cd6294..83a9cecee0b76b91a028220c5c6a319c7f9ce0fc 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir -p a/b
 
index c1d2d815e74a506a1c9d36fd4dc88b16ef49633c..e07881b0e067ad6c94b9baa59b80aca9475a11d9 100755 (executable)
 
 test=r-1
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir a a/a || framework_failure
 > b || framework_failure
index 445c634c7765693f1a6cf929deeb222a20acbf68..485620fe409c0a855250142fe0115d0ab9e020ca 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir t t/a t/a/b || framework_failure
 > t/a/f || framework_failure
index 3d944f6a9fcdaf20a8a30cabaad0bd253cf2abe5..829685055d1b105fcb0ca3be5d430af32987d677 100755 (executable)
 # And the rm from coreutils-5.0 exposes the same problem when there
 # are 338 or more files in a directory on a Darwin-6.5 system
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir t || framework_failure
 cd t || framework_failure
index 0b6658a4e4cf46c5608ced06eac06e7e7a105862..c8d3f9bc7b1033b3f03631d935697ad2e4fc5078 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir d || framework_failure
 touch d/a || framework_failure
index eb9a0cbd53940a37cba53e6e6f69cccc4ff1af98..c54259469eb854aa6dc757baece10334e03896c7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 require_root_
 
 cwd=`pwd`
index c446d752b921f4a5f04d31ffe0abccda2b989195..be3e546c0ec90bd06f1e142950d8593204a14af3 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 # Create a directory containing many files.
 # What counts is a combination of the number of files and
index 5e54adf3450397fe2d7bf423d4f9e2a7c50e4927..46ae7697165163aa3621a98f050d10232aeff2f5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p b/a/p b/c b/d || framework_failure
index 35fd2f9fd25eb3644276ce3284a14d633c425739..11b153feeafb31700db8f80cd82ee41c70021629 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p a/0 || framework_failure
index 5b90025b84b264bbcfce4fd6403ea063bfd63435..b62dec60314e3e8093aa9d50a1978162e0054a5d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p z || framework_failure
index 0f73b276d33d7d7418d50173cffb43b9e9defeff..571fdb019420b1602456fcdfba6a25ac4ce0c8ab 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir dir || framework_failure
index 311b3ee99a8c7b3aede601b15025482b36c5c4c6..1d27f7cdaae8b66e8ebd3c2a11af5a4781c2ed8d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p d/e || framework_failure
index be988e11f600a8181f3ae1ec88c176f68e493e0b..3057ecbbd8b2b5025960e3efa4ef564719938c1c 100755 (executable)
 # actually remove files with names of entries in the current directory
 # but relative to `/' rather than relative to the current directory.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 rm -r '' > /dev/null 2>&1 && fail=1
 
index 5da31756a6b3309c0a4a7cf7086a9d3435c0994d..69c27474e6a691ad58ac760def8503009ea625ee 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p a/b || framework_failure
index 4627c125ffdf19d97ba5da603a9cf2adfdc1a988..a2782bbba4abb02065e7c208d2053e1ac05d2e03 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 skip_if_root_
 
 mkdir -p a/1 b c d/2 e/3 || framework_failure
index e53d9d934195299326bbe5921a282c05e6b5a838..a9ab828bc46a71df975f048e2f6f1e4bd947209f 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rm --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rm --version
 
 mkdir a || framework_failure
 touch a/x || framework_failure
index cadab59baef583169d1ed61cedcd2887e00deb18..8c37f8d90db1bb3c3c8faaef3123fd74adc14efe 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rmdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rmdir --version
 
 mkdir d d/e d/e/f || framework_failure
 chmod a-w d || framework_failure
index 97b51125ba73b118246458160c9d41b49cd9f783..08183607e7699a6a80afaed4d29c0545e93525e8 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rmdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rmdir --version
 
 cwd=`pwd`
 mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure
index e035c439c4648c23e291c0e798fbe00445d93aa1..f7d1f0dcebe02557aeea1ce157563c3a4407211c 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  rmdir --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && rmdir --version
 
 mkdir dir || framework_failure
 
index 327c41c6fa4f6d69f1116c29e7e79d6eb9251f26..32578fe573ce8470936dae0e6e2a46df8280c28e 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 require_root_
 
 chattr_a_works=1
index 08cd8886493534300a52a4207f412ccdf4b51273..1fdb76a778bed64713dcd1fdf0e8f00abe817370 100755 (executable)
 #   Aborted
 # due to a race condition in which a dev/inode pair is reused.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 # Not "expensive" per se, but sleeping for so long is annoying.
 very_expensive_
index 066d6af2cfebac081426f2ee96e4b7a7d1352310..fec0525ed8d34fe582b7580eb8adeb1d4667717b 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 # Not "expensive" per se, but sleeping for so long is annoying.
 very_expensive_
index ec262a946990b48eda8e9aba5da4f3a45fe8668c..3496a622fd092def470e908d718e6ed57ab5f5e9 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 expensive_
 
 # Create a file of size exactly 4GB (2^32) with 8 bytes
index 98de2e1f5740a28ec6ffce28a09fae2ff8aa6c20..df8810dcc07030b596cb571ae47e9aa870e1e4c7 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 echo line > in || fail=1
 # Output should be buffered since we're writing to file
index a0e07e6bced90f68fb664790306b99bce5429308..1c50e8b66fd0acde8616571933c459141cf0cd80 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 echo line > exp || framework_failure
 echo line > in || framework_failure
index 895b21dca98da6d6e697f95a3c28444a4fc47d62..7e98daf6a0e6fc287edfa0808b1a7ef2ffc18a34 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 yes > t &
 yes_pid=$!
index c0cca2338ee828853087b373cbc122c7dca46424..f3018a57af4b46ed691797872df8991a265fdd49 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 touch f || framework_failure
 
index a6393df56653870270d46084ec2506a167901135..2deff69ae6e3e4720bde5a6eb79ef6ff1f244871 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 # Don't run this test by default because sometimes it's skipped as noted below.
 # Also gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not
index b1286df05fe89a69efe030ba711ee04b8c5c6372..b684a36177e2016734036a7d84e6a0cfec3e7370 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 getlimits_
 
 touch empty here || framework_failure
index bf38c183c627b473c4bcf92f28301e90084ffedf..b6fef16d7cd555fb191248fc0995088c687b4d44 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 echo foo | timeout 10 tail -f -c3 > out || fail=1
 echo oo > exp || fail=1
index 83a2265204f82632ba559e792da2d9777bc51396..426f37b50acc5f37a05a81c6da5032f4ff74a689 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 mkfifo_or_skip_ fifo
 
index 21e275291e5d2f863f288be9525a72c5f971ee7c..3e63bfed8774a9eca5693e7141e08ef8759f23d5 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 
 ksyms=/proc/ksyms
index b98c86863d986d8bf9c4d1b2958cf2c8c9e14de9..404562d889212f3718e0619b9bbd258f0edafbad 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 (echo 1; echo 2) > k || framework_failure
 
index 6a9b59c3731d5cde01d65cf5da295bb017200721..d7badd74f263ca30a6154f22ef2a6eba33d5a496 100755 (executable)
 # It skips the test if your system lacks a /proc/$pid/status
 # file, or if its contents don't look right.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 require_proc_pid_status_
 
index a9636910e1e1084e9a2d17e2c783d88ac38ec1ce..36cfa0e8c381df2f0911f6c4ab1a218a10bbffd2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  tail --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && tail --version
 
 touch here || framework_failure
 { touch unreadable && chmod a-r unreadable; } || framework_failure
index e06c770f298460e5d8d4ece899b3e2bbb667aec7..e50c25765618f5cedea862a8864ce981bef354de 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 echo 60.000000000 > exp || framework_failure
 
index 6847e460b477ba2aae71d2b42d183c150926ca4b..55466c4391bcf9f2f56ececb8f72eeefb98fb187 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 rm -f touch-target t-symlink
 ln -s touch-target t-symlink
index ef1543e26e18971c217d61e09f89f9a1eb3f4bc8..2d61bb58fe87ae0fdf4f767e32f42975da4c5660 100755 (executable)
@@ -2,12 +2,8 @@
 # Make sure touch can operate on a directory.
 # This was broken in the 4.0[efg] test releases.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 touch . || fail=1
 Exit $fail
index e279138b2f197a37d008f93639373499a5f0a32d..e93bf0ac09dadd715607fec422fceb1cc7fe5a97 100755 (executable)
 # fails to work on SunOS 4.1.3 with `most of the recommended patches' when
 # the empty file is on an NFS-mounted 4.2 volume.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 DEFAULT_SLEEP_SECONDS=2
 SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
index 1b7acbc87331fa01ac1f7c39bc5405db997a18aa..a957a8fdbf8b999a01f6b547a696e892c4ee4c04 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 skip_if_root_
 
 d1=no-$$
index bf117d9edd362d14c07cfd1b08cd0cae852b93aa..e6743d16625cd62a8457a7673af6cbdacc30f096 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 mkfifo_or_skip_ fifo
 
index 7c47c61846ced9fa8c0a96222268c4095751f99b..96aa092326213544f414f55f0ac691c8dc9d48cb 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 
 touch -c no-file > /dev/null 2>&1 || fail=1
index 8d80fa5f504d988e7447622148380960f19c10ee..95002e567720a757386f059af1bc70136b2252d2 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 ln -s nowhere dangling || framework_failure
 touch file || framework_failure
index f0805e75df3c370ee131d7c1cbaf816697fee271..d2032550b2a5262e8c9ea96995590a29d0fecb75 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 # Make sure t2 is newer than t1.
 touch -d '2000-01-01 00:00' t1 || framework_failure
index 68eef1fa9d707672d38a581b99d970050424aeb8..9645f4dbd6ccd6d705863497c7eeff7ccf5bbf8d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 if env -- test -w /; then
   skip_test_ you have write access to /.
index b59f0d3bdb2d0104f9a7947c6630a99e9d4e2764..c7215022c358749882e12066c493fe45fb9daf29 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 require_root_
 
 group_num=$(id -g $NON_ROOT_USERNAME)
index 3c0925b0fa771b1d7ff5a8e1020e4a29666ee9b0..9821fc1e4742772f4097862fdad12c9d190b1f36 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 _POSIX2_VERSION=199209; export _POSIX2_VERSION
 POSIXLY_CORRECT=1; export POSIXLY_CORRECT
index 06135c7b8ccfdb752c7dcea8fa390ebc5253666b..265f2880b7b6bf92349cf5a2563efe67624b1671 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 skip_if_root_
 
 : > read-only || framework_failure
index b9f8c2c923ea857f1f0582426194932866f97c87..7e56a305ab935828c64fc1f24d217f94db080cf8 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure
 
index c1fb8833e9fcecbee886cb05ac4df995729f9b1f..97b9100182216a4583fd8626196cf567e1551e23 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if test "$VERBOSE" = yes; then
-  set -x
-  touch --version
-fi
-
-. $srcdir/test-lib.sh
+. "${srcdir=.}/init.sh"; path_prepend_ ../src
+test "$VERBOSE" = yes && touch --version
 
 ln -s nowhere dangling || framework_failure
 ln -s loop loop || framework_failure