summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-17 21:38:38 +0100
committerJim Meyering <meyering@redhat.com>2010-11-17 21:46:25 +0100
commit8f9be76b0d6995919ee960ce5864715faa11ea5b (patch)
tree94121a4b9c057ba2899e8a30e03a6e73510da716 /tests/mv
parenta8c8484ee17f09ac92a27308b6ee5eaf4304bddc (diff)
downloadcoreutils-8f9be76b0d6995919ee960ce5864715faa11ea5b.tar.xz
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'
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/acl2
-rwxr-xr-xtests/mv/childproof2
-rwxr-xr-xtests/mv/dup-source2
-rwxr-xr-xtests/mv/hard-22
-rwxr-xr-xtests/mv/i-22
-rwxr-xr-xtests/mv/part-symlink2
-rwxr-xr-xtests/mv/update2
7 files changed, 7 insertions, 7 deletions
diff --git a/tests/mv/acl b/tests/mv/acl
index 75f500786..4157ab52b 100755
--- a/tests/mv/acl
+++ b/tests/mv/acl
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { mv --version; getfacl --version; setfacl --version; }
+print_ver_ mv getfacl setfacl
require_acl_
diff --git a/tests/mv/childproof b/tests/mv/childproof
index ed6c1802e..fadf44ed5 100755
--- a/tests/mv/childproof
+++ b/tests/mv/childproof
@@ -19,7 +19,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { cp --version; mv --version; ln --version; }
+print_ver_ cp mv ln
skip_if_root_
diff --git a/tests/mv/dup-source b/tests/mv/dup-source
index 34ef63332..c70753f06 100755
--- a/tests/mv/dup-source
+++ b/tests/mv/dup-source
@@ -20,7 +20,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { cp --version; mv --version; }
+print_ver_ cp mv
skip_if_root_
diff --git a/tests/mv/hard-2 b/tests/mv/hard-2
index eb83b117f..d86435ab7 100755
--- a/tests/mv/hard-2
+++ b/tests/mv/hard-2
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { cp --version; mv --version; }
+print_ver_ cp mv
skip_if_root_
diff --git a/tests/mv/i-2 b/tests/mv/i-2
index 7e49bcadd..030828238 100755
--- a/tests/mv/i-2
+++ b/tests/mv/i-2
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { cp --version; mv --version; }
+print_ver_ cp mv
skip_if_root_
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
index 3f67d6cdd..425718aff 100755
--- a/tests/mv/part-symlink
+++ b/tests/mv/part-symlink
@@ -18,7 +18,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
. "${srcdir=.}/init.sh"; path_prepend_ ../src
-test "$VERBOSE" = yes && { cp --version; mv --version; }
+print_ver_ cp mv
cleanup_() { rm -rf "$other_partition_tmpdir"; }
. "$abs_srcdir/other-fs-tmpdir"
diff --git a/tests/mv/update b/tests/mv/update
index 5bee53cb2..94a892701 100755
--- a/tests/mv/update
+++ b/tests/mv/update
@@ -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 && { cp --version; mv --version; }
+print_ver_ cp mv
echo old > old || framework_failure
touch -d yesterday old || framework_failure