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

@@ -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

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 && ln --version
print_ver_ ln
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 && ln --version
print_ver_ ln
# ===================================================

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 && ln --version
print_ver_ ln
t=tln-symlink
d=tln-subdir

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 && ln --version
print_ver_ ln
echo foo > a || framework_failure
ln -s . 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 && ln --version
print_ver_ ln
touch f || framework_failure

View File

@@ -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