From 8f9be76b0d6995919ee960ce5864715faa11ea5b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 17 Nov 2010 21:38:38 +0100 Subject: tests: convert the multi-prog $VERBOSE/--version uses E.g., -test "$VERBOSE" = yes && { env -- pwd --version; readlink --version; } +print_ver_ pwd readlink -test "$VERBOSE" = yes && { stdbuf --version; mv --version; } +print_ver_ stdbuf mv Use this command: git grep -l 'VERBOSE.*--version'|xargs perl -ni \ -e '/^test "\$VERBOSE" = yes && { .*--version/ or print,next;' \ -e 's/env -- //g;' \ -e 's/test "\$VERBOSE" = yes && { /print_ver_ /;' \ -e ' s/(\w+) --version;/$1/g; s/ *}$//; print' --- tests/misc/xattr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/misc/xattr') diff --git a/tests/misc/xattr b/tests/misc/xattr index 13e0857a5..67dfdef51 100755 --- a/tests/misc/xattr +++ b/tests/misc/xattr @@ -19,7 +19,7 @@ # along with this program. If not, see . . "${srcdir=.}/init.sh"; path_prepend_ ../src -test "$VERBOSE" = yes && { cp --version; mv --version; ginstall --version; } +print_ver_ cp mv ginstall # Skip this test if cp was built without xattr support: touch src dest || framework_failure -- cgit v1.2.3-54-g00ecf