tests: substitute the single-program $VERBOSE/--version uses

Automatically make all of the changes like this:

  -test "$VERBOSE" = yes && chgrp --version
  +print_ver_ chgrp

git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \
  's/test "\$VERBOSE" = yes && (\w+) --version/print_ver_ $1/'
This commit is contained in:
Jim Meyering 2010-11-17 21:35:31 +01:00
parent 5c0275e953
commit 293c37b906
348 changed files with 348 additions and 348 deletions

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_
set _ $groups; shift

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_
set _ $groups; shift

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_
skip_if_root_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_
set _ $groups; shift

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_membership_in_two_groups_
set _ $groups; shift

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
umask 0
file=f

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
file=f
touch $file || framework_failure

View File

@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
touch f || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
mkdir -p d/e || framework_failure
chmod 0 d/e d || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
skip_if_root_
mkdir -p d/no-x/y a/b || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
# Before coreutils-5.92, this would mistakenly succeed,

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
umask 0
mkdir d || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
ln -s non-existent dangle || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
touch file
chmod 755 file

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chmod --version
print_ver_ chmod
# Each line in this list is a set of arguments, followed by :,

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chgrp --version
print_ver_ chgrp
require_root_
touch f || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chown --version
print_ver_ chown
ln -s no-such dangle || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chown --version
print_ver_ chown
skip_if_root_
mkdir d && ln -s / d/slink-to-root

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && chown --version
print_ver_ chown
id_u=`id -u` || framework_failure
test -n "$id_u" || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir a b c || framework_failure
ln -s ../t a/1 || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
suffix=.b
file=b1.$$

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir x y || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
echo a > a || framework_failure
echo a-tilde > a~ || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && ls --version
print_ver_ ls
require_root_
working_umask_or_skip_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir src-dir dest-dir || framework_failure
echo f > f || framework_failure

View File

@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
require_root_
require_selinux_

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir a b c d || framework_failure
ln -s ../c a || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir -p a b/a/c || framework_failure
touch a/c || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
umask 022

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && mv --version
print_ver_ mv
working_umask_or_skip_

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
touch f slink-target || framework_failure
ln -s slink-target slink || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir d e || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir dir1 dir2 || framework_failure
touch dir1/file || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir dir || framework_failure
touch file || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
require_membership_in_two_groups_

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
skip_if_root_
chmod g-s . || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
require_local_dir_

View File

@ -22,7 +22,7 @@
# cp: can't copy a directory `dir' into itself `dir/dir'
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir a dir || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
touch src || framework_failure
touch dest || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
expensive_
require_ulimit_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
ln -s no-such-file dangling-slink || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
touch a || framework_failure
ln a b || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir a b
msg=bar

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir b
msg=bar

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
msg=bar
echo $msg > a

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
working_umask_or_skip_
# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
require_local_dir_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
require_local_dir_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
require_root_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
kall=/proc/kallsyms

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
touch empty || framework_failure

View File

@ -21,7 +21,7 @@
# cp: `slink': WARNING: using -r to copy symbolic links is not portable
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
echo abc > foo || framework_failure
ln -s foo slink || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
: > time_check

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
# Unset CDPATH. Otherwise, output from the `cd dir' command
# can make this test fail.

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
touch file || framework_failure
ln -s file a || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
require_sparse_support_
# Create a sparse file.

View File

@ -21,7 +21,7 @@
# The bug was fixed in 4.0z.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
require_root_
touch a b c || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkfifo fifo ||
skip_test_ "fifos not supported"

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir x y || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
mkdir dir || framework_failure
ln -s dir symlink || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && cp --version
print_ver_ cp
ln -s no-such dangle || framework_failure
echo hi > f || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
truncate -s 8192 in || framework_failure
dd if=in oflag=direct of=out 2> /dev/null \

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
tmp_in=dd-in.$$
tmp_in2=dd-in2.$$

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
echo abcde > in

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
# 2 short reads -> 1 full write + 1 partial write
cat <<\EOF > exp-reblock || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
# need write access to local device
# (even though we don't actually write anything)

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
require_sparse_support_ # for `truncate --size=$OFF_T_MAX`
eval $(getlimits) # for OFF_T limits

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
echo LA:3456789abcdef > in || fail=1

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
p=$abs_top_builddir

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && dd --version
print_ver_ dd
printf 000100020003xx > in || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && df --version
print_ver_ df
df || skip_test_ "df fails"

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && df --version
print_ver_ df
skip_if_root_
touch unreadable || fail=1

View File

@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
# Creating a 2GB file counts as `very expensive'.
very_expensive_

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
require_sparse_support_
dd bs=1 seek=8G of=big < /dev/null 2> /dev/null

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p a/b d d/sub || framework_failure

View File

@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p a/sub || framework_failure
ln -s a/sub slink || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p dir/a || framework_failure
ln -s dir slink || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p a/b/c a/x/y a/u/v || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
# Call this an expensive test. It's not that expensive, but command line
# limitations might induce failure on some losing systems.

View File

@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p dir/sub
( cd dir &&

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
skip_if_root_
mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \

View File

@ -16,7 +16,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
skip_if_root_
mkdir -p a/sub || framework_failure

View File

@ -21,7 +21,7 @@
# this test would fail.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
skip_if_root_
cwd=`pwd`

View File

@ -29,7 +29,7 @@
# unnecessarily to using FTS_NOCHDIR mode in this corner case.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
proc_file=/proc/self/fd
if test ! -d $proc_file; then

View File

@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
# Create lots of directories, each containing a single symlink
# pointing at the next directory in the list.

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p dir/a/b || framework_failure
ln -s dir slink || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
skip_if_root_
mkdir -p d/no-x/y || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p b/c y/z || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir a b || framework_failure

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
require_readable_root_

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
# 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,

View File

@ -20,7 +20,7 @@
# Before coreutils-4.5.3, it would remove a single trailing slash.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
mkdir -p dir/1/2 || framework_failure
ln -s dir slink || framework_failure

View File

@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && du --version
print_ver_ du
# Run this test from a sub-directory one level deeper than normal,
# so that the "du .." below doesn't traverse sibling directories

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && id --version
print_ver_ id
# We don't need selinux *FS* support to test id,
# but this is as good a witness as any, in general.

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && ginstall --version
print_ver_ ginstall
skip_if_root_
dir=dir

View File

@ -20,7 +20,7 @@
# that's the name of the binary in ../../src.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && ginstall --version
print_ver_ ginstall
file=file

View File

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
test "$VERBOSE" = yes && install --version
print_ver_ install
ginstall -d d1/. || fail=1

Some files were not shown because too many files have changed in this diff Show More