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/cp/acl | 2 +- tests/cp/cp-mv-backup | 2 +- tests/cp/cp-mv-enotsup-xattr | 2 +- tests/cp/perm | 2 +- tests/cp/preserve-gid | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/cp') diff --git a/tests/cp/acl b/tests/cp/acl index 3e93645ab..a3b909ae4 100755 --- a/tests/cp/acl +++ b/tests/cp/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/cp/cp-mv-backup b/tests/cp/cp-mv-backup index c978ba253..ad7bfa511 100755 --- a/tests/cp/cp-mv-backup +++ b/tests/cp/cp-mv-backup @@ -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 umask 022 diff --git a/tests/cp/cp-mv-enotsup-xattr b/tests/cp/cp-mv-enotsup-xattr index bd0ef0ed8..bcee4214f 100755 --- a/tests/cp/cp-mv-enotsup-xattr +++ b/tests/cp/cp-mv-enotsup-xattr @@ -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; } require_root_ diff --git a/tests/cp/perm b/tests/cp/perm index 346b24536..cb4709f50 100755 --- a/tests/cp/perm +++ b/tests/cp/perm @@ -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; } very_expensive_ diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index a5190e4e7..6fa5293c7 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -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 require_root_ -- cgit v1.2.3-54-g00ecf