mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
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:
parent
5c0275e953
commit
293c37b906
@ -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_
|
||||
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 :,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.$$
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
@ -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_
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
@ -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 ||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -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.$$
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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"
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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_
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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 &&
|
||||
|
||||
@ -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 \
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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`
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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_
|
||||
|
||||
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
Loading…
x
Reference in New Issue
Block a user