mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02: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:
@@ -20,7 +20,7 @@
|
||||
# Based on a problem report from Jamie Lokier.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
test "$VERBOSE" = yes && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
touch 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 && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
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 && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
|
||||
# ===================================================
|
||||
|
||||
@@ -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 && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
t=tln-symlink
|
||||
d=tln-subdir
|
||||
|
||||
@@ -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 && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
echo foo > a || framework_failure
|
||||
ln -s . 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 && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
touch f || framework_failure
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
# Based on a test case from Dmitry V. Levin.
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
test "$VERBOSE" = yes && ln --version
|
||||
print_ver_ ln
|
||||
|
||||
mkdir d || framework_failure
|
||||
ln -s --target-dir=d ../f || fail=1
|
||||
|
||||
Reference in New Issue
Block a user