diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-09-02 21:55:12 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-09-05 08:48:29 +0200 |
commit | 21b5147fd8ee493727e2a3ca17b3bf695c5024d3 (patch) | |
tree | b14cc2e5d51d761e9c825e0c0dd56f7fdce85cea /tests/mv | |
parent | 24fb6d91b6b5b460d5d0b4f5c76d4a954f928040 (diff) | |
download | coreutils-21b5147fd8ee493727e2a3ca17b3bf695c5024d3.tar.xz |
build: don't use recursive make for tests/ subdirectory
* Makefile.am (SUBDIRS): Remove 'tests'.
(include): The '$(top_srcdir)/tests/local.mk' file.
(check-root): Remove this convenience target, it's no longer needed
now that the "real" check-root target once in 'tests/Makefile' will
land in the top-level makefile.
* configure.ac (AC_CONFIG_FILES): Remove 'tests/Makefile'.
* tests/Makefile.am: Rename ...
* tests/local.mk: ... like this, with a lot of adjustments.
* tests/init.cfg: Move ...
* init.cfg: ... here. This is necessary, for a limitation of the
gnulib-provided 'tests/init.sh', which unconditionally look for
'init.cfg' in the $(srcdir) directory.
* tests/*/*.sh: Adjust: expect init.sh to be in '$srcdir/tests',
not in '$srcdir', and extend $PATH with './src', not with '../src'.
* tests/Coreutils.pm: Adjust similarly.
* tests/pr/pr-tests.pl ($pfx): Likewise.
Diffstat (limited to 'tests/mv')
41 files changed, 54 insertions, 54 deletions
diff --git a/tests/mv/acl.sh b/tests/mv/acl.sh index 2354ed967..9fe26e4b9 100755 --- a/tests/mv/acl.sh +++ b/tests/mv/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_ mv getfacl setfacl require_acl_ @@ -27,7 +27,7 @@ grep '^#define USE_ACL 1' $CONFIG_HEADER > /dev/null || skip_ "insufficient ACL support" cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" touch file || framework_failure_ t1=$other_partition_tmpdir/t1 diff --git a/tests/mv/atomic.sh b/tests/mv/atomic.sh index e5391c337..79894aca9 100755 --- a/tests/mv/atomic.sh +++ b/tests/mv/atomic.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_ mv require_strace_ unlink diff --git a/tests/mv/atomic2.sh b/tests/mv/atomic2.sh index d9c55e2c9..139b02f6c 100755 --- a/tests/mv/atomic2.sh +++ b/tests/mv/atomic2.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_ mv require_strace_ unlink diff --git a/tests/mv/backup-dir.sh b/tests/mv/backup-dir.sh index 40f2c756a..7a486da66 100755 --- a/tests/mv/backup-dir.sh +++ b/tests/mv/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_ mv mkdir A B || framework_failure_ diff --git a/tests/mv/backup-is-src.sh b/tests/mv/backup-is-src.sh index e1383a14d..0d4c3e7c0 100755 --- a/tests/mv/backup-is-src.sh +++ b/tests/mv/backup-is-src.sh @@ -16,10 +16,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" a="$other_partition_tmpdir/a" a2="$other_partition_tmpdir/a~" diff --git a/tests/mv/childproof.sh b/tests/mv/childproof.sh index efe7225d6..94fb5cdf0 100755 --- a/tests/mv/childproof.sh +++ b/tests/mv/childproof.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 ln skip_if_root_ diff --git a/tests/mv/diag.sh b/tests/mv/diag.sh index d7c287030..511f3b5da 100755 --- a/tests/mv/diag.sh +++ b/tests/mv/diag.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_ mv touch f1 || framework_failure_ diff --git a/tests/mv/dir-file.sh b/tests/mv/dir-file.sh index fb1a59424..0704d0326 100755 --- a/tests/mv/dir-file.sh +++ b/tests/mv/dir-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_ mv mkdir -p dir/file || framework_failure_ diff --git a/tests/mv/dir2dir.sh b/tests/mv/dir2dir.sh index 4322fd23d..4e3242b6e 100755 --- a/tests/mv/dir2dir.sh +++ b/tests/mv/dir2dir.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_ mv mkdir -p a/t b/t || framework_failure_ diff --git a/tests/mv/dup-source.sh b/tests/mv/dup-source.sh index ea88a046e..641a2e418 100755 --- a/tests/mv/dup-source.sh +++ b/tests/mv/dup-source.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 mv skip_if_root_ diff --git a/tests/mv/force.sh b/tests/mv/force.sh index 6bed83bf9..dc6651a7d 100755 --- a/tests/mv/force.sh +++ b/tests/mv/force.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_ mv ff=mvforce diff --git a/tests/mv/hard-2.sh b/tests/mv/hard-2.sh index e0fc174f0..276dbbb10 100755 --- a/tests/mv/hard-2.sh +++ b/tests/mv/hard-2.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 mv skip_if_root_ diff --git a/tests/mv/hard-3.sh b/tests/mv/hard-3.sh index a62167a07..4caec49d6 100755 --- a/tests/mv/hard-3.sh +++ b/tests/mv/hard-3.sh @@ -30,7 +30,7 @@ # directory, because it requires use of the --preserve=link option that # mv enables by default. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ cp skip_if_root_ diff --git a/tests/mv/hard-4.sh b/tests/mv/hard-4.sh index 645ead3c5..2bbc2cafc 100755 --- a/tests/mv/hard-4.sh +++ b/tests/mv/hard-4.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_ mv touch a || framework_failure_ ln a b || framework_failure_ diff --git a/tests/mv/hard-link-1.sh b/tests/mv/hard-link-1.sh index 78a555ac9..386f2b524 100755 --- a/tests/mv/hard-link-1.sh +++ b/tests/mv/hard-link-1.sh @@ -17,10 +17,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" dir=hlink diff --git a/tests/mv/hard-verbose.sh b/tests/mv/hard-verbose.sh index 41c4187ea..85f2da7bd 100755 --- a/tests/mv/hard-verbose.sh +++ b/tests/mv/hard-verbose.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_ mv touch x || framework_failure_ diff --git a/tests/mv/i-2.sh b/tests/mv/i-2.sh index f24801958..b85685076 100755 --- a/tests/mv/i-2.sh +++ b/tests/mv/i-2.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 mv skip_if_root_ diff --git a/tests/mv/i-3.sh b/tests/mv/i-3.sh index 3912842a2..073c070b1 100755 --- a/tests/mv/i-3.sh +++ b/tests/mv/i-3.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_ mv require_controlling_input_terminal_ skip_if_root_ diff --git a/tests/mv/i-4.sh b/tests/mv/i-4.sh index 8ef6ca77b..4b1da69a6 100755 --- a/tests/mv/i-4.sh +++ b/tests/mv/i-4.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_ mv for i in a b; do diff --git a/tests/mv/i-5.sh b/tests/mv/i-5.sh index 76cacabe3..773c47a8f 100755 --- a/tests/mv/i-5.sh +++ b/tests/mv/i-5.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_ mv mkdir a || framework_failure_ diff --git a/tests/mv/i-link-no.sh b/tests/mv/i-link-no.sh index 4615eaabb..7a9894a85 100755 --- a/tests/mv/i-link-no.sh +++ b/tests/mv/i-link-no.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_ mv mkdir a b || framework_failure_ diff --git a/tests/mv/into-self-2.sh b/tests/mv/into-self-2.sh index 3e6ace718..db57fecf1 100755 --- a/tests/mv/into-self-2.sh +++ b/tests/mv/into-self-2.sh @@ -18,10 +18,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" file="$other_partition_tmpdir/file" symlink=symlink diff --git a/tests/mv/into-self-3.sh b/tests/mv/into-self-3.sh index b2b8f8351..569b0819d 100755 --- a/tests/mv/into-self-3.sh +++ b/tests/mv/into-self-3.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_ mv dir1=is3-dir1 diff --git a/tests/mv/into-self-4.sh b/tests/mv/into-self-4.sh index 5119e8fa3..86beb7270 100755 --- a/tests/mv/into-self-4.sh +++ b/tests/mv/into-self-4.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_ mv touch file || framework_failure_ diff --git a/tests/mv/into-self.sh b/tests/mv/into-self.sh index 231d69c2c..06b36a440 100755 --- a/tests/mv/into-self.sh +++ b/tests/mv/into-self.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_ mv dir=toself-dir diff --git a/tests/mv/leak-fd.sh b/tests/mv/leak-fd.sh index d349a3f11..1dd006fa4 100755 --- a/tests/mv/leak-fd.sh +++ b/tests/mv/leak-fd.sh @@ -18,11 +18,11 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # limit so don't run it by default. -. "${srcdir=.}/init.sh"; path_prepend_ ../src +. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src print_ver_ mv skip_if_root_ cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" # This test is relatively expensive, and might well evoke a # framework-failure on systems with a smaller command-line length diff --git a/tests/mv/mv-n.sh b/tests/mv/mv-n.sh index 9a9b1156a..89a62f66d 100755 --- a/tests/mv/mv-n.sh +++ b/tests/mv/mv-n.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_ mv diff --git a/tests/mv/mv-special-1.sh b/tests/mv/mv-special-1.sh index dac55d0c2..d5914cb71 100755 --- a/tests/mv/mv-special-1.sh +++ b/tests/mv/mv-special-1.sh @@ -16,10 +16,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" null=mv-null dir=mv-dir diff --git a/tests/mv/no-target-dir.sh b/tests/mv/no-target-dir.sh index c1443cd3e..61cf48e99 100755 --- a/tests/mv/no-target-dir.sh +++ b/tests/mv/no-target-dir.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_ mv mkdir -p d/sub empty src d2/sub e2 || framework_failure_ diff --git a/tests/mv/part-fail.sh b/tests/mv/part-fail.sh index 499a6b66f..6bfddb299 100755 --- a/tests/mv/part-fail.sh +++ b/tests/mv/part-fail.sh @@ -19,11 +19,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_ mv skip_if_root_ cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" touch k "$other_partition_tmpdir/k" || framework_failure_ chmod u-w "$other_partition_tmpdir" || framework_failure_ diff --git a/tests/mv/part-hardlink.sh b/tests/mv/part-hardlink.sh index af773a23b..c93cd8577 100755 --- a/tests/mv/part-hardlink.sh +++ b/tests/mv/part-hardlink.sh @@ -19,10 +19,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" touch f || framework_failure_ ln f g || framework_failure_ diff --git a/tests/mv/part-rename.sh b/tests/mv/part-rename.sh index 19d9ecb75..33fdaa8c2 100755 --- a/tests/mv/part-rename.sh +++ b/tests/mv/part-rename.sh @@ -18,10 +18,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" mkdir foo || framework_failure_ diff --git a/tests/mv/part-symlink.sh b/tests/mv/part-symlink.sh index e57de3c96..1f9c81220 100755 --- a/tests/mv/part-symlink.sh +++ b/tests/mv/part-symlink.sh @@ -17,11 +17,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 mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" # On NFS on Linux 2.6.9 at least we get: # mv: preserving permissions for 'rem_sl': Operation not supported diff --git a/tests/mv/partition-perm.sh b/tests/mv/partition-perm.sh index bbda9da7a..19864e4ab 100755 --- a/tests/mv/partition-perm.sh +++ b/tests/mv/partition-perm.sh @@ -16,10 +16,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" : > file chmod a=rwx file diff --git a/tests/mv/perm-1.sh b/tests/mv/perm-1.sh index 3a7944a66..dd7a99d29 100755 --- a/tests/mv/perm-1.sh +++ b/tests/mv/perm-1.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_ mv skip_if_root_ diff --git a/tests/mv/sticky-to-xpart.sh b/tests/mv/sticky-to-xpart.sh index 6df65024e..c3a9bcdc5 100755 --- a/tests/mv/sticky-to-xpart.sh +++ b/tests/mv/sticky-to-xpart.sh @@ -19,12 +19,12 @@ # 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_ mv require_root_ cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" # Set up to run a test where non-root user tries to move a root-owned # file from a sticky tmpdir to a directory owned by that user on diff --git a/tests/mv/symlink-onto-hardlink-to-self.sh b/tests/mv/symlink-onto-hardlink-to-self.sh index f53f6ef44..77c7dc883 100755 --- a/tests/mv/symlink-onto-hardlink-to-self.sh +++ b/tests/mv/symlink-onto-hardlink-to-self.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_ mv # Create a file f, and a symlink s1 to that file. diff --git a/tests/mv/symlink-onto-hardlink.sh b/tests/mv/symlink-onto-hardlink.sh index 2dac48401..675871d17 100755 --- a/tests/mv/symlink-onto-hardlink.sh +++ b/tests/mv/symlink-onto-hardlink.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_ mv touch f || framework_failure_ diff --git a/tests/mv/to-symlink.sh b/tests/mv/to-symlink.sh index c203d7a4b..b0c9bab33 100755 --- a/tests/mv/to-symlink.sh +++ b/tests/mv/to-symlink.sh @@ -17,10 +17,10 @@ # 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_ mv cleanup_() { rm -rf "$other_partition_tmpdir"; } -. "$abs_srcdir/other-fs-tmpdir" +. "$abs_srcdir/tests/other-fs-tmpdir" rem_file="$other_partition_tmpdir/file" rem_symlink="$other_partition_tmpdir/symlink" diff --git a/tests/mv/trailing-slash.sh b/tests/mv/trailing-slash.sh index 26f880250..cec04839c 100755 --- a/tests/mv/trailing-slash.sh +++ b/tests/mv/trailing-slash.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_ mv mkdir foo || framework_failure_ diff --git a/tests/mv/update.sh b/tests/mv/update.sh index f0beb4076..1514a8c12 100755 --- a/tests/mv/update.sh +++ b/tests/mv/update.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 echo old > old || framework_failure_ |