diff options
Diffstat (limited to 'tests/cp')
57 files changed, 59 insertions, 59 deletions
diff --git a/tests/cp/abuse.sh b/tests/cp/abuse.sh index 6338e1f57..5f00550cf 100755 --- a/tests/cp/abuse.sh +++ b/tests/cp/abuse.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir a b c || framework_failure_ diff --git a/tests/cp/acl.sh b/tests/cp/acl.sh index 4520fc9c6..801d124bc 100755 --- a/tests/cp/acl.sh +++ b/tests/cp/acl.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp getfacl setfacl require_acl_ diff --git a/tests/cp/attr-existing.sh b/tests/cp/attr-existing.sh index 9cf0ffcb3..451784139 100755 --- a/tests/cp/attr-existing.sh +++ b/tests/cp/attr-existing.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp printf '1' > file1 diff --git a/tests/cp/backup-1.sh b/tests/cp/backup-1.sh index c7ece5f4d..c79bc26d1 100755 --- a/tests/cp/backup-1.sh +++ b/tests/cp/backup-1.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp suffix=.b diff --git a/tests/cp/backup-dir.sh b/tests/cp/backup-dir.sh index bc05bd9b0..5f2658cdc 100755 --- a/tests/cp/backup-dir.sh +++ b/tests/cp/backup-dir.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir x y || framework_failure_ diff --git a/tests/cp/backup-is-src.sh b/tests/cp/backup-is-src.sh index 98e2ed09a..d349527aa 100755 --- a/tests/cp/backup-is-src.sh +++ b/tests/cp/backup-is-src.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp echo a > a || framework_failure_ diff --git a/tests/cp/capability.sh b/tests/cp/capability.sh index 94e5aea16..b9e761264 100755 --- a/tests/cp/capability.sh +++ b/tests/cp/capability.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_root_ working_umask_or_skip_ diff --git a/tests/cp/cp-HL.sh b/tests/cp/cp-HL.sh index bbbd75a74..d1ccfd0ba 100755 --- a/tests/cp/cp-HL.sh +++ b/tests/cp/cp-HL.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir src-dir dest-dir || framework_failure_ diff --git a/tests/cp/cp-a-selinux.sh b/tests/cp/cp-a-selinux.sh index b85298488..f398ffb98 100755 --- a/tests/cp/cp-a-selinux.sh +++ b/tests/cp/cp-a-selinux.sh @@ -19,7 +19,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_root_ require_selinux_ diff --git a/tests/cp/cp-deref.sh b/tests/cp/cp-deref.sh index 08a1485f9..4d62e868c 100755 --- a/tests/cp/cp-deref.sh +++ b/tests/cp/cp-deref.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir a b c d || framework_failure_ diff --git a/tests/cp/cp-i.sh b/tests/cp/cp-i.sh index 746dc2765..16c80ee29 100755 --- a/tests/cp/cp-i.sh +++ b/tests/cp/cp-i.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir -p a b/a/c || framework_failure_ diff --git a/tests/cp/cp-mv-backup.sh b/tests/cp/cp-mv-backup.sh index 030f722dc..85812b509 100755 --- a/tests/cp/cp-mv-backup.sh +++ b/tests/cp/cp-mv-backup.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp umask 022 diff --git a/tests/cp/cp-mv-enotsup-xattr.sh b/tests/cp/cp-mv-enotsup-xattr.sh index 66e54cf11..2318cc296 100755 --- a/tests/cp/cp-mv-enotsup-xattr.sh +++ b/tests/cp/cp-mv-enotsup-xattr.sh @@ -18,7 +18,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mv require_root_ diff --git a/tests/cp/cp-parents.sh b/tests/cp/cp-parents.sh index 506e708ac..97a8c9e99 100755 --- a/tests/cp/cp-parents.sh +++ b/tests/cp/cp-parents.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp working_umask_or_skip_ diff --git a/tests/cp/deref-slink.sh b/tests/cp/deref-slink.sh index 93f5cb8ae..9a96c4833 100755 --- a/tests/cp/deref-slink.sh +++ b/tests/cp/deref-slink.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp touch f slink-target || framework_failure_ diff --git a/tests/cp/dir-rm-dest.sh b/tests/cp/dir-rm-dest.sh index b2f0e72c5..046e8d210 100755 --- a/tests/cp/dir-rm-dest.sh +++ b/tests/cp/dir-rm-dest.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir d e || framework_failure_ diff --git a/tests/cp/dir-slash.sh b/tests/cp/dir-slash.sh index b14aad823..846d8e5da 100755 --- a/tests/cp/dir-slash.sh +++ b/tests/cp/dir-slash.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir dir1 dir2 || framework_failure_ diff --git a/tests/cp/dir-vs-file.sh b/tests/cp/dir-vs-file.sh index c8e388fa7..f2fa79176 100755 --- a/tests/cp/dir-vs-file.sh +++ b/tests/cp/dir-vs-file.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir dir || framework_failure_ diff --git a/tests/cp/existing-perm-dir.sh b/tests/cp/existing-perm-dir.sh index 40b55a3f4..bd14ee982 100755 --- a/tests/cp/existing-perm-dir.sh +++ b/tests/cp/existing-perm-dir.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp umask 002 diff --git a/tests/cp/existing-perm-race.sh b/tests/cp/existing-perm-race.sh index 35c1556f5..b683d3597 100755 --- a/tests/cp/existing-perm-race.sh +++ b/tests/cp/existing-perm-race.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_membership_in_two_groups_ diff --git a/tests/cp/fail-perm.sh b/tests/cp/fail-perm.sh index 2c37d6fb1..4098d1f1e 100755 --- a/tests/cp/fail-perm.sh +++ b/tests/cp/fail-perm.sh @@ -15,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp skip_if_root_ diff --git a/tests/cp/fiemap-2.sh b/tests/cp/fiemap-2.sh index f24baf282..3fd47cc1e 100755 --- a/tests/cp/fiemap-2.sh +++ b/tests/cp/fiemap-2.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # Require a fiemap-enabled FS. diff --git a/tests/cp/fiemap-empty.sh b/tests/cp/fiemap-empty.sh index 4ba4ee30e..fb7bb355c 100755 --- a/tests/cp/fiemap-empty.sh +++ b/tests/cp/fiemap-empty.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # FIXME: enable any part of this test that is still relevant, diff --git a/tests/cp/fiemap-perf.sh b/tests/cp/fiemap-perf.sh index ca093b5a0..bb6f5bc53 100755 --- a/tests/cp/fiemap-perf.sh +++ b/tests/cp/fiemap-perf.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # Require a fiemap-enabled FS. diff --git a/tests/cp/file-perm-race.sh b/tests/cp/file-perm-race.sh index fbc9a86eb..c917117c2 100755 --- a/tests/cp/file-perm-race.sh +++ b/tests/cp/file-perm-race.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least diff --git a/tests/cp/into-self.sh b/tests/cp/into-self.sh index 6121f0ad8..2f123e3aa 100755 --- a/tests/cp/into-self.sh +++ b/tests/cp/into-self.sh @@ -21,7 +21,7 @@ # Now it gives this: # cp: can't copy a directory 'dir' into itself 'dir/dir' -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir a dir || framework_failure_ diff --git a/tests/cp/link-heap.sh b/tests/cp/link-heap.sh index 7e948de7b..d243c8154 100755 --- a/tests/cp/link-heap.sh +++ b/tests/cp/link-heap.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp expensive_ require_ulimit_ diff --git a/tests/cp/link-no-deref.sh b/tests/cp/link-no-deref.sh index af48fd085..ac6bc44fe 100755 --- a/tests/cp/link-no-deref.sh +++ b/tests/cp/link-no-deref.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp ln -s no-such-file dangling-slink || framework_failure_ diff --git a/tests/cp/link-preserve.sh b/tests/cp/link-preserve.sh index 9ca1705f5..0c75d305e 100755 --- a/tests/cp/link-preserve.sh +++ b/tests/cp/link-preserve.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp touch a || framework_failure_ diff --git a/tests/cp/link-symlink.sh b/tests/cp/link-symlink.sh index 57bc9c715..518688762 100755 --- a/tests/cp/link-symlink.sh +++ b/tests/cp/link-symlink.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # Check that the timestamps of the symlink are copied diff --git a/tests/cp/link.sh b/tests/cp/link.sh index 3a899f31c..3e15bf034 100755 --- a/tests/cp/link.sh +++ b/tests/cp/link.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp touch src || framework_failure_ diff --git a/tests/cp/nfs-removal-race.sh b/tests/cp/nfs-removal-race.sh index cb8aba37f..63382c80f 100755 --- a/tests/cp/nfs-removal-race.sh +++ b/tests/cp/nfs-removal-race.sh @@ -28,7 +28,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # Replace each stat call with a call to this wrapper. diff --git a/tests/cp/no-deref-link1.sh b/tests/cp/no-deref-link1.sh index c2a565793..9ae7eb15f 100755 --- a/tests/cp/no-deref-link1.sh +++ b/tests/cp/no-deref-link1.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir a b diff --git a/tests/cp/no-deref-link2.sh b/tests/cp/no-deref-link2.sh index 584029954..52a42ec30 100755 --- a/tests/cp/no-deref-link2.sh +++ b/tests/cp/no-deref-link2.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir b diff --git a/tests/cp/no-deref-link3.sh b/tests/cp/no-deref-link3.sh index 5f63f2699..c16668d44 100755 --- a/tests/cp/no-deref-link3.sh +++ b/tests/cp/no-deref-link3.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp msg=bar diff --git a/tests/cp/parent-perm-race.sh b/tests/cp/parent-perm-race.sh index 41486fcb1..209dceaac 100755 --- a/tests/cp/parent-perm-race.sh +++ b/tests/cp/parent-perm-race.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least diff --git a/tests/cp/parent-perm.sh b/tests/cp/parent-perm.sh index bac38c683..7e3eba0d1 100755 --- a/tests/cp/parent-perm.sh +++ b/tests/cp/parent-perm.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp working_umask_or_skip_ diff --git a/tests/cp/perm.sh b/tests/cp/perm.sh index a93df7182..74d948b31 100755 --- a/tests/cp/perm.sh +++ b/tests/cp/perm.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mv very_expensive_ diff --git a/tests/cp/preserve-2.sh b/tests/cp/preserve-2.sh index fea4b6c33..9ee21492b 100755 --- a/tests/cp/preserve-2.sh +++ b/tests/cp/preserve-2.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least diff --git a/tests/cp/preserve-gid.sh b/tests/cp/preserve-gid.sh index 746c57a60..fbafe1c18 100755 --- a/tests/cp/preserve-gid.sh +++ b/tests/cp/preserve-gid.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_root_ diff --git a/tests/cp/preserve-link.sh b/tests/cp/preserve-link.sh index 5f069af7c..428edc3c5 100755 --- a/tests/cp/preserve-link.sh +++ b/tests/cp/preserve-link.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp same_inode() diff --git a/tests/cp/preserve-slink-time.sh b/tests/cp/preserve-slink-time.sh index dc5d1cdd8..38110c351 100755 --- a/tests/cp/preserve-slink-time.sh +++ b/tests/cp/preserve-slink-time.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null || diff --git a/tests/cp/proc-short-read.sh b/tests/cp/proc-short-read.sh index 632418e4b..df8c12713 100755 --- a/tests/cp/proc-short-read.sh +++ b/tests/cp/proc-short-read.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp kall=/proc/kallsyms diff --git a/tests/cp/proc-zero-len.sh b/tests/cp/proc-zero-len.sh index b8b9e9c60..d51cc1d27 100755 --- a/tests/cp/proc-zero-len.sh +++ b/tests/cp/proc-zero-len.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp touch empty || framework_failure_ diff --git a/tests/cp/r-vs-symlink.sh b/tests/cp/r-vs-symlink.sh index e96c58425..3c579fc7e 100755 --- a/tests/cp/r-vs-symlink.sh +++ b/tests/cp/r-vs-symlink.sh @@ -20,7 +20,7 @@ # though now such usage evokes a warning: # cp: 'slink': WARNING: using -r to copy symbolic links is not portable -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp echo abc > foo || framework_failure_ diff --git a/tests/cp/reflink-auto.sh b/tests/cp/reflink-auto.sh index 036148c4e..7b6eb1956 100755 --- a/tests/cp/reflink-auto.sh +++ b/tests/cp/reflink-auto.sh @@ -16,11 +16,11 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" a_other="$other_partition_tmpdir/a" rm -f "$a_other" || framework_failure_ diff --git a/tests/cp/reflink-perm.sh b/tests/cp/reflink-perm.sh index c229993a2..22be2612f 100755 --- a/tests/cp/reflink-perm.sh +++ b/tests/cp/reflink-perm.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp diff --git a/tests/cp/same-file.sh b/tests/cp/same-file.sh index 2ca7bf6ba..d653b2d01 100755 --- a/tests/cp/same-file.sh +++ b/tests/cp/same-file.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp # Unset CDPATH. Otherwise, output from the 'cd dir' command diff --git a/tests/cp/slink-2-slink.sh b/tests/cp/slink-2-slink.sh index bf3238736..d7e1e4f76 100755 --- a/tests/cp/slink-2-slink.sh +++ b/tests/cp/slink-2-slink.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp touch file || framework_failure_ diff --git a/tests/cp/sparse-fiemap.sh b/tests/cp/sparse-fiemap.sh index f2e5f330d..65b8e608c 100755 --- a/tests/cp/sparse-fiemap.sh +++ b/tests/cp/sparse-fiemap.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_perl_ @@ -102,7 +102,7 @@ for i in $(seq 1 2 21); do # exclude the physical block numbers; they always differ filefrag -v j1 > ff1 || framework_failure_ filefrag -vs j2 > ff2 || framework_failure_ - { f ff1; f ff2; } | $PERL $abs_top_srcdir/tests/filefrag-extent-compare \ + { f ff1; f ff2; } | $PERL $abs_srcdir/tests/filefrag-extent-compare \ || { warn_ ignoring filefrag-reported extent map differences # Show the differing extent maps. diff --git a/tests/cp/sparse-to-pipe.sh b/tests/cp/sparse-to-pipe.sh index 0cfda8d55..9987a3f56 100755 --- a/tests/cp/sparse-to-pipe.sh +++ b/tests/cp/sparse-to-pipe.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_sparse_support_ diff --git a/tests/cp/sparse.sh b/tests/cp/sparse.sh index a55202877..8965e9a48 100755 --- a/tests/cp/sparse.sh +++ b/tests/cp/sparse.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_sparse_support_ diff --git a/tests/cp/special-bits.sh b/tests/cp/special-bits.sh index 4a00891d9..8058ad352 100755 --- a/tests/cp/special-bits.sh +++ b/tests/cp/special-bits.sh @@ -20,7 +20,7 @@ # This test would fail due to a bug introduced in 4.0y. # The bug was fixed in 4.0z. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp require_root_ diff --git a/tests/cp/special-f.sh b/tests/cp/special-f.sh index a47655ef7..0dea82b0f 100755 --- a/tests/cp/special-f.sh +++ b/tests/cp/special-f.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkfifo_or_skip_ fifo diff --git a/tests/cp/src-base-dot.sh b/tests/cp/src-base-dot.sh index 14438d09a..ecab07828 100755 --- a/tests/cp/src-base-dot.sh +++ b/tests/cp/src-base-dot.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir x y || framework_failure_ diff --git a/tests/cp/symlink-slash.sh b/tests/cp/symlink-slash.sh index 95c9cfa04..fa4e297a2 100755 --- a/tests/cp/symlink-slash.sh +++ b/tests/cp/symlink-slash.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp mkdir dir || framework_failure_ diff --git a/tests/cp/thru-dangling.sh b/tests/cp/thru-dangling.sh index f8527af8d..c992c9ca7 100755 --- a/tests/cp/thru-dangling.sh +++ b/tests/cp/thru-dangling.sh @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp ln -s no-such dangle || framework_failure_ |