mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: convert 'if test "$VERBOSE" = yes; then' to test ... &&
This commit is contained in:
1 parent
f38becab02
commit
ff7f0ff85c
38 files changed
+59
-235
No files matched your search
+1
-7
@@ -16,14 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
chgrp --version
|
|
||||||
chmod --version
|
|
||||||
chown --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { chgrp --version; chmod --version; chown --version; }
|
||||||
|
|
||||||
chmod -f 0 no-such 2> out && fail=1
|
chmod -f 0 no-such 2> out && fail=1
|
||||||
chgrp -f 0 no-such 2>> out && fail=1
|
chgrp -f 0 no-such 2>> out && fail=1
|
||||||
|
|||||||
+2
-9
@@ -17,16 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# Make sure we get English translations.
|
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
getfacl --version
|
|
||||||
setfacl --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { mv --version; getfacl --version; setfacl --version; }
|
||||||
|
|
||||||
require_acl_
|
require_acl_
|
||||||
|
|
||||||
# Skip this test if cp was built without ACL support:
|
# Skip this test if cp was built without ACL support:
|
||||||
|
|||||||
@@ -16,14 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Ensure that ls sorts the same way for everyone.
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && cp --version
|
||||||
|
|
||||||
umask 022
|
umask 022
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
require_root_
|
require_root_
|
||||||
|
|
||||||
cwd=`pwd`
|
cwd=`pwd`
|
||||||
|
|||||||
+2
-6
@@ -16,13 +16,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
very_expensive_
|
very_expensive_
|
||||||
|
|
||||||
umask 037
|
umask 037
|
||||||
|
|||||||
@@ -17,6 +17,8 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && cp --version
|
||||||
|
|
||||||
require_root_
|
require_root_
|
||||||
|
|
||||||
# Some of the tests expect a umask that grants group and/or world read access.
|
# Some of the tests expect a umask that grants group and/or world read access.
|
||||||
@@ -58,11 +60,6 @@ t1() {
|
|||||||
"$nameless_uid" "$@"
|
"$nameless_uid" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
if test "x$VERBOSE" = xyes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
nameless_uid=`$PERL -le 'foreach my $i (1000..16*1024-1) { getpwuid $i or (print $i), exit }'`
|
nameless_uid=`$PERL -le 'foreach my $i (1000..16*1024-1) { getpwuid $i or (print $i), exit }'`
|
||||||
nameless_gid1=`$PERL -le 'foreach my $i (1000..16*1024) { getgrgid $i or (print $i), exit }'`
|
nameless_gid1=`$PERL -le 'foreach my $i (1000..16*1024) { getgrgid $i or (print $i), exit }'`
|
||||||
nameless_gid2=`$PERL -le 'foreach my $i ('"$nameless_gid1"'+1..16*1024) { getgrgid $i or (print $i), exit }'`
|
nameless_gid2=`$PERL -le 'foreach my $i ('"$nameless_gid1"'+1..16*1024) { getgrgid $i or (print $i), exit }'`
|
||||||
|
|||||||
+1
-6
@@ -16,13 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
ln --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure we get English translations.
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && ln --version
|
||||||
|
|
||||||
echo foo > a || framework_failure
|
echo foo > a || framework_failure
|
||||||
ln -s . b || framework_failure
|
ln -s . b || framework_failure
|
||||||
|
|||||||
@@ -16,15 +16,12 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
ls --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
: ${srcdir=.}
|
: ${srcdir=.}
|
||||||
. $srcdir/require-perl
|
. $srcdir/require-perl
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && ls --version
|
||||||
|
|
||||||
require_root_
|
require_root_
|
||||||
|
|
||||||
nameless_uid=`$PERL -e 'foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }'`
|
nameless_uid=`$PERL -e 'foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }'`
|
||||||
|
|||||||
+1
-7
@@ -16,14 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
ls --version
|
|
||||||
touch --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { ls --version; touch --version; }
|
||||||
|
|
||||||
date=1998-01-15
|
date=1998-01-15
|
||||||
|
|
||||||
|
|||||||
+2
-6
@@ -17,14 +17,10 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && arch --version
|
||||||
|
|
||||||
require_built_ arch
|
require_built_ arch
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
arch --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
arch > out || fail=1
|
arch > out || fail=1
|
||||||
uname -m > exp || fail=1
|
uname -m > exp || fail=1
|
||||||
|
|
||||||
|
|||||||
+1
-8
@@ -16,15 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
env --version
|
|
||||||
env -- printenv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { env --version; env -- printenv --version; }
|
||||||
|
|
||||||
# POSIX is clear that environ may, but need not be, sorted.
|
# POSIX is clear that environ may, but need not be, sorted.
|
||||||
# Environment variable values may contain newlines, which cannot be
|
# Environment variable values may contain newlines, which cannot be
|
||||||
|
|||||||
@@ -18,12 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && md5sum --version
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
md5sum --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
(mkdir tmp && cd tmp && seq 500 | xargs touch)
|
(mkdir tmp && cd tmp && seq 500 | xargs touch)
|
||||||
|
|
||||||
|
|||||||
+1
-6
@@ -16,13 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
env -- printenv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- printenv --version
|
||||||
|
|
||||||
# Without arguments, printenv behaves like env. Some shells provide
|
# Without arguments, printenv behaves like env. Some shells provide
|
||||||
# printenv as a builtin, so we must invoke it via "env".
|
# printenv as a builtin, so we must invoke it via "env".
|
||||||
|
|||||||
+2
-5
@@ -18,12 +18,9 @@
|
|||||||
|
|
||||||
prog="$abs_top_builddir/src/printf"
|
prog="$abs_top_builddir/src/printf"
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
"$prog" --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- printf --version
|
||||||
|
|
||||||
getlimits_
|
getlimits_
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+2
-10
@@ -16,18 +16,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
prog="$abs_top_builddir/src/printf"
|
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
"$prog" --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- printf --version
|
||||||
|
|
||||||
|
env printf '\x7e3\n' > out || fail=1
|
||||||
|
|
||||||
"$prog" '\x7e3\n' > out || fail=1
|
|
||||||
cat <<\EOF > exp
|
cat <<\EOF > exp
|
||||||
~3
|
~3
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
@@ -18,12 +18,9 @@
|
|||||||
|
|
||||||
prog=printf
|
prog=printf
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
env $prog --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- printf --version
|
||||||
|
|
||||||
require_ulimit_
|
require_ulimit_
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
. $srcdir/require-perl
|
. $srcdir/require-perl
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- pwd --version
|
||||||
|
|
||||||
require_readable_root_
|
require_readable_root_
|
||||||
|
|
||||||
ARGV_0=$0
|
ARGV_0=$0
|
||||||
|
|||||||
@@ -16,12 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
env -- pwd --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && env -- pwd --version
|
||||||
|
|
||||||
mkdir -p a/b || framework_failure
|
mkdir -p a/b || framework_failure
|
||||||
ln -s a/b c || framework_failure
|
ln -s a/b c || framework_failure
|
||||||
|
|||||||
@@ -18,13 +18,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
env -- pwd --version
|
|
||||||
readlink --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { env -- pwd --version; readlink --version; }
|
||||||
|
|
||||||
test $host_os != linux-gnu &&
|
test $host_os != linux-gnu &&
|
||||||
skip_test_ 'vendor getcwd may be inadequate'
|
skip_test_ 'vendor getcwd may be inadequate'
|
||||||
|
|||||||
+2
-9
@@ -16,16 +16,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
chcon --version
|
|
||||||
cp --version
|
|
||||||
ls --version
|
|
||||||
mv --version
|
|
||||||
stat --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && for i in chcon cp ls mv stat; do $i --version; done
|
||||||
|
|
||||||
require_root_
|
require_root_
|
||||||
require_selinux_
|
require_selinux_
|
||||||
skip_if_mcstransd_is_running_
|
skip_if_mcstransd_is_running_
|
||||||
|
|||||||
+2
-5
@@ -17,14 +17,11 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { stdbuf --version; mv --version; }
|
||||||
|
|
||||||
getlimits_
|
getlimits_
|
||||||
require_built_ stdbuf
|
require_built_ stdbuf
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
stdbuf --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# stdbuf fails when the absolute top build dir name contains e.g., space, TAB, NL
|
# stdbuf fails when the absolute top build dir name contains e.g., space, TAB, NL
|
||||||
lf='
|
lf='
|
||||||
'
|
'
|
||||||
|
|||||||
+2
-5
@@ -16,13 +16,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
stty --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure there's a tty on stdin.
|
# Make sure there's a tty on stdin.
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && stty --version
|
||||||
|
|
||||||
require_controlling_input_terminal_
|
require_controlling_input_terminal_
|
||||||
trap '' TTOU # Ignore SIGTTOU
|
trap '' TTOU # Ignore SIGTTOU
|
||||||
|
|
||||||
|
|||||||
@@ -16,14 +16,6 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
# This script takes no arguments.
|
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
stty --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setting this envvar to a very small value used to cause e.g., `stty size'
|
# Setting this envvar to a very small value used to cause e.g., `stty size'
|
||||||
# to generate slightly different output on certain systems.
|
# to generate slightly different output on certain systems.
|
||||||
COLUMNS=80
|
COLUMNS=80
|
||||||
@@ -37,6 +29,8 @@ LC_ALL=C
|
|||||||
export LC_ALL
|
export LC_ALL
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && stty --version
|
||||||
|
|
||||||
require_controlling_input_terminal_
|
require_controlling_input_terminal_
|
||||||
trap '' TTOU # Ignore SIGTTOU
|
trap '' TTOU # Ignore SIGTTOU
|
||||||
|
|
||||||
|
|||||||
+2
-6
@@ -17,14 +17,10 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && su --version
|
||||||
|
|
||||||
require_built_ su
|
require_built_ su
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
su --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Very little that we can test without a root password
|
# Very little that we can test without a root password
|
||||||
su --- / true # unknown option
|
su --- / true # unknown option
|
||||||
test $? = 125 || fail=1
|
test $? = 125 || fail=1
|
||||||
|
|||||||
+1
-6
@@ -16,11 +16,6 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
sum --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
: ${srcdir=.}
|
: ${srcdir=.}
|
||||||
. $srcdir/require-perl
|
. $srcdir/require-perl
|
||||||
|
|
||||||
@@ -31,7 +26,7 @@ LC_ALL=C
|
|||||||
export LC_ALL
|
export LC_ALL
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && sum --version
|
||||||
|
|
||||||
# FYI, 16843009 is floor (2^32 / 255).
|
# FYI, 16843009 is floor (2^32 / 255).
|
||||||
|
|
||||||
|
|||||||
@@ -16,13 +16,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
truncate --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/envvar-check
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && truncate --version
|
||||||
|
|
||||||
require_root_
|
require_root_
|
||||||
|
|
||||||
group_num=$(id -g $NON_ROOT_USERNAME)
|
group_num=$(id -g $NON_ROOT_USERNAME)
|
||||||
|
|||||||
@@ -18,12 +18,7 @@
|
|||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && md5sum --version
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
md5sum --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
(mkdir tmp && cd tmp && seq 2000 | xargs touch)
|
(mkdir tmp && cd tmp && seq 2000 | xargs touch)
|
||||||
|
|
||||||
|
|||||||
+1
-7
@@ -18,14 +18,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
ginstall --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; ginstall --version; }
|
||||||
|
|
||||||
# Skip this test if cp was built without xattr support:
|
# Skip this test if cp was built without xattr support:
|
||||||
touch src dest || framework_failure
|
touch src dest || framework_failure
|
||||||
|
|||||||
+1
-7
@@ -16,14 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mkdir --version
|
|
||||||
mkfifo --version
|
|
||||||
mknod --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { mkdir --version; mkfifo --version; mknod --version; }
|
||||||
|
|
||||||
# Note: on an SELinux/enforcing system running mcstransd older than
|
# Note: on an SELinux/enforcing system running mcstransd older than
|
||||||
# mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
|
# mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
|
||||||
|
|||||||
+2
-7
@@ -17,14 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
getfacl --version
|
|
||||||
setfacl --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { mv --version; getfacl --version; setfacl --version; }
|
||||||
|
|
||||||
require_acl_
|
require_acl_
|
||||||
|
|
||||||
# Skip this test if cp was built without ACL support:
|
# Skip this test if cp was built without ACL support:
|
||||||
|
|||||||
+2
-7
@@ -18,14 +18,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
ln --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; ln --version; }
|
||||||
|
|
||||||
skip_if_root_
|
skip_if_root_
|
||||||
|
|
||||||
mkdir a b c || framework_failure
|
mkdir a b c || framework_failure
|
||||||
|
|||||||
+1
-6
@@ -16,13 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Make sure we get English translations.
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && mv --version
|
||||||
|
|
||||||
touch f1 || framework_failure
|
touch f1 || framework_failure
|
||||||
touch f2 || framework_failure
|
touch f2 || framework_failure
|
||||||
|
|||||||
+2
-7
@@ -19,15 +19,10 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
skip_if_root_
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
|
skip_if_root_
|
||||||
|
|
||||||
for i in cp; do
|
for i in cp; do
|
||||||
|
|
||||||
|
|||||||
+2
-6
@@ -17,13 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
cp --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
skip_if_root_
|
skip_if_root_
|
||||||
|
|
||||||
mkdir dst || framework_failure
|
mkdir dst || framework_failure
|
||||||
|
|||||||
+2
-9
@@ -17,16 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
cp --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# Make sure we get English translations.
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
skip_if_root_
|
skip_if_root_
|
||||||
|
|
||||||
for i in a b c d e f g h; do
|
for i in a b c d e f g h; do
|
||||||
|
|||||||
@@ -17,13 +17,9 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
mv --version
|
|
||||||
cp --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
cleanup_() { rm -rf "$other_partition_tmpdir"; }
|
cleanup_() { rm -rf "$other_partition_tmpdir"; }
|
||||||
. "$abs_srcdir/other-fs-tmpdir"
|
. "$abs_srcdir/other-fs-tmpdir"
|
||||||
|
|
||||||
|
|||||||
+1
-6
@@ -16,13 +16,8 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
if test "$VERBOSE" = yes; then
|
|
||||||
set -x
|
|
||||||
cp --version
|
|
||||||
mv --version
|
|
||||||
fi
|
|
||||||
|
|
||||||
. $srcdir/test-lib.sh
|
. $srcdir/test-lib.sh
|
||||||
|
test "$VERBOSE" = yes && { cp --version; mv --version; }
|
||||||
|
|
||||||
echo old > old || framework_failure
|
echo old > old || framework_failure
|
||||||
touch -d yesterday old || framework_failure
|
touch -d yesterday old || framework_failure
|
||||||
|
|||||||
@@ -20,7 +20,6 @@
|
|||||||
test "$VERBOSE" = yes && rm --version
|
test "$VERBOSE" = yes && rm --version
|
||||||
require_root_
|
require_root_
|
||||||
|
|
||||||
# If used, these must *follow* test-lib.sh.
|
|
||||||
cleanup_()
|
cleanup_()
|
||||||
{
|
{
|
||||||
# When you take the undesirable shortcut of making /etc/mtab a link
|
# When you take the undesirable shortcut of making /etc/mtab a link
|
||||||
|
|||||||
Reference in new issue
Block a user