From 293c37b9061c1afd0acd143bbded637a8f00b3a0 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 17 Nov 2010 21:35:31 +0100 Subject: 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/' --- tests/chgrp/basic | 2 +- tests/chgrp/default-no-deref | 2 +- tests/chgrp/deref | 2 +- tests/chgrp/no-x | 2 +- tests/chgrp/posix-H | 2 +- tests/chgrp/recurse | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/chgrp') diff --git a/tests/chgrp/basic b/tests/chgrp/basic index 7d6716624..91b111ff9 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref index 77d3bcbcb..0b380acd5 100755 --- a/tests/chgrp/default-no-deref +++ b/tests/chgrp/default-no-deref @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/deref b/tests/chgrp/deref index e3cfed229..d470fe12b 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x index e3a4aefd0..d309bd761 100755 --- a/tests/chgrp/no-x +++ b/tests/chgrp/no-x @@ -18,7 +18,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ skip_if_root_ diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index 6cf101c8f..c5aeb4bfd 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse index 0f7f00f22..9f92fdb35 100755 --- a/tests/chgrp/recurse +++ b/tests/chgrp/recurse @@ -17,7 +17,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && chgrp --version +print_ver_ chgrp require_membership_in_two_groups_ set _ $groups; shift -- cgit v1.2.3-70-g09d2