mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
tests: convert "... env -- prog --version" uses
E.g., -test "$VERBOSE" = yes && env -- pwd --version +print_ver_ pwd git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \ 's/test "\$VERBOSE" = yes && env -- (\w+) --version/print_ver_ $1/'
This commit is contained in:
1 parent
293c37b906
commit
a8c8484ee1
6 files changed
+6
-6
No files matched your search
+1
-1
@@ -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 && env -- printenv --version
|
||||
print_ver_ printenv
|
||||
|
||||
# Without arguments, printenv behaves like env. Some shells provide
|
||||
# printenv as a builtin, so we must invoke it via "env".
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
prog="$abs_top_builddir/src/printf"
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
test "$VERBOSE" = yes && env -- printf --version
|
||||
print_ver_ printf
|
||||
|
||||
getlimits_
|
||||
|
||||
|
||||
@@ -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 && env -- printf --version
|
||||
print_ver_ printf
|
||||
|
||||
env printf '\x7e3\n' > out || fail=1
|
||||
cat <<\EOF > exp
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
prog=printf
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
test "$VERBOSE" = yes && env -- printf --version
|
||||
print_ver_ printf
|
||||
|
||||
require_ulimit_
|
||||
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
. $srcdir/require-perl
|
||||
|
||||
. "${srcdir=.}/init.sh"; path_prepend_ ../src
|
||||
test "$VERBOSE" = yes && env -- pwd --version
|
||||
print_ver_ pwd
|
||||
|
||||
require_readable_root_
|
||||
|
||||
|
||||
@@ -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 && env -- pwd --version
|
||||
print_ver_ pwd
|
||||
|
||||
mkdir -p a/b || framework_failure
|
||||
ln -s a/b c || framework_failure
|
||||
|
||||
Reference in new issue
Block a user