From fbcc100f5bc4e5d57370544093fc9edfbde411d3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 14 Nov 2010 12:07:57 +0100 Subject: tests: convert remaining uses of test-lib.sh to init.sh RHS='. "\${srcdir=.}/init.sh"; path_prepend_ ../src' git grep -l test-lib.sh \ | xargs perl -pi -e 's,^\. \$srcdir/test-lib\.sh$,'"$RHS", --- tests/mv/acl | 2 +- tests/mv/childproof | 2 +- tests/mv/diag | 2 +- tests/mv/dup-source | 2 +- tests/mv/hard-2 | 2 +- tests/mv/i-2 | 2 +- tests/mv/part-symlink | 2 +- tests/mv/update | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests/mv') diff --git a/tests/mv/acl b/tests/mv/acl index c67630ed0..75f500786 100755 --- a/tests/mv/acl +++ b/tests/mv/acl @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { mv --version; getfacl --version; setfacl --version; } require_acl_ diff --git a/tests/mv/childproof b/tests/mv/childproof index 2e5e4611c..ed6c1802e 100755 --- a/tests/mv/childproof +++ b/tests/mv/childproof @@ -18,7 +18,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; ln --version; } skip_if_root_ diff --git a/tests/mv/diag b/tests/mv/diag index f40fc7c42..d32513d9b 100755 --- a/tests/mv/diag +++ b/tests/mv/diag @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && mv --version touch f1 || framework_failure diff --git a/tests/mv/dup-source b/tests/mv/dup-source index 9ede87ef6..34ef63332 100755 --- a/tests/mv/dup-source +++ b/tests/mv/dup-source @@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; } skip_if_root_ diff --git a/tests/mv/hard-2 b/tests/mv/hard-2 index 704e2679d..eb83b117f 100755 --- a/tests/mv/hard-2 +++ b/tests/mv/hard-2 @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; } skip_if_root_ diff --git a/tests/mv/i-2 b/tests/mv/i-2 index 83596426e..7e49bcadd 100755 --- a/tests/mv/i-2 +++ b/tests/mv/i-2 @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; } skip_if_root_ diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink index bf2fd451a..3f67d6cdd 100755 --- a/tests/mv/part-symlink +++ b/tests/mv/part-symlink @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; } cleanup_() { rm -rf "$other_partition_tmpdir"; } diff --git a/tests/mv/update b/tests/mv/update index b0a532c63..5bee53cb2 100755 --- a/tests/mv/update +++ b/tests/mv/update @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -. $srcdir/test-lib.sh +. "${srcdir=.}/init.sh"; path_prepend_ ../src test "$VERBOSE" = yes && { cp --version; mv --version; } echo old > old || framework_failure -- cgit v1.2.3-70-g09d2