]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Revamp test-related Makefiles.
authorJim Meyering <meyering@redhat.com>
Thu, 17 Apr 2008 21:34:45 +0000 (23:34 +0200)
committerJim Meyering <meyering@redhat.com>
Sun, 20 Apr 2008 22:01:51 +0000 (00:01 +0200)
One side-effect of this change is that "make check" now works even if
you put "." early in your shell's search PATH (don't do that!).

Remove all test-related Makefile.am files, except those generated
by mk-script.  Instead, tests/Makefile.am now lists not only the
tests directly under tests/, but also those in tests/*/ that are
not generated by mk-script, e.g., cp/abuse, cp/acl, mv/i-1, etc.

A lot of these changes are like this:

-. $srcdir/../lang-default
+. $top_srcdir/tests/lang-default

-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh

* configure.ac (AC_CONFIG_FILES): Remove corresponding Makefiles.
* tests/check.mk (vc_exe_in_TESTS): Relax syntax requirements.
* tests/rwx-to-mode: Remove file.  Rewritten as...
* tests/test-lib.sh (rwx_to_mode_): ...this new function.
* tests/Makefile.am (EXTRA_DIST): Remove rwx-to-mode.
(SUBDIRS): Remove each dir with a removed Makefile.am.
(EXTRA_DIST): Add $(TESTS).
(TESTS): Add over 300 entries.

342 files changed:
configure.ac
tests/Makefile.am
tests/check.mk
tests/chgrp/Makefile.am [deleted file]
tests/chgrp/basic
tests/chgrp/default-no-deref
tests/chgrp/deref
tests/chgrp/no-x
tests/chgrp/posix-H
tests/chgrp/recurse
tests/chmod/Makefile.am [deleted file]
tests/chmod/c-option
tests/chmod/equal-x
tests/chmod/equals
tests/chmod/inaccessible
tests/chmod/no-x
tests/chmod/octal
tests/chmod/setgid
tests/chmod/thru-dangling
tests/chmod/umask-x
tests/chmod/usage
tests/chown/Makefile.am [deleted file]
tests/chown/basic
tests/chown/deref
tests/chown/preserve-root
tests/chown/separator
tests/cp/Makefile.am [deleted file]
tests/cp/abuse
tests/cp/acl
tests/cp/backup-1
tests/cp/backup-dir
tests/cp/backup-is-src
tests/cp/cp-HL
tests/cp/cp-a-selinux
tests/cp/cp-deref
tests/cp/cp-i
tests/cp/cp-mv-backup
tests/cp/cp-parents
tests/cp/deref-slink
tests/cp/dir-rm-dest
tests/cp/dir-slash
tests/cp/dir-vs-file
tests/cp/existing-perm-race
tests/cp/fail-perm
tests/cp/file-perm-race
tests/cp/into-self
tests/cp/link
tests/cp/link-no-deref
tests/cp/link-preserve
tests/cp/no-deref-link1
tests/cp/no-deref-link2
tests/cp/no-deref-link3
tests/cp/parent-perm
tests/cp/parent-perm-race
tests/cp/perm
tests/cp/preserve-2
tests/cp/preserve-gid
tests/cp/proc-zero-len
tests/cp/r-vs-symlink
tests/cp/same-file
tests/cp/slink-2-slink
tests/cp/sparse
tests/cp/special-bits
tests/cp/special-f
tests/cp/src-base-dot
tests/cp/symlink-slash
tests/cp/thru-dangling
tests/dd/Makefile.am [deleted file]
tests/dd/misc
tests/dd/not-rewound
tests/dd/skip-seek
tests/dd/skip-seek2
tests/dd/unblock-sync
tests/du/2g
tests/du/8gb
tests/du/Makefile.am [deleted file]
tests/du/basic
tests/du/deref
tests/du/deref-args
tests/du/exclude
tests/du/fd-leak
tests/du/files0-from
tests/du/hard-link
tests/du/inacc-dest
tests/du/inacc-dir
tests/du/inaccessible-cwd
tests/du/long-from-unreadable
tests/du/long-sloop
tests/du/no-deref
tests/du/no-x
tests/du/one-file-system
tests/du/restore-wd
tests/du/slash
tests/du/slink
tests/du/trailing-slash
tests/du/two-args
tests/install/Makefile.am [deleted file]
tests/install/basic-1
tests/install/create-leading
tests/install/d-slashdot
tests/install/trap
tests/ln/Makefile.am [deleted file]
tests/ln/backup-1
tests/ln/hard-backup
tests/ln/misc
tests/ln/sf-1
tests/ln/target-1
tests/ls/Makefile.am [deleted file]
tests/ls/color-dtype-dir
tests/ls/dangle
tests/ls/dired
tests/ls/file-type
tests/ls/follow-slink
tests/ls/infloop
tests/ls/inode
tests/ls/m-option
tests/ls/nameless-uid
tests/ls/no-arg
tests/ls/proc-selinux-segfault
tests/ls/recursive
tests/ls/rt-1
tests/ls/stat-dtype
tests/ls/stat-failed
tests/ls/stat-free-symlinks
tests/ls/stat-vs-dirent
tests/ls/symlink-slash
tests/ls/x-option
tests/misc/arch
tests/misc/base64
tests/misc/basename
tests/misc/cat-proc
tests/misc/chcon
tests/misc/chcon-fail
tests/misc/close-stdout
tests/misc/csplit
tests/misc/cut
tests/misc/date
tests/misc/date-sec
tests/misc/df
tests/misc/df-P
tests/misc/dircolors
tests/misc/dirname
tests/misc/expand
tests/misc/expr
tests/misc/factor
tests/misc/false-status
tests/misc/fmt
tests/misc/fmt-long-line
tests/misc/fold
tests/misc/groups-dash
tests/misc/groups-version
tests/misc/head-c
tests/misc/head-elide-tail
tests/misc/head-pos
tests/misc/help-version
tests/misc/ls-misc
tests/misc/ls-time
tests/misc/md5sum
tests/misc/md5sum-newline
tests/misc/mknod
tests/misc/mktemp
tests/misc/nice
tests/misc/nl
tests/misc/nohup
tests/misc/od
tests/misc/od-N
tests/misc/od-x8
tests/misc/paste
tests/misc/pathchk1
tests/misc/pr
tests/misc/printf
tests/misc/printf-hex
tests/misc/printf-surprise
tests/misc/ptx-overrun
tests/misc/pwd-long
tests/misc/pwd-unreadable-parent
tests/misc/readlink-fp-loop
tests/misc/runcon-no-reorder
tests/misc/selinux
tests/misc/seq
tests/misc/sha1sum
tests/misc/sha1sum-vec
tests/misc/sha224sum
tests/misc/sha256sum
tests/misc/sha384sum
tests/misc/sha512sum
tests/misc/shred-exact
tests/misc/shred-remove
tests/misc/shuf
tests/misc/sort-compress
tests/misc/sort-merge
tests/misc/sort-rand
tests/misc/split-a
tests/misc/split-fail
tests/misc/split-l
tests/misc/stat-fmt
tests/misc/stat-printf
tests/misc/stty
tests/misc/stty-invalid
tests/misc/stty-row-col
tests/misc/sum
tests/misc/sum-sysv
tests/misc/tac-continue
tests/misc/tee
tests/misc/tee-dash
tests/misc/test-diag
tests/misc/tsort
tests/misc/tty-eof
tests/misc/unexpand
tests/misc/wc-files0
tests/misc/wc-files0-from
tests/misc/xstrtol
tests/mk-script [changed mode: 0755->0644]
tests/mkdir/Makefile.am [deleted file]
tests/mkdir/p-1
tests/mkdir/p-2
tests/mkdir/p-3
tests/mkdir/p-slashdot
tests/mkdir/p-thru-slink
tests/mkdir/p-v
tests/mkdir/parents
tests/mkdir/perm
tests/mkdir/selinux
tests/mkdir/special-1
tests/mkdir/t-slash
tests/mkdir/writable-under-readonly
tests/mv/Makefile.am [deleted file]
tests/mv/acl
tests/mv/atomic
tests/mv/atomic2
tests/mv/backup-dir
tests/mv/backup-is-src
tests/mv/childproof
tests/mv/diag
tests/mv/dir-file
tests/mv/dir2dir
tests/mv/dup-source
tests/mv/force
tests/mv/hard-2
tests/mv/hard-3
tests/mv/hard-4
tests/mv/hard-link-1
tests/mv/hard-verbose
tests/mv/i-1
tests/mv/i-2
tests/mv/i-3
tests/mv/i-4
tests/mv/i-5
tests/mv/i-link-no
tests/mv/into-self
tests/mv/into-self-2
tests/mv/into-self-3
tests/mv/into-self-4
tests/mv/leak-fd
tests/mv/mv-special-1
tests/mv/no-target-dir
tests/mv/part-fail
tests/mv/part-hardlink
tests/mv/part-rename
tests/mv/part-symlink
tests/mv/partition-perm
tests/mv/perm-1
tests/mv/reply-no
tests/mv/sticky-to-xpart
tests/mv/to-symlink
tests/mv/trailing-slash
tests/mv/update
tests/other-fs-tmpdir [changed mode: 0755->0644]
tests/readlink/Makefile.am [deleted file]
tests/readlink/can-e
tests/readlink/can-f
tests/readlink/can-m
tests/readlink/rl-1
tests/rm/Makefile.am [deleted file]
tests/rm/cycle
tests/rm/dangling-symlink
tests/rm/deep-1
tests/rm/deep-2
tests/rm/dir-no-w
tests/rm/dir-nonrecur
tests/rm/dot-rel
tests/rm/empty-inacc
tests/rm/empty-name
tests/rm/f-1
tests/rm/fail-2eperm
tests/rm/fail-eacces
tests/rm/fail-eperm
tests/rm/hash
tests/rm/i-1
tests/rm/i-never
tests/rm/i-no-r
tests/rm/ignorable
tests/rm/inaccessible
tests/rm/interactive-always
tests/rm/interactive-once
tests/rm/ir-1
tests/rm/isatty
tests/rm/no-give-up
tests/rm/one-file-system
tests/rm/r-1
tests/rm/r-2
tests/rm/r-3
tests/rm/r-4
tests/rm/readdir-bug
tests/rm/rm1
tests/rm/rm2
tests/rm/rm3
tests/rm/rm4
tests/rm/rm5
tests/rm/sunos-1
tests/rm/unread2
tests/rm/unread3
tests/rm/unreadable
tests/rm/v-slash
tests/rmdir/Makefile.am [deleted file]
tests/rmdir/fail-perm
tests/rmdir/ignore
tests/rmdir/t-slash
tests/rwx-to-mode [deleted file]
tests/sort-time/rand-gen [changed mode: 0755->0644]
tests/tail-2/Makefile.am [deleted file]
tests/tail-2/append-only
tests/tail-2/assert
tests/tail-2/assert-2
tests/tail-2/big-4gb
tests/tail-2/infloop-1
tests/tail-2/proc-ksyms
tests/tail-2/start-middle
tests/tail-2/tail-n0f
tests/test-lib.sh
tests/touch/dangling-symlink
tests/touch/dir-1
tests/touch/empty-file
tests/touch/fail-diag
tests/touch/fifo
tests/touch/no-create-missing
tests/touch/no-rights
tests/touch/not-owner
tests/touch/now-owned-by-other
tests/touch/obsolescent
tests/touch/read-only
tests/touch/relative

index 36fc0cf5c72880e4dcacb2975831b647a4876ae7..4cd0d7c8489c875be8024dccfe906cb0ae1b63a1 100644 (file)
@@ -343,31 +343,14 @@ AC_CONFIG_FILES(
   src/Makefile
   tests/Makefile
   gnulib-tests/Makefile
-  tests/chgrp/Makefile
-  tests/chmod/Makefile
-  tests/chown/Makefile
-  tests/cp/Makefile
   tests/cut/Makefile
-  tests/dd/Makefile
-  tests/du/Makefile
   tests/head/Makefile
-  tests/install/Makefile
   tests/join/Makefile
-  tests/ln/Makefile
-  tests/ls/Makefile
-  tests/misc/Makefile
-  tests/mkdir/Makefile
-  tests/mv/Makefile
   tests/pr/Makefile
-  tests/readlink/Makefile
-  tests/rm/Makefile
-  tests/rmdir/Makefile
   tests/sort/Makefile
   tests/tac/Makefile
-  tests/tail-2/Makefile
   tests/tail/Makefile
   tests/test/Makefile
-  tests/touch/Makefile
   tests/tr/Makefile
   tests/uniq/Makefile
   tests/wc/Makefile
index c74c0a18341b06aba1827a5af1c10a6e98080bc1..8893f74bb4aa51d27ca94a11f95f2206d5239257 100644 (file)
@@ -19,28 +19,15 @@ EXTRA_DIST =                \
   mk-script            \
   other-fs-tmpdir      \
   require-perl         \
-  rwx-to-mode          \
   sample-test          \
   setgid-check         \
   sparse-file          \
   test-lib.sh          \
   umask-check
 
-# Regarding ordering in SUBDIRS, place early in the list the tools that
-# are most commonly used in test scripts.  Every test script uses rm
-# and chmod, so they have to be very early.
-# Ordering within misc/ should handle the rest.
-
 ## N O T E :: Please do not add new tests/ directories.
 ## There are too many already.  Put new tests in misc/.
-SUBDIRS = \
-  rm \
-  chmod \
-  misc \
-  chgrp chown cp cut dd du head \
-  install join ln ls mkdir mv pr readlink rmdir \
-  sort tac tail tail-2 test touch tr \
-  uniq wc
+SUBDIRS = cut head join pr sort tac tail test tr uniq wc
 ## N O T E :: Please do not add new directories.
 
 all_t = t1 t2 t3 t4 t5 t6 t7 t8 t9 ta tb tc td
@@ -48,31 +35,31 @@ all_t = t1 t2 t3 t4 t5 t6 t7 t8 t9 ta tb tc td
 check-root: $(all_t)
 
 t1:
-       cd chown && $(MAKE) check TESTS=basic
+       $(MAKE) check TESTS=chown/basic
 t2:
-       cd cp    && $(MAKE) check TESTS=special-bits
+       $(MAKE) check TESTS=cp/special-bits
 t3:
-       cd rm    && $(MAKE) check TESTS=no-give-up
+       $(MAKE) check TESTS=rm/no-give-up
 t4:
-       cd rm    && $(MAKE) check TESTS=fail-2eperm
+       $(MAKE) check TESTS=rm/fail-2eperm
 t5:
-       cd tail-2 && $(MAKE) check TESTS=append-only
+       $(MAKE) check TESTS=tail-2/append-only
 t6:
-       cd rm    && $(MAKE) check TESTS=one-file-system
+       $(MAKE) check TESTS=rm/one-file-system
 t7:
-       cd ls    && $(MAKE) check TESTS=nameless-uid
+       $(MAKE) check TESTS=ls/nameless-uid
 t8:
-       cd misc  && $(MAKE) check TESTS=chcon
+       $(MAKE) check TESTS=misc/chcon
 t9:
-       cd cp    && $(MAKE) check TESTS=cp-a-selinux
+       $(MAKE) check TESTS=cp/cp-a-selinux
 ta:
-       cd mkdir && $(MAKE) check TESTS=writable-under-readonly
+       $(MAKE) check TESTS=mkdir/writable-under-readonly
 tb:
-       cd mv    && $(MAKE) check TESTS=sticky-to-xpart
+       $(MAKE) check TESTS=mv/sticky-to-xpart
 tc:
-       cd cp    && $(MAKE) check TESTS=preserve-gid
+       $(MAKE) check TESTS=cp/preserve-gid
 td:
-       cd touch && $(MAKE) check TESTS=now-owned-by-other
+       $(MAKE) check TESTS=touch/now-owned-by-other
 
 check-recursive: root-hint
 
@@ -83,3 +70,344 @@ root-hint:
        @echo "NOTICE: Some tests may be run only as root."
        @echo "  Do \`make check-root' as \`root' to run these tests."
        @echo '***********************************************************'
+
+EXTRA_DIST += $(TESTS)
+
+# Do not choose a name that is a shell keyword like 'if', or a
+# commonly-used utility like 'cat' or 'test', as the name of a test.
+# Otherwise, VPATH builds will fail on hosts like Solaris, since they
+# will expand 'if test ...' to 'if .../test ...', and the '.../test'
+# will execute the test script rather than the standard utility.
+
+# Regarding ordering in SUBDIRS, place early in the list the tools that
+# are most commonly used in test scripts.  Every test script uses rm
+# and chmod, so they have to be very early.
+# Ordering within misc/ should handle the rest.
+
+# Ordering:
+# help-version comes early because it's a basic sanity test.
+# Put seq early, since lots of other tests use it.
+# Put head-elide-tail early, because it's long-running.
+
+TESTS =                                                \
+  misc/help-version                            \
+  chgrp/basic                                  \
+  rm/cycle                                     \
+  rm/dangling-symlink                          \
+  rm/deep-1                                    \
+  rm/deep-2                                    \
+  rm/dir-no-w                                  \
+  rm/dir-nonrecur                              \
+  rm/dot-rel                                   \
+  rm/empty-inacc                               \
+  rm/empty-name                                        \
+  rm/f-1                                       \
+  rm/fail-2eperm                               \
+  rm/fail-eacces                               \
+  rm/fail-eperm                                        \
+  rm/hash                                      \
+  rm/i-1                                       \
+  rm/i-never                                   \
+  rm/i-no-r                                    \
+  rm/ignorable                                 \
+  rm/inaccessible                              \
+  rm/interactive-always                                \
+  rm/interactive-once                          \
+  rm/ir-1                                      \
+  rm/isatty                                    \
+  rm/no-give-up                                        \
+  rm/one-file-system                           \
+  rm/r-1                                       \
+  rm/r-2                                       \
+  rm/r-3                                       \
+  rm/r-4                                       \
+  rm/readdir-bug                               \
+  rm/rm1                                       \
+  rm/rm2                                       \
+  rm/rm3                                       \
+  rm/rm4                                       \
+  rm/rm5                                       \
+  rm/sunos-1                                   \
+  rm/unread2                                   \
+  rm/unread3                                   \
+  rm/unreadable                                        \
+  rm/v-slash                                   \
+  chgrp/default-no-deref                       \
+  chgrp/deref                                  \
+  chgrp/no-x                                   \
+  chgrp/posix-H                                        \
+  chgrp/recurse                                        \
+  misc/seq                                     \
+  misc/head-elide-tail                         \
+  misc/ls-time                                 \
+  misc/ls-misc                                 \
+  misc/date                                    \
+  misc/ptx-overrun                             \
+  misc/xstrtol                                 \
+  misc/od                                      \
+  misc/mktemp                                  \
+  misc/arch                                    \
+  misc/pr                                      \
+  misc/df-P                                    \
+  misc/pwd-unreadable-parent                   \
+  misc/chcon                                   \
+  misc/chcon-fail                              \
+  misc/selinux                                 \
+  misc/cut                                     \
+  misc/wc-files0-from                          \
+  misc/wc-files0                               \
+  misc/cat-proc                                        \
+  misc/base64                                  \
+  misc/basename                                        \
+  misc/close-stdout                            \
+  misc/csplit                                  \
+  misc/date-sec                                        \
+  misc/dircolors                               \
+  misc/df                                      \
+  misc/dirname                                 \
+  misc/expand                                  \
+  misc/expr                                    \
+  misc/factor                                  \
+  misc/false-status                            \
+  misc/fmt                                     \
+  misc/fmt-long-line                           \
+  misc/fold                                    \
+  misc/groups-dash                             \
+  misc/groups-version                          \
+  misc/head-c                                  \
+  misc/head-pos                                        \
+  misc/md5sum                                  \
+  misc/md5sum-newline                          \
+  misc/mknod                                   \
+  misc/nice                                    \
+  misc/nl                                      \
+  misc/nohup                                   \
+  misc/od-N                                    \
+  misc/od-x8                                   \
+  misc/paste                                   \
+  misc/pathchk1                                        \
+  misc/printf                                  \
+  misc/printf-hex                              \
+  misc/printf-surprise                         \
+  misc/pwd-long                                        \
+  misc/readlink-fp-loop                                \
+  misc/runcon-no-reorder                       \
+  misc/sha1sum                                 \
+  misc/sha1sum-vec                             \
+  misc/sha224sum                               \
+  misc/sha256sum                               \
+  misc/sha384sum                               \
+  misc/sha512sum                               \
+  misc/shred-exact                             \
+  misc/shred-remove                            \
+  misc/shuf                                    \
+  misc/sort-compress                           \
+  misc/sort-merge                              \
+  misc/sort-rand                               \
+  misc/split-a                                 \
+  misc/split-fail                              \
+  misc/split-l                                 \
+  misc/stat-fmt                                        \
+  misc/stat-printf                             \
+  misc/stty                                    \
+  misc/stty-invalid                            \
+  misc/stty-row-col                            \
+  misc/sum                                     \
+  misc/sum-sysv                                        \
+  misc/tac-continue                            \
+  misc/tee                                     \
+  misc/tee-dash                                        \
+  misc/test-diag                               \
+  misc/tsort                                   \
+  misc/tty-eof                                 \
+  misc/unexpand                                        \
+  chmod/c-option                               \
+  chmod/equal-x                                        \
+  chmod/equals                                 \
+  chmod/inaccessible                           \
+  chmod/no-x                                   \
+  chmod/octal                                  \
+  chmod/setgid                                 \
+  chmod/thru-dangling                          \
+  chmod/umask-x                                        \
+  chmod/usage                                  \
+  chown/basic                                  \
+  chown/deref                                  \
+  chown/preserve-root                          \
+  chown/separator                              \
+  cp/abuse                                     \
+  cp/acl                                       \
+  cp/backup-1                                  \
+  cp/backup-dir                                        \
+  cp/backup-is-src                             \
+  cp/cp-HL                                     \
+  cp/cp-a-selinux                              \
+  cp/cp-deref                                  \
+  cp/cp-i                                      \
+  cp/cp-mv-backup                              \
+  cp/cp-parents                                        \
+  cp/deref-slink                               \
+  cp/dir-rm-dest                               \
+  cp/dir-slash                                 \
+  cp/dir-vs-file                               \
+  cp/existing-perm-race                                \
+  cp/fail-perm                                 \
+  cp/file-perm-race                            \
+  cp/into-self                                 \
+  cp/link                                      \
+  cp/link-no-deref                             \
+  cp/link-preserve                             \
+  cp/no-deref-link1                            \
+  cp/no-deref-link2                            \
+  cp/no-deref-link3                            \
+  cp/parent-perm                               \
+  cp/parent-perm-race                          \
+  cp/perm                                      \
+  cp/preserve-2                                        \
+  cp/preserve-gid                              \
+  cp/proc-zero-len                             \
+  cp/r-vs-symlink                              \
+  cp/same-file                                 \
+  cp/slink-2-slink                             \
+  cp/sparse                                    \
+  cp/special-bits                              \
+  cp/special-f                                 \
+  cp/src-base-dot                              \
+  cp/symlink-slash                             \
+  cp/thru-dangling                             \
+  dd/misc                                      \
+  dd/not-rewound                               \
+  dd/skip-seek                                 \
+  dd/skip-seek2                                        \
+  dd/unblock-sync                              \
+  du/2g                                                \
+  du/8gb                                       \
+  du/basic                                     \
+  du/deref                                     \
+  du/deref-args                                        \
+  du/exclude                                   \
+  du/fd-leak                                   \
+  du/files0-from                               \
+  du/hard-link                                 \
+  du/inacc-dest                                        \
+  du/inacc-dir                                 \
+  du/inaccessible-cwd                          \
+  du/long-from-unreadable                      \
+  du/long-sloop                                        \
+  du/no-deref                                  \
+  du/no-x                                      \
+  du/one-file-system                           \
+  du/restore-wd                                        \
+  du/slash                                     \
+  du/slink                                     \
+  du/trailing-slash                            \
+  du/two-args                                  \
+  install/basic-1                              \
+  install/create-leading                       \
+  install/d-slashdot                           \
+  install/trap                                 \
+  ln/backup-1                                  \
+  ln/hard-backup                               \
+  ln/misc                                      \
+  ln/sf-1                                      \
+  ln/target-1                                  \
+  ls/color-dtype-dir                           \
+  ls/dangle                                    \
+  ls/dired                                     \
+  ls/file-type                                 \
+  ls/follow-slink                              \
+  ls/infloop                                   \
+  ls/inode                                     \
+  ls/m-option                                  \
+  ls/nameless-uid                              \
+  ls/no-arg                                    \
+  ls/proc-selinux-segfault                     \
+  ls/recursive                                 \
+  ls/rt-1                                      \
+  ls/stat-dtype                                        \
+  ls/stat-failed                               \
+  ls/stat-free-symlinks                                \
+  ls/stat-vs-dirent                            \
+  ls/symlink-slash                             \
+  ls/x-option                                  \
+  mkdir/p-1                                    \
+  mkdir/p-2                                    \
+  mkdir/p-3                                    \
+  mkdir/p-slashdot                             \
+  mkdir/p-thru-slink                           \
+  mkdir/p-v                                    \
+  mkdir/parents                                        \
+  mkdir/perm                                   \
+  mkdir/selinux                                        \
+  mkdir/special-1                              \
+  mkdir/t-slash                                        \
+  mkdir/writable-under-readonly                        \
+  mv/acl                                       \
+  mv/atomic                                    \
+  mv/atomic2                                   \
+  mv/backup-dir                                        \
+  mv/backup-is-src                             \
+  mv/childproof                                        \
+  mv/diag                                      \
+  mv/dir-file                                  \
+  mv/dir2dir                                   \
+  mv/dup-source                                        \
+  mv/force                                     \
+  mv/hard-2                                    \
+  mv/hard-3                                    \
+  mv/hard-4                                    \
+  mv/hard-link-1                               \
+  mv/hard-verbose                              \
+  mv/i-1                                       \
+  mv/i-2                                       \
+  mv/i-3                                       \
+  mv/i-4                                       \
+  mv/i-5                                       \
+  mv/i-link-no                                 \
+  mv/into-self                                 \
+  mv/into-self-2                               \
+  mv/into-self-3                               \
+  mv/into-self-4                               \
+  mv/leak-fd                                   \
+  mv/mv-special-1                              \
+  mv/no-target-dir                             \
+  mv/part-fail                                 \
+  mv/part-hardlink                             \
+  mv/part-rename                               \
+  mv/part-symlink                              \
+  mv/partition-perm                            \
+  mv/perm-1                                    \
+  mv/reply-no                                  \
+  mv/sticky-to-xpart                           \
+  mv/to-symlink                                        \
+  mv/trailing-slash                            \
+  mv/update                                    \
+  readlink/can-e                               \
+  readlink/can-f                               \
+  readlink/can-m                               \
+  readlink/rl-1                                        \
+  rmdir/fail-perm                              \
+  rmdir/ignore                                 \
+  rmdir/t-slash                                        \
+  tail-2/append-only                           \
+  tail-2/assert                                        \
+  tail-2/assert-2                              \
+  tail-2/big-4gb                               \
+  tail-2/infloop-1                             \
+  tail-2/proc-ksyms                            \
+  tail-2/start-middle                          \
+  tail-2/tail-n0f                              \
+  touch/dangling-symlink                       \
+  touch/dir-1                                  \
+  touch/empty-file                             \
+  touch/fail-diag                              \
+  touch/fifo                                   \
+  touch/no-create-missing                      \
+  touch/no-rights                              \
+  touch/not-owner                              \
+  touch/now-owned-by-other                     \
+  touch/obsolescent                            \
+  touch/read-only                              \
+  touch/relative
+
+include $(top_srcdir)/tests/check.mk
index 3d4ff3b4c1f55e59c80cb8842833b6a187bf0630..cb4373a0bb74c9aa6b6176c48554e3c4ce603465 100644 (file)
@@ -21,7 +21,8 @@ _v = TESTS
 vc_exe_in_TESTS: Makefile
        @rm -f t1 t2
        @if test -d $(top_srcdir)/.git && test $(srcdir) = .; then      \
-         sed -n '/^$(_v) = \\$$/,/[^\]$$/p' $(srcdir)/Makefile.am      \
+         sed -n '/^$(_v) =[     ]*\\$$/,/[^\]$$/p'                     \
+               $(srcdir)/Makefile.am                                   \
            | sed 's/^  *//;/^\$$.*/d;/^$(_v) =/d'                      \
            | tr -s '\012\\' '  ' | fmt -1 | sort -u > t1 &&            \
          for f in `cd $(top_srcdir) && build-aux/vc-list-files $(subdir)`; do \
diff --git a/tests/chgrp/Makefile.am b/tests/chgrp/Makefile.am
deleted file mode 100644 (file)
index 3033e1b..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  default-no-deref \
-  basic \
-  deref \
-  no-x \
-  posix-H \
-  recurse
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index 8a795d63b38183ba1c5a0cf8f20a4b5dd4f543a8..b242a2a8873bb0be5a27cb4fd3c34627b8298be9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure chgrp is reasonable
 
-# Copyright (C) 2000-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,9 +21,9 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index e7239d52d34309d270bd22133c266725e76be74c..e1f711d7cb71dbf1f92e2beed7132f02abb88c88 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that chgrp -R does not dereference symlinks.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 set _ $groups; shift
 g2=$2
index ebf92e47087f6e1f88ee6a374d69692f68078c2e..f3453fb7a569c6016704b16d8115f4daf16859cf 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # see if chgrp can change the group of a symlink
 
-# Copyright (C) 2000, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 set _ $groups; shift
 g1=$1
index 57900d83ce4079932000146392d7d18c2767b923..f4df292f5c1d45c5c5add91362b12737cde5bac7 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure chgrp gives the right diagnostic for a readable,
 # but inaccessible directory.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,9 +22,9 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 set _ $groups; shift
index a9b41d0110d24dcff4fdd4adec06fe611be237df..88345767b0a7b964d14604c6631b6356c76a67a2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test POSIX-mandated -H option.
 
-# Copyright (C) 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 set _ $groups; shift
 g1=$1
index a0cacd6454377dfd83f09f8016ca327cbc144de3..4ae30f9693d2627a7ec45b00d91fcdde3165fc21 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ad-hoc tests of chgrp with -R and -H or -L and symlinks
 
-# Copyright (C) 2000, 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 set _ $groups; shift
 g1=$1
diff --git a/tests/chmod/Makefile.am b/tests/chmod/Makefile.am
deleted file mode 100644 (file)
index a0e0053..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  thru-dangling \
-  inaccessible \
-  c-option \
-  equal-x \
-  equals \
-  no-x \
-  octal \
-  setgid \
-  umask-x \
-  usage
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index e491b75b0376ca965ba24fb7db460bfd6eb5c01e..838270f015105cfbd79f327bcf041845eb97fe1a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Verify that chmod's --changes (-c) option works.
 
-# Copyright (C) 2000, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 umask 0
 file=f
index 672dab29b67c850e42bc70a262870290deae5b49..6400d029a475df3af0386de26dbb3c6b73b651e6 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "chmod =x" and the like.
 
-# Copyright (C) 1999, 2000, 2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 file=f
 touch $file || framework_failure
index 47a9c52d050224214b52218caee0557014be1321..7ad2793e1b39b088a6f942b11d36023dca37af6a 100755 (executable)
@@ -3,7 +3,7 @@
 # Before fileutils-4.1.2, some of them didn't.
 # Also, before coreutils-5.3.1, =[ugo] sometimes didn't work.
 
-# Copyright (C) 2001, 2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch f || framework_failure
 
index 318d4bba5a82f51d3c348ce4b3ec416f16d51fa1..6e8744dbb0202da5f6c189974748e26fa1235436 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test for the bug fixed on 2006-09-20.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p d/e || framework_failure
 chmod 0 d/e d || framework_failure
index 8e84ad26236142c9a75ad88c1fe38438a113b162..7a7995a006a0caab3378403d83a598cc2d77c5cb 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure chmod gives the right diagnostic for a readable,
 # but inaccessible directory.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p d/no-x/y a/b || framework_failure
index 781b904dc830c08bdb0e46fc852d9a5fa9bd5697..32c55120ca04412ee2d5553380aa5e880e930ed0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that chmod diagnoses a certain type of invalid mode string
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index cee9ca6bbfb3c6bfc0460eb6dff30e824a911c0c..c716e4b2a10101d461b5a49e1c20030343d80201 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 umask 0
 mkdir d || framework_failure
index 9423a74013a33ce0a503cef7566cf1412f4509c6..0924b47798b47a11211e30b1e156d77e8894fc42 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test for proper error and exit code of chmod on a dangling symlink.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s non-existent dangle || framework_failure
 
index c7b139b88f299b3dc1fb1e9f655d919294735bb7..9f33fbfc7ea7d42707932edb246b8e2bcba81f9d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test that chmod -x file reports an error if the result is executable.
 
-# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 touch file
index 8e45edc69096198fbe60c3f90ab5295fb5bfcd71..8a641b87fe3cafb02171eb917e28956d9255e629 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Verify that chmod works correctly with odd option combinations.
 
-# Copyright (C) 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chmod --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
diff --git a/tests/chown/Makefile.am b/tests/chown/Makefile.am
deleted file mode 100644 (file)
index c154279..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  preserve-root \
-  basic \
-  deref \
-  separator
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index e7e3f02b452f98487b2f45446095ef7addd7ce11..3ad958a95c5a866efa452993c8bf56ada2c3b687 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure chown --from=... works
 
-# Copyright (C) 2001, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chgrp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 touch f || framework_failure
index 74684fe6a689dc3a8fed82b3aafc1c9b92507e85..be557e1ceb3e2280781cd596e675e39ea5ff3b97 100755 (executable)
@@ -2,7 +2,7 @@
 # For coreutils-5.2.1 and earlier, chown --dereference would skip
 # symlinks having owner/group matching the specified owner/group.
 
-# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 ln -s no-such dangle || framework_failure
 
index e41847291603dcf022715ff996f442929e4bed53..cdc7234b50940f0810276b4c34667f17a7f5578a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Verify that --preserve-root works.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir d && ln -s / d/slink-to-root
index de33831a9532c328244853d2307b974fb7026a37..b409b0295468c7ab1652429512759344ba8b6d36 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure "chown USER:GROUP FILE" works, and similar tests with separators.
 
-# Copyright (C) 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   chown --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 id_u=`id -u` || framework_failure
 test -n "$id_u" || framework_failure
diff --git a/tests/cp/Makefile.am b/tests/cp/Makefile.am
deleted file mode 100644 (file)
index 28ebd35..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-# Make coreutils tests for cp.                         -*-Makefile-*-
-
-# Copyright (C) 1997-2001, 2003, 2005-2008 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTS = \
-  special-f \
-  parent-perm \
-  abuse \
-  proc-zero-len \
-  thru-dangling \
-  cp-a-selinux \
-  file-perm-race parent-perm-race \
-  existing-perm-race \
-  backup-dir \
-  src-base-dot \
-  sparse \
-  link-no-deref \
-  cp-deref \
-  acl \
-  preserve-2 r-vs-symlink link-preserve preserve-gid \
-  backup-1 no-deref-link1 no-deref-link2 no-deref-link3 backup-is-src \
-  same-file cp-mv-backup symlink-slash slink-2-slink fail-perm dir-slash \
-  perm cp-HL cp-i special-bits link dir-rm-dest cp-parents deref-slink \
-  dir-vs-file into-self
-EXTRA_DIST = $(TESTS) trailing-slash
-
-include $(top_srcdir)/tests/check.mk
index 04b10f7f6d2a552a804f37e7b59c74a4ef2d797d..f4f215f4230e0333c49088e8fe7e526fa4822d48 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that cp does not write through a just-copied symlink
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,9 +21,9 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b c || framework_failure
 ln -s ../t a/1 || framework_failure
index a7f6a844f5e50181a6e7341c2bfe85e7fc690a7d..bfea3bfd373559d5e21b8bd56d3f2b5705b8b5c3 100755 (executable)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # Make sure we get English translations.
-. $srcdir/../lang-default
+. $top_srcdir/tests/lang-default
 
 if test "$VERBOSE" = yes; then
   set -x
@@ -27,7 +27,7 @@ if test "$VERBOSE" = yes; then
   setfacl --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_acl_
 
 # Skip this test if cp was built without ACL support:
index 882167931bf700ff0b1127f4e1ac076524735aac..6f2ca2eae820f4dff6d66dd3e558da04952de2a6 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test cp backup.
 
-# Copyright (C) 1997, 1999, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1999, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 suffix=.b
 file=b1.$$
index 879c5164e9ce8adbe3dd3ad61c51f7327ac8f4bd..d2ac2be3984c66d0c1d36c9c5452e2d7a738779a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that cp -b doesn't back up directories.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir x y || framework_failure
 
index 7721be9c5a4f2a5a9c1997a533511760ddc4b69e..e55ede1beb2519b566fbcb456ed9c4bad915ee06 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test cp backup to source file.
 
-# Copyright (C) 1998-2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998-2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 echo a > a || framework_failure
 echo a-tilde > a~ || framework_failure
index 6040cc94cee4b4f253ba41ceffba4eb54be49f1c..dbfaed1efaac8d6217954b8e20fd4e8cd98004ac 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # test cp's -H and -L options
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir src-dir dest-dir || framework_failure
 echo f > f || framework_failure
index 67894571c57a47f91266f242bbe37a233c23222d..8f854bd0c3e9822286ab04a82cff205f0e642330 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 require_selinux_
 
index a666f5d6d65d6b527a74ffbc1d1e9e2b1d5815ac..181ba472208fe20f0b6c4f000ca85c6ccc680461 100755 (executable)
@@ -2,7 +2,7 @@
 # cp -RL dir1 dir2' must handle the case in which each of dir1 and dir2
 # contain a symlink pointing to some third directory.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b c d || framework_failure
 ln -s ../c a || framework_failure
index e7cd438aa3ff91fa0d6170f518db2b01ad032c86..5aa690d86431574cfec7149ddcef46f0210964d7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test whether cp -i prompts in the right place.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p a b/a/c || framework_failure
 touch a/c || framework_failure
index 9a464a16d3a5f0c248135aa8f1803b6b66aecb3c..41bc50b2f341c82471d4bbf568fffc3dffb37064 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test basic --backup functionality for both cp and mv.
 
-# Copyright (C) 1999, 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,9 +22,9 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Ensure that ls sorts the same way for everyone.
-. $srcdir/../lang-default
+. $top_srcdir/tests/lang-default
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 umask 022
 
index 4500e5f48379188e62a7fa46b16b6fc7acaa015e..fe62f2b15e40fe4e0cb29ff65961cc8ca14416b6 100755 (executable)
@@ -2,7 +2,7 @@
 # cp -R --parents dir-specified-with-trailing-slash/ other-dir
 # would get a failed assertion.
 
-# Copyright (C) 2000, 2002, 2004, 2005, 2006-2007 Free Software
+# Copyright (C) 2000, 2002, 2004, 2005, 2006-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../umask-check
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/umask-check
+. $top_srcdir/tests/test-lib.sh
 
 # Run the setgid check from the just-created directory.
 . "$abs_top_srcdir/tests/setgid-check"
index d677d416184063c49b43456b360bdd3181f5107a..dfd28716143f49a21ab7bdcb1f7e0fb7bdf1d181 100755 (executable)
@@ -2,7 +2,7 @@
 # Demonstrate bug when using -d with an existing destination file
 # that is a symlink.
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch f slink-target || framework_failure
 ln -s slink-target slink || framework_failure
index 45212c748181fcd5f9a26a5a655f096918418a3f..e9934c339a63ae03742c27d3e5e95f41bdbf14a1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # verify that cp's --remove-destination option works with -R
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir d e || framework_failure
 
index 6a6a613a3fa23e4075dcfd33f47150f76ee2408f..3521a1a707213919f0cbf412d45ed0d5f45750c5 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure that cp -R DIR1 DIR2 does the right thing
 # when DIR1 is written with a trailing slash.
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir1 dir2 || framework_failure
 touch dir1/file || framework_failure
index 58cdf5eabdcbed5fdf19d89f990f200d236d3e9d..cb23172cb9b6378dc1de199d81f919c6e86bcf67 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # A directory may not replace an existing file.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 touch file || framework_failure
index 0ab10e94d86f40356c02181e0f46e29531e59baf..aa6d7c99a2673981387249970e984deb9c092da1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure cp -p isn't too generous with existing file permissions.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../group-names
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/group-names
+. $top_srcdir/tests/test-lib.sh
 
 set _ $groups; shift
 g1=$1
index b52aba5f8801a708ecc779e580256c27fc67a129..b5d14d62f8a5d12efa63e24bcaecc4feb17181d1 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Copyright (C) 2000, 2002-2007 Free Software
+# Copyright (C) 2000, 2002-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 chmod g-s . || framework_failure
index 3e3859773b3bee6bf3e77841490565e8b89b94d6..09d38a734467e4757263b5a86ac4863b911f5f2a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure cp -p isn't too generous with file permissions.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 umask 022
 mkfifo fifo ||
index 7afe2a5bc53f7ec924f13ad1e65f5d8111f45fd7..7660454a7981ae5be3e606039775d41883202bc4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Confirm that copying a directory into itself gets a proper diagnostic.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,8 +26,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 
index 26fabfda7c406107e022815c07972d673d7da683..49cedebc4034a3e84e23e56200aac9512a2e2ef6 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure cp --link -f works when the target exists.
 # This failed for 4.0z (due to a bug introduced in that test release).
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch src || framework_failure
 touch dest || framework_failure
index 2e955a55902d6f2fd5712cce62a182c7ba4ab48e..d249b03d89555e7f5e62c454ab0056ac14462f05 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that cp --link --no-dereference works properly
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s no-such-file dangling-slink || framework_failure
 
index 137bb901eb7f82fd936d24963d7827a0cc7f8975..091c0a504ec1fbfa4067cc9c9a114d247507834f 100755 (executable)
@@ -2,7 +2,7 @@
 # ensure that `cp -d' preserves hard-links between command line arguments
 # ensure that --preserve=links works with -RH and -RL
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch a || framework_failure
 ln a b || framework_failure
index a194303c9e0220fc58a1d0bf21d99a9f072f9099..018a029fde9e3dbfd388a1f832ee5435821072e7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # cp from 3.16 fails this test
 
-# Copyright (C) 1997, 1999, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1999, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b
 msg=bar
index e3ad0aab25cf80c98dd7196e80dded63bf59ee2e..0046dce4a92d8c774368bba88872bea8014805ea 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # cp from 3.16 fails this test
 
-# Copyright (C) 1997, 1999, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1999, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir b
 msg=bar
index 13841adb085da53429dbcdf6da02e4ba620d6bce..5d0ba7538e56293d5a9d292199ada9d89c95bfcc 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # cp from 3.16 fails this test
 
-# Copyright (C) 1997, 1999, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 1999, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 msg=bar
 echo $msg > a
index 1e9e8e1ea860ae0afabe8f99fc395664e39a1e0f..bca0f8769516be3e5ceb936504b4ad7498a1b7a9 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/test-lib.sh
 
 . $abs_srcdir/../umask-check
 
index 8afa0c0b7bae5db7d48e54ceefbab7821538952e..de542e00d71c146cadedc68c04f99f5bad2a43f8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure cp -pR --parents isn't too generous with parent permissions.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 umask 002
 mkdir mode ownership d || framework_failure
index a31d430e01bf77aaac789d2b57372b9d79ebfe52..b24221f03111408e438d214a770cee676ad89311 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure the permission-preserving code in copy.c (mv, cp, install) works.
 
-# Copyright (C) 2000, 2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 very_expensive_
 
 umask 037
index 36a561cdea0308fb62d922caaa67770692fbaafe..0bbe3390c99ebe69f4245bf6ae06ea421c683cb1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that cp's --preserve=X,Y option is parsed properly
 
-# Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch f || framework_failure
 
index d78582942422ae4e4aa27319946d6e4ea84b48fb..ce08a60aca439855e235bdbb426faa1150d5dffe 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Verify that cp -p preserves GID when it is possible.
 
-# Copyright (C) 20072008 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -16,8 +16,8 @@
 # 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/../lang-default"
-. "$srcdir/../test-lib.sh"
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 create() {
index 8330bfd28d9f65a1715014668e838389a3f4d555..aef5e5a62e347591ef24868c533907952a07be44 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that cp copies contents of non-empty "regular" file with st_size==0
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch empty || framework_failure
 
index 579c49576f8224dd96a02d85abe288ed4fc794bc..6ee2370375bcb8516bf0bd41344aa3412698c888 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # cp -r should not create symlinks.  Fixed in fileutils-4.1.5.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 echo abc > foo || framework_failure
 ln -s foo slink || framework_failure
index 908573ad3bc56384aa65d74d7df8b6e7076ce9bd..1058b568dbef17467a9fda3e8c41d8983d6968a2 100755 (executable)
@@ -2,7 +2,7 @@
 # Test some of cp's options and how cp handles situations in
 # which a naive implementation might overwrite the source file.
 
-# Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2006-2007 Free Software
+# Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2006-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 # Unset CDPATH.  Otherwise, output from the `cd dir' command
 # can make this test fail.
index f6cc6e987a5a48aa9f6748a035702a47c87320ea..633b27eea6e2498e2c1704a85c70df5b3239e21a 100755 (executable)
@@ -2,7 +2,7 @@
 # `test cp --update A B' where A and B are both symlinks that point
 # to the same file
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch file || framework_failure
 ln -s file a || framework_failure
index 3238aa9cfb2f9330bcb9fe4cfddee18e67338238..dfb348db3407edbba4ae7c2e8c0d6a426193110f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test cp --sparse=always
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../sparse-file
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/sparse-file
+. $top_srcdir/tests/test-lib.sh
 
 # Create a sparse file.
 # It has to be at least 128K in order to be sparse on some systems.
index be090fe2a29860907affbc3d7bcc7730612bb1fb..e0f8bbb0d16022b50a66899889862c2c370c0f8b 100755 (executable)
@@ -2,7 +2,7 @@
 # make sure `cp -p' preserves special bits
 # This works only when run as root.
 
-# Copyright (C) 2000-2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000-2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 touch a b c || framework_failure
index ebcbf8ea3da8e0caf970956e890b3ccaacfe69ca..cf684e3620bff6bb715d21a5f292593d35be0dbb 100755 (executable)
@@ -22,9 +22,9 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkfifo fifo ||
   skip_test_ "fifos not supported"
index 274a66429a7ca421eca5c89644870971f2e3a76d..a20268be07b75beafcc4ee3a4ff51726a424e60a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that "mkdir x y; cd y; cp -ab ../x/. ." is a successful, silent, no-op.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir x y || framework_failure
 
index 3c13fe95dc4c665cae0413d99a334b43d35b8dd6..1ace67bc6d0bdc54739179cc3f9ac7ac9f93e438 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure that cp -dR dereferences a symlink arg if its name is
 # written with a trailing slash.
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index 0256a167cb2483a3ca6ec2de6154e2b7220715be..aa494c597e8504e1979d006256592631669af8aa 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that cp works as documented, when the destination is a dangling symlink
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s no-such dangle || framework_failure
 echo hi > f || framework_failure
diff --git a/tests/dd/Makefile.am b/tests/dd/Makefile.am
deleted file mode 100644 (file)
index afc17e8..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS = \
-  misc not-rewound skip-seek skip-seek2 unblock-sync
-
-include $(top_srcdir)/tests/check.mk
index 2b54cfb3634d0b03c09f9fada4dc7ade79f15dea..e734ba240b6b262d0b459affae8ca5e6eb875948 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 tmp_in=dd-in.$$
 tmp_in2=dd-in2.$$
index 9b16326130aade1699eff4f6014dfeb09c7633a5..76eb8a3930673c7de7ff9bb7956dde90f5b1a3b3 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure dd does the right thing when the input file descriptor
 # is not rewound.
 
-# Copyright (C) 2000, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 631fb42207829aba11e70b386e305c310fe39e9b..80795d871d3260409a3b6ad914e7e6dd25f1213e 100755 (executable)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 SCRIPT_NAME=$0
 export SCRIPT_NAME
index b1024af15411b9c0a406c0c6bc8ed9499f1dc03b..0840ad24a4532d849fd7c99d7fa9cc8a4edbd1dd 100755 (executable)
@@ -2,7 +2,7 @@
 # show how to skip an amount that is smaller than the nominal block size.
 # There's a more realistic example in the documentation.
 
-# Copyright (C) 2000, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 7fc5eb56890a50d9d07133dee97b0f65942b266b..484da885d0fbad5f5dfc7cace6882f6301b1deba 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that dd conv=unblock,sync works.
 
-# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   dd --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 printf 000100020003xx > in || framework_failure
 
index fa20ce983bf75ba977286cfc7b4cfe9faafd3bde..8479524c01e4cbde5c7486c5fc57365b941c533b 100755 (executable)
@@ -3,7 +3,7 @@
 # Before coreutils-5.93, on systems with a signed, 32-bit stat.st_blocks
 # one of du's computations would overflow.
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Creating a 2GB file counts as `very expensive'.
 very_expensive_
index ab6dedde48a0b02aa4802af4453e925ced5258e7..b0a42c4ad65ed6b19055b1e84fbc96e5d6fdad93 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that du does not rely on narrow types like size_t for
 # file sizes or sums.
 
-# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../sparse-file
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/sparse-file
+. $top_srcdir/tests/test-lib.sh
 
 dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
 if test $? != 0; then
diff --git a/tests/du/Makefile.am b/tests/du/Makefile.am
deleted file mode 100644 (file)
index 9fd6f9d..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-# Make coreutils tests for "du".                       -*-Makefile-*-
-
-# Copyright (C) 2000, 2002-2007 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTS = \
-  2g \
-  inacc-dir \
-  one-file-system \
-  inacc-dest \
-  long-from-unreadable \
-  long-sloop \
-  files0-from \
-  inaccessible-cwd \
-  deref-args \
-  slash \
-  fd-leak \
-  hard-link 8gb basic restore-wd \
-  exclude no-x no-deref trailing-slash deref two-args slink
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index b7bfa3a58ec725fb7b28a719da0f4ee999ffe10f..f2eeccf5ba1781189bf3a1556458ffef89638ed1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Compare actual numbers from du, assuming block size matches mine.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # DU_BLOCK_SIZE could cause problems
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p a/b d d/sub || framework_failure
 
index 63cd606b20a725d03b28649576fd69d6027530f5..47f44492147ade6491cba70e2c0911ac111c67ee 100755 (executable)
@@ -2,7 +2,7 @@
 # prior to coreutils-4.5.3, du -D didn't work in some cases
 # Based on an example from Andreas Schwab and/or Michal Svec.
 
-# Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p a/sub || framework_failure
 ln -s a/sub slink || framework_failure
index 441b21dd797b127fd50d368e3bad1a0a1b87f6dc..c0281d5a51193fb081d0617eed0fa11785baa372 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that --dereference-args (-D) gives reasonable names.
 # This test would fail for coreutils-5.0.91.
 
-# Copyright (C) 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/a || framework_failure
 ln -s dir slink || framework_failure
index 7e48051574a042f9d12c6bbcbc8e3c58c1393f8c..73a0c5bdee7bb6e1608c92f80e9090730f934fa5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure du's --exclude option works
 
-# Copyright (C) 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p a/b/c a/x/y a/u/v || framework_failure
 
index bc2ea81bf669663e423402c31916ab39b1ee76ec..c4080ffafae62b66cbd94401a185d5e5f27389d9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # check for file descriptor leak
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ fi
 
 # Call this an expensive test.  It's not that expensive, but command line
 # limitations might induce failure on some losing systems.
-. $srcdir/../expensive
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/expensive
+. $top_srcdir/tests/test-lib.sh
 
 # Create 1296 (36^2) files.
 # Their names and separating spaces take up 3887 bytes.
index 4d9b37cb329d01a72360dbd5570759eb3612c4bb..58331168525fcce0546842a36ddcd7387367aebc 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise du's --files0-from option.
 
-# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 139bae2ec2b8d0af7c6963c7a2d03c159f6c4077..94fe9c48c556fcf309e1f8357e9e4cb7b54f36f0 100755 (executable)
@@ -3,7 +3,7 @@
 # Likewise for excluded directories.
 # Ensure that hard links _are_ listed twice when using --count-links.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/sub
 ( cd dir && { echo non-empty > f1; ln f1 f2; echo non-empty > sub/F; } )
index c2bab2cf9b8b50e1a61be532dfb3740346383287..ba5aed0ad00cc9e9b6e32798ce5dbedd02aacd0b 100755 (executable)
@@ -2,7 +2,7 @@
 # Prior to coreutils-6.5, an inaccessible destination dir (chmod a-x)
 # would cause du to exit prematurely on systems with native openat support.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
index f7d553aca022b91024f666254774d7f59343d4f5..919406a078070e87e54570baf1fbcd8ec93dec9f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Ensure that du counts the size of an inaccessible directory.
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -20,7 +20,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p a/sub || framework_failure
index 8eb6693e743787b784da62af7b8dc54293672056..f6af78600492beac7acdf3312518517e13905e26 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that even when run from an inaccessible directory, du can still
 # operate on accessible directories elsewhere.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 cwd=`pwd`
index cdc81dc3f184feaae23d8b4b09828c9acf07958e..1e20bb3245f6a976e08b4ac2f2c6061942680673 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Show fts fails on old-fashioned systems.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -33,7 +33,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 proc_file=/proc/self/fd
 if test ! -d $proc_file; then
index 603f1f07fbd40c8f3f83b5317bac2df912b483b3..a9692241cb11150770c093ea4f43b44635f3120c 100755 (executable)
@@ -3,7 +3,7 @@
 # Show that du fails with ELOOP (Too many levels of symbolic links)
 # when it encounters that condition.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 # Create lots of directories, each containing a single symlink
 # pointing at the next directory in the list.
index cd76b557f0b8bb013dd2e7773d43d8da1ffdb193..e1b7140360d7f2843666aa48c538c03ef07a23cb 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that by default, du doesn't dereference command-line symlinks.
 
-# Copyright (C) 2003, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/a/b || framework_failure
 ln -s dir slink || framework_failure
index 5f888ed51e22dc182a8ecedc07c6f283c4f84463..9cff767b027c5b242757a0792b2630b513314881 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure du gives the right diagnostic for a readable,
 # but inaccessible directory.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p d/no-x/y || framework_failure
index 244887152cf76ef1e4935e368c1349ac1fa93cec..fd269563181ad1c694d98381985f4afb59dcae27 100755 (executable)
@@ -2,7 +2,7 @@
 # Test for a bug in fts's handling of FTS_XDEV, the flag behind
 # du's --one-file-system (-x) option.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p b/c y/z || framework_failure
 
index e868bf85c7dbd14753bc752ced807aa7e5fb7b13..62409db578dbc13a4312fcd2df48ef20e8229876 100755 (executable)
@@ -2,7 +2,7 @@
 # due to a bug in glibc's ftw.c, in some cases, nftw w/FTW_CHDIR
 # would not restore the working directory.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b || framework_failure
 
index 7f218c928b9fc39feab2c3cc3121ede36d4d8800..a939b91b64463dc3383c6459d103a9607ca8863b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_readable_root_
 
 fail=0
index be5a63df580206b7f5937349690c80834fb876c8..082efddf770a2c66a87c866cbef323e37a0d5780 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that the size of a long-named-symlink is > 0.
 
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Determine if `.' is on a local (would non-NFS be sufficient?) file system.
 # On at least some NFS implementations, symlinks never take up space,
index 80ce5ba8dcd04f35f2d85ea4feb352b21943bc9c..a3f8536823d5cc4f54d4317d7c55fca30f9be168 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that du works properly for an argument that refers to a
 # symbolic link, and that is specified with a trailing slash.
 
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/1/2 || framework_failure
 ln -s dir slink || framework_failure
index 9d9330e950a01ff1f9e15239c712308e1d554dd2..5cb875ff0153aac43e037534b73a395f5fac8e12 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure `du d/1 d/2' works.
 # That command failed with du from fileutils-4.0q.
 
-# Copyright (C) 2000, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   du --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Run this test from a sub-directory one level deeper than normal,
 # so that the "du .." below doesn't traverse sibling directories
diff --git a/tests/install/Makefile.am b/tests/install/Makefile.am
deleted file mode 100644 (file)
index 0ff0784..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  basic-1 \
-  create-leading \
-  d-slashdot \
-  trap
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index ca24a9d229826830593140bbfe8f61383d17a14f..26ac5ddfba21f6ca5bf07c13394364ddfd12b6f8 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Basic tests for "install".
 
-# Copyright (C) 1998, 2000-2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2000-2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 dir=dir
index 66c3995b561d19d9aa3798757693e7eb75489377..69999386369d498ed8766141072c5a9a097a9527 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index eb2a9146cabf2830efde61b84295f996bd38264d..e7bf8ea77fb073825ee7780beac75af336c746d4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that ginstall -d works with arguments specified with a trailing "/.".
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   install --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index a4f9fa8689c99b8db3a5407404c78f8f0ee682df..915ad9ea29719969389733943b65d7ec8bc4f512 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that `install -s' doesn't infloop when its parent
 # process traps CHLD signal.
 
-# Copyright (C) 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ginstall --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
diff --git a/tests/ln/Makefile.am b/tests/ln/Makefile.am
deleted file mode 100644 (file)
index 8fe7b47..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  hard-backup target-1 sf-1 misc backup-1
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index 05041fe214c1ad9b57145f37048cef1ed00156a1..b1d1bb1051db3fb54b449fd2ab7a223cc5437eb3 100755 (executable)
@@ -2,7 +2,7 @@
 # Try to create a symlink with backup where the destination file exists
 # and the backup file name is a hard link to the destination file.
 
-# Copyright (C) 1999, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch a b || framework_failure
 
index 72178a6b2cdf0df6683e03cc9329136b2fd924d5..d46316ff9691d65b7d79874fc5c8f1edf649cdb0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that 'ln --backup F F' gives a proper diagnostic.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch f || framework_failure
 
index be7efb036f6313e3b7dc4d1528356a52c2cd3894..1f3c1d16e63994b61a4e5b82f14132cf9d052245 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Miscellaneous tests for "ln".
 
-# Copyright (C) 1998-2000, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998-2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 t=tln-symlink
 d=tln-subdir
index 4d69893827dd7902a7404c9c28c9a0629b31ca57..9ac0f987352c18333716c84e413f27366f13a2c5 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure we get English translations.
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 echo foo > a || framework_failure
 ln -s . b || framework_failure
index e42094057592fbd25335f099d978e2adc32b674e..6a49b2f4d842b0eae5a212fb92ef55a17419fc1f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "ln --target-dir" with one file.
 
-# Copyright (C) 2002, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir d || framework_failure
 fail=0
diff --git a/tests/ls/Makefile.am b/tests/ls/Makefile.am
deleted file mode 100644 (file)
index c9739c9..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-# Make coreutils tests for "ls".               -*-Makefile-*-
-
-# Copyright (C) 1997-2003, 2006-2008 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTS = \
-  proc-selinux-segfault \
-  stat-free-symlinks \
-  nameless-uid \
-  color-dtype-dir \
-  stat-failed \
-  stat-dtype \
-  inode dangle file-type recursive dired infloop \
-  rt-1 symlink-slash follow-slink no-arg m-option \
-  stat-vs-dirent x-option
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index b96970162b3912bfe74144f9092ac0cae6b095ea..8a431c4664b7c4ed1228d2c19ef2d28813e771dd 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Don't let a different umask perturb the results.
 umask 22
index bd3633fab8fdcbde7d9a6364192e7374d252b979..7266fac89c61bd881217dea030f0e427e8be383b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure ls properly handles dangling symlinks vs. ls's -L, -H, options.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s no-such-file dangle || framework_failure
 mkdir -p dir/sub || framework_failure
index 45cbdfcc736d560f3762481852503434d3cb3d19..6a1bbd28adbeffd6ce8fc319f27f0a410d178650 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure --dired option works
 
-# Copyright (C) 2001-2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 
index 533bec89c2f5dfeb768448d6a0baebe04aba6f8b..87f63c96fd38fe588af4969642c048b2e1088bfb 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # contrast ls -F, ls -p, and ls --indicator-style=file-type
 
-# Copyright (C) 2002, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir sub
 cd sub
index a7efadb17f35230ca3ad68b9469bb99bf948f15a..a4374bf960bef370f73641204c823f655b2d1190 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure ls -L always follows symlinks
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Isolate output files from directory being listed
 mkdir dir dir/sub dir1 || framework_failure
index cc93372c7d7d27001f4ee3945b1866ddd1b2ee77..d96efa0700d278033ce32037b6a0e8397e4125e2 100755 (executable)
@@ -2,7 +2,7 @@
 # show that the following no longer makes ls infloop
 # mkdir loop; cd loop; ln -s ../loop sub; ls -RL
 
-# Copyright (C) 2001-2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir loop || framework_failure
 ln -s ../loop loop/sub || framework_failure
index 08ee5e1f798a171a79e84ebab12bf4e3f66f3f75..636c064a39aa29f2ad9cd2cb7cff257f12e1cefc 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure that ls -i works properly on symlinks.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch f || framework_failure
 ln -s f slink || framework_failure
index db6e53393b1c3c3ebdcaaeabf9a16fe25674ade5..9750422803220a286d04b2e83ec5dcc9eb070f67 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise the -m option
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 seq 2000 > b || framework_failure
 touch a || framework_failure
index a2d3b94421497bcc1589fdc5e9f7674e692e46b7..37becec26f9d305063862adca4bac56da24af05b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that ls -l works on files with nameless uid and/or gid
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,10 +22,10 @@ if test "$VERBOSE" = yes; then
 fi
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 nameless_uid=`$PERL -e 'foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }'`
index 00b4d92b89ba4837906178595c4e9ba9a6d6cb16..ea0730e45a664e8cab5f1a5cf5aa28fd7407ff81 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure ls and `ls -R' do the right thing when invoked with no arguments.
 
-# Copyright (C) 2001, 2003, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/subdir || framework_failure
 touch dir/subdir/file2 || framework_failure
index 320ba6f24b7598ae0e1f3ffd84b992e2032e05fa..60cfe55096303da276a4bfe94829dcc2c6baaeba 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/test-lib.sh
 
 f=/proc/sys
 test -r $f || f=.
index 8aff3ed7e488a437c97417e7a99ef617d7e4a0d4..d8b159c2ec0c9ce11cfb32e4c7de50c5cc758430 100755 (executable)
@@ -2,7 +2,7 @@
 # 4.1.1 and 4.1.2 had a bug whereby some recursive listings
 # didn't include a blank line between per-directory groups of files.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir x y a b c a/1 a/2 a/3 || framework_failure
 touch f a/1/I a/1/II || framework_failure
index dce7c852d2241dd5f62670b542594dc36ac8d79a..3e3c36a0fec930e0d81f638e93ee6cf6a0ca66d8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure name is used as secondary key when sorting on mtime or ctime.
 
-# Copyright (C) 1998, 2001-2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2001-2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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/../lang-default
+. $top_srcdir/tests/lang-default
 
 if test "$VERBOSE" = yes; then
   set -x
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 date=1998-01-15
 
index 5e1776e7140559d7edd7981006e96c162f699c1b..a6d528983faf76384fd1b0d1721dd462366edd20 100755 (executable)
@@ -3,7 +3,7 @@
 # Also check for the dtype-related (and fs-type dependent) bug
 # in coreutils-6.0 that made ls -CF columns misaligned.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Skip this test unless "." is on a file system with useful d_type info.
 # FIXME: This uses "ls -p" to decide whether to test "ls" with other options,
index 2d6e98821e10bc99e502f19c76807fdefb318dfc..977de393e4117ef4cde222721bad690fda223ec4 100755 (executable)
@@ -2,7 +2,7 @@
 # Verify that ls works properly when it fails to stat a file that is
 # not mentioned on the command line.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir d || framework_failure
index 85f363f0c3b68ea95a07071d2f678932ba5e0ca4..4dc01b5edb3dcd1797ed5ad7d93f3273ee866d77 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_strace_ stat
 
 touch x || framework_failure
index c326bc9fa0f6b33e88305b81506cde164648fb87..f69ffba2d57581406f2d90117a8c273222f8cfed 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that d_ino (from ls -di) and st_ino (from stat --format=%i) match.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 3d89bd42b32999a73ac66a5e6ccea277a296f3a5..641826e133aad2075282eee241d72a30c2813fd7 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 ln -s dir symlink || framework_failure
index 4fb27047ca3e91e40abbf2109775e717b62c7351..2153536b3a77f27ea94f4ae7f72d04498ef3c560 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Exercise the -x option.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir subdir || framework_failure
 touch subdir/b || framework_failure
index c568b48fb6aa77096c730f946796056b9fcf16b3..3a510b6deed7b9110b9288018de35807af50bf5b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that arch output is equal to uname -m
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # skip this test if arch isn't being built.
 case " $built_programs " in
index 0428c04c52c0944ff2385d3d28134ea150897157..2784a3c09f2902a099d19c0506a5ab5ca129f168 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise base64.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 4302e0b82c367498f242a65085138f52059f83ef..1d400b3fd9e0b9326e491acdf067ee3c0493cda1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # -*-perl-*-
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index 02bb26ad466129ebbe31b085027cdb712ef46d1a..0d7b07ed542614a461d675f4eb6f2a5cfed0a21d 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that cat -E produces same output as cat, module `$'s,
 # even when applied to a file in /proc.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   cat --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 
 f=/proc/cpuinfo
index d4a9d3108ba18b226db84bb05f139a0cdae2d49c..3a61c6925d5c0ebf28389c6864187377ee68c3b9 100755 (executable)
@@ -6,8 +6,8 @@ if test "$VERBOSE" = yes; then
   chcon --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 require_selinux_
 
index 865b1b996032ae6d9198578a6fba22df89e5b79d..036d531ee5ff1c4f7ecfbb3baea984c4a460824d 100755 (executable)
@@ -7,8 +7,8 @@ if test "$VERBOSE" = yes; then
   chcon --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 301c8ecb51f37613f19aff445711d0124506932e..c3f54da7d4f81d55a6824adfe5cd310b4b6ef4d3 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that several programs work fine, even with stdout initially closed.
 # This is effectively a test of closeout.c's close_stdout function.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 p="$abs_top_builddir"
 
index defff67d70c2e0ed3dcfe7b405de850a14867ab2..a34fc24a33274975668ef9508a2777ebf5c7874e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # various csplit tests
 
-# Copyright (C) 2001-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   csplit --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 3bf52163db079034c05cc5f63aef6822a2e2dce2..003b3635a8bbc224f0615cf041034758e65817b1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "cut".                                                   -*- perl -*-
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index ff18b4c0f43c0e05424e9b4a8bb6bd23d6ada6d3..0c0ddaa7750346b50fa59922f5ae28c96e5e40f5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "date".
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 445326dc5d22c9f112605e721cd9d9200573a24c..6d7a8bccb1280b6ec8201e0a197704fb97c96c2f 100755 (executable)
@@ -3,7 +3,7 @@
 # `date --date="21:04 +0100" +%S' always prints `00'.
 # Before coreutils-5.2.1, it would print the seconds from the current time.
 
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   date --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 
 fail=0
index 84050f375fdc32624e1d4f37f6679468699f3446..fe8dabb4a5da793caabc583d4fa578cbb5d9bfe5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that "df ." outputs a header.
 
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   df --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 case `df .` in
 *'
index a27abf0b923abdbc8458d00038604dc921262cba..7b52dd2d645f3076451a746bdba3e808836be007 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that df -P is not affected by BLOCK_SIZE settings
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   df --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 31614f9dae64527cd82d93a40dd7315f78defc7b..8b5734ba5f8ae7f477b8b6b47a7c21bffd08e2e7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Simple dircolors tests.
 
-# Copyright (C) 1998, 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 6b9a8d7b75b3a1a2ff3fadf4a8a9d1d26a779231..52bd97032d2989e122e5d68c9c82627d71415afe 100755 (executable)
@@ -2,7 +2,7 @@
 # -*-perl-*-
 # Test "dirname".
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index 6a568be8084a8fa57d3babc10698f85e21808b0a..0354112a1ff182f3fac93d37556fccce12a0f884 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise expand.
 
-# Copyright (C) 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 6d2cbbd1fe9ea1c7f8a062d5ee58420204c5b8a5..9674bc4c5140a315d5cf72410101f798d353c8dd 100755 (executable)
@@ -2,7 +2,7 @@
 # -*-perl-*-
 # Basic tests for "expr".
 
-# Copyright (C) 2001, 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index de3f376a21b0eb2bb2705a2ee823a33a55733124..a27034fd0e88f3994808c461520907dec0f4cc2a 100755 (executable)
@@ -2,7 +2,7 @@
 # -*-perl-*-
 # Basic tests for "factor".
 
-# Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007 Free Software
+# Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005, 2007-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index b6b22a6ac218da10912b0c8fd6755b5b1f11fcb6..7eaec30ce00f6ff7e48e04df4d8d1b3a875503c0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that false exits nonzero even with --help or --version
 
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   false --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 false --version > /dev/null && fail=1
index 49067ad9be5a1fa5c8af1fdce2355ac785197aa9..5487d211765277c669d932454acd3bc11c4965bd 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Basic tests for "fmt".
 
-# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
+# Copyright (C) 2001, 2002, 2003, 2004, 2005-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -19,7 +19,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 # Export this to avoid hassles when run in a UTF-8 locale,
 # since we use 8-bit characters below, and those values are
index aae1fa8bed2dae4cfdad62829fa0b6f080ef8988..eb6b15668fdd103490f40a93de9a316ae2c35d49 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure fmt -s works even on long lines
 
-# Copyright (C) 2002, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   fmt --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 (echo ' '; yes) | head -n1000 | tr '\n' ' ' > in || framework_failure
 
index 960d6893d0b89bb6a1a8282e13c819b5482d899e..bd4d29ddc886a2cc00d33d83fb4d1217c1acfe35 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise fold.
 
-# Copyright (C) 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 # Ensure that we don't run an older version of fold.
 # Prior to 5.0.91, some of the tests below would cause fold to infloop,
index f6dfe68872da77bcbdd87b43ae1ed3721b023af8..e7d7d371f73346d7ba0deee4da866f4fda2d1f58 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure groups handles -- sanely
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   groups --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 # Coreutils 6.9 and earlier failed to display information on first argument
 # if later argument was --.
index e7050c30f660f8c1c775618a392bff694afec599..3d7802b63bacdd095020a22f37deff791a80697b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure groups --version output is similar to id --version
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   groups --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_built_ groups id
 
 fail=0
index 1520ea610304cfb6e5b781add3020006d5aba1ca..7610533b7c0664a063184e53ee84e3f5ad176f6c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise the fix of 2001-08-18, based on test case from Ian Bruce
 
-# Copyright (C) 2001, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   head --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 echo abc > in || framework_failure
 
index 4de108d4af04108fb46867615b373d481af54455..a171e4ffb5e967abf6eb9ae369af1701148f02c3 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise head's --bytes=-N option.
 
-# Copyright (C) 2003, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index b78a42d43261958f11331f6917c6962b6279b457..90efe2279a1a64ef23e8ee26c98f7f5e68363278 100755 (executable)
@@ -2,7 +2,7 @@
 # When reading a specified number of lines, ensure that the output
 # file pointer is positioned just after those lines.
 
-# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   head --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 (echo a; echo b) > in || framework_failure
 
index 3696736a9989d2496c7974ea06a124e0022c8832..6cbf13871a8f65fcbd964e5d4c42f8665bb17474 100755 (executable)
@@ -25,8 +25,8 @@ test "$VERBOSE" = yes && set -x
 test "x$SHELL" = x && SHELL=/bin/sh
 export SHELL
 
-. $srcdir/../envvar-check
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/test-lib.sh
 
 expected_failure_status_nohup=127
 expected_failure_status_printenv=2
index be08c165454a4b2241fbb971619c7524bd75e564..ed42fb60bfd91c4d128f78e3875e897f7d818329 100755 (executable)
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index b3f0ca2e563b9c5fd32accd218eeff92b84938b1..69f597938c474ac106a0ca608900dd3106da2f4b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ls --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Avoid any possible glitches due to daylight-saving changes near the
 # time stamps used during the test.
index 474656f24405c40b8ef5be282b994a378f014a71..829f0ac10512f74474ba2587265bd6c9e461bcd7 100755 (executable)
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 41139816ac829186da1c4a12f4bf4ddef08351cd..af555d60ce2dd7c064704891d7abe69f76e1382e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Newline tests for "md5sum".
 
-# Copyright (C) 1999, 2000, 2003, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2003, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 # See if we can create a filename that contains a newline.
 # Be careful to do it in a subshell so that we can redirect the
index 37b33d18d135a19da3ab216ebeb3a3d071154990..bcaf98bf363a727191cf24b1504aa5070b0f9e8b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that mknod, mkfifo, mkdir -m MODE work with a restrictive umask
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mknod --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index affb0d17c3b5118411cd3241d79c75bb4326e09f..6ce9ba11c5b64eef5e767910b9f747c879bf63f3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "mktemp".
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 # 02110-1301, USA.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 00227293a002b60870154c7efbd3d913916aa849..f4d40121aaf79582441e56c9a095a4818a658bac 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   nice --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 tests='
 0 empty 10
index 13855fbca5a380f4727298ff3556432efd82aab9..58baef9c3c4465b2e5db61c40803e210d6d2ecfb 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise nl functionality
 
-# Copyright (C) 2002, 2003, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   nl --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index ac9e5e56186123ca357d2a49029194bbb3e6d857..62984062b20ee97bc6e3ac0100c7925462c8a00e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # test nohup
 
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   nohup --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 498e57a85dc26279c99b1b46c4832641e90dc0cb..9763e098a1c106d1fd889b9e7baddbddbc781fc3 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise od
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 me=`echo $0|sed 's,.*/,,'`
index 0cff509f7faa5fe3d9615b25a7c32abf560e854c..0213dc4eeaf8fe998be9993b7b00ca3f210f0cdd 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Verify that `od -N N' reads no more than N bytes of input.
 
-# Copyright (C) 2001, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   od --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 echo abcdefg > in || framework_failure
 
index 852ddf43be23b811510ae54d22d63ae24f09d42c..267ab4d87048444a4a07b6562388fab1d8d70f67 100755 (executable)
@@ -2,7 +2,7 @@
 # verify that od -t x8 works properly
 # This would fail before coreutils-4.5.2.
 
-# Copyright (C) 2002, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   od --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 od -t x8 /dev/null >/dev/null ||
   skip_test_ "od lacks support for 8-byte quantities"
index ab923a22a9c303968aebaaf54d8854a00dfb618b..9b50a511d2717bcb488194e6b31bda4789056b76 100755 (executable)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 453a8e2779d091d2d582ab51c5181ba28d5ab94d..3bc5869fdd142da34751a1426fbca72d4e58086c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # pathchk tests
 
-# Copyright (C) 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   pathchk --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 touch file || framework_failure
index 550c6d6f20426dd535e5201954184f6fc1d99c11..d189ddde528efc4179782c4333140921f220511a 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Exercise a bug with pr -m -s
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 5637d25f2f39e2188f391274649a98c043472f41..bdcfb5d2f357720abb9da67d1bbb28c28cfb4be1 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # basic tests for printf
 
-# Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   "$prog" --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 4ece0ac296bdc8aa20ad65aae97f2518ae964371..e5db45e4d80a5a5ab0338f86f866da07bb4d77d4 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure that only two hex. digits are consumed in a \xHHH sequence
 
-# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   "$prog" --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 
 fail=0
index fe5458920854cc8358709384ded438be8bf6b177..905660262e5cdd11d890ad334f6a8132db06e77d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Detect printf(3) failure even when it doesn't set stream error indicator
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   "$prog" --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_ulimit_
 
 fail=0
index beadf7f1a45d64991c604a50b4a140daee6e47ef..552d7e2c4573a31b81c86e29ad87d5a3be4a6cfe 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ptx --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Using a long file name makes an abort more likely.
 # Even with no file name, valgrind detects the buffer overrun.
index 37b552c4cb30aadc80715e40ffa56052878636de..a8aff7016ac6befe9de233d6109908b0b42c8bc0 100755 (executable)
@@ -18,9 +18,9 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_readable_root_
 
 ARGV_0=$0
index 370a0d0ad5c71010573340c7653f308ffa1cce4b..165cd79a11f3092b04d76558e9be863c2577696d 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 test $host_os != linux-gnu &&
   skip_test_ 'vendor getcwd may be inadequate'
index ee65e2816c1512de0ab79be8603873480b04964d..99c1ec073670fdada1f89f4e912f72d3a6fedd05 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # readlink from 6.9 would fail with a false-positive symlink loop error
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 cwd=$("$abs_top_builddir/src/pwd")
 
 # To trigger this bug, we have to construct a name/situation during
index a395e10f819014f6794c7d5f134ead6cff5afb1f..05e3781af99168d9ba7c921c5686e7e631b5bfff 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that runcon does not reorder its arguments.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   runcon --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 cat <<\EOF > exp || framework_failure
 runcon: runcon may be used only on a SELinux kernel
index 87d1a8ddeda1510e2b0a5baa9aee6a91aaf6f709..414e22e4dae4b216cc67b898c4f5388f4e381a81 100755 (executable)
@@ -10,8 +10,8 @@ if test "$VERBOSE" = yes; then
   stat --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 require_selinux_
 
index f48289bdf0763fabe7bc49317f350e8531e749c3..64c33f2a54ef2a068e1d8eb3e4e1ee0b0ff865b2 100755 (executable)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index 452236d8d12794d7c246fab09551dbae72fc75bf..56a549ed32867ee47a1e4c30cecce81a3b66cc08 100755 (executable)
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index b00ece284d8e4a8f8238a41baa3768629c35db06..db0b3ad992e9b7b91b97b715092dd76a12e8ad11 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Sample vectors for "sha1sum".
 
-# Copyright (C) 2000, 2001, 2003, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2001, 2003, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 022379cad0dcf40d85af754f6bfa4b554a70556a..decac8f9f5490a02ee6ee077b69fd2769e4e243f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sha224sum".
 
-# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index f28ef8ff19a5c3fed10b91fd90817a38918847c8..bacf6ec591b6d11d3d58945ae24b59f354445fb9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sha256sum".
 
-# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 0eb55872f6e90993b00e831e8dea4d3f7db89cac..180241480af9b2d1556592703b2c0550dc76092b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sha384sum".
 
-# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 5977915fc8ee99fb2cf952449944bb25aa5dedbe..021ad81382792c7ebdb9958e505e70d0a6fd450c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sha512sum".
 
-# Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index e0fef397416c8aa17cae8380543078689cdc1289..ea465902f938eca27c3be46933087e0307a5157d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure that neither --exact nor --zero gobbles a command line argument
 
-# Copyright (C) 2000, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shred --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 38013d3d8ed5319e4b493581a2bd232dc467aadb..f69166a9d9a1dcb19488e410277d90947ec6184b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shred --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 # The length of the basename is what matters.
index ac59c55ff7b5c27bf78fb8db03295b8b096acbf8..2231dcd5335734755917a24e503389cadb674f0c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that shuf randomizes its input.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   shuf --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 seq 100 > in || framework_failure
 
index 00aae25c506c4d23308d3a548b598304b8f9ef31..a555b26dfc4d925a50189dfa7e558da8821088b8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test use of compression by sort
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   sort --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 seq -w 2000 > exp || framework_failure
 tac exp > in || framework_failure
index 7ac9f8440252a7970d7fbb95242eb1e4000794ec..b4224f71b1fc3515de7cec77238d26ec93ffa7ac 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sort -m".
 
-# Copyright (C) 2002, 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 8b9fb2df0b90388bc9bbe6b130cae47e76504232..c42d16f5a268aea09327b20e0ed39a600d87ce96 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that sort --sort-random doesn't sort.
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   sort --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 seq 100 > in || framework_failure
 
index a8eed38760009e7e686395ebed21bcb4011e4e86..6f426e29fc532fbd88c5e3556971ad034a3a925e 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   split --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 5cc6d73efb45001b2d8f240327df6e2cdd71e9c6..ce7ee295d93ceb603c45bee28ab4274f5944cd55 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # split must fail when given length/count of zero.
 
-# Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   split --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch in || framework_failure
 
index 2460289b8153828ecb76b946ba95cd578671c22a..f2f23835f34c04923fea0c007e4cc25a19130f05 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # show that `split --lines=2' works.
 
-# Copyright (C) 2002, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 printf '1\n2\n3\n4\n5\n' > in || framework_failure
 
index ebc3b880ceb19bd437404b1c7df2cc14d421e667..e19fb1271664bf94fabbe69e4ed4908440cc1706 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that stat properly handles a format string ending with %
 
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2003-2004, 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   stat --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 
 fail=0
index f175ba1f09146113330d8a865aa7c4532a125a76..6615df5d1d91f3268aec7ecbcbba2bb05e1513bc 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "stat --printf".
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 6ec67be0153ce090889f46b89bd72bddd9cc73fc..8c4815b2dac01523de5642c2d722a8a683bf80e2 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure there's a tty on stdin.
-. $srcdir/../input-tty
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/input-tty
+. $top_srcdir/tests/test-lib.sh
 
 # The following list of reversible options was generated with
 # grep -w REV stty.c|sed -n '/^  {"/{s//REV_/;s/".*/=1/;p;}'|fmt
index d351594750b079a57f8757940562869c195bda78..d478765ed47f7b4c50c449ee2c47516571d8bf7a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that stty diagnoses invalid inputs, rather than silently misbehaving.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure there's a tty on stdin.
-. $srcdir/../input-tty
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/input-tty
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index c7e49675d4fe867609d4e280135e4d6427bd7380..d5d75107005936038b874afeec9798055c0b54e1 100755 (executable)
@@ -37,8 +37,8 @@ LC_ALL=C
 export LC_ALL
 
 # Make sure there's a tty on stdin.
-. $srcdir/../input-tty
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/input-tty
+. $top_srcdir/tests/test-lib.sh
 
 # Versions of GNU stty from shellutils-1.9.2c and earlier failed
 # tests #2 and #4 when run on SunOS 4.1.3.
index 14871ec2d56c32c7e2948d981ae9764861a03760..f366214067ec3e8bd51cd4babd198dd2c4646033 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "sum".
 
-# Copyright (C) 2000, 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index d960f9818e72291e62902ad2105146b2e8071a54..e5361832d1e93560be58058742a56a4960d0508f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure `sum -s' works for input whose sum of bytes is larger than 2^32
 
-# Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 # Avoid a problem when run in a UTF-8 locale.
 # Otherwise, Perl would try to (and fail to) interpret
@@ -30,7 +30,7 @@ fi
 LC_ALL=C
 export LC_ALL
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index efc87f0a2715dd8768327c3db73b166e7a47e9a4..0c421e5b64f2b828eb40500b84e32030990c88b3 100755 (executable)
@@ -3,7 +3,7 @@
 # when it encounters an error with say the first one.
 # With coreutils-5.2.1 and earlier, this test would fail.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   tac --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 # See if the envvar is defined.
 if test x = "x$FULL_PARTITION_TMPDIR"; then
index 6da34a6657d1cb0b982fd8af442bbae852bee914..e73619fdff01b5fdf936e89dae2840475b824304 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # test for basic tee functionality.
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tee --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 echo line >sample || framework_failure
 nums=`seq 9` || framework_failure
index 3e4ecd6f07fe61369fc9ba3bca408e14fce70e79..7b330f97cc4465d08a7241eb6a1109341cb0f0ab 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # test for "tee -".
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tee --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 tee - </dev/null || fail=1
index b7d899b6311d1e8a0846d9cc4126431796fa5677..9bdd95057a8136b4fb6ca8dcd2e1cb9a260eaa58 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test the diagnostics of "test".
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 440c60e2dc0406a44a5f2e9527f1439d7e19ac0f..dd593abdfbb34b1b4a503c0fcee5ba51641eceeb 100755 (executable)
@@ -2,7 +2,7 @@
 # -*- perl -*-
 # Test "tsort".
 
-# Copyright (C) 1999, 2000, 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2000, 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 1de1d1f82b1df36f69185a2d35d4d1b0a5533320..314ae8c20c4f0ae34c6e677c54563008dba66c13 100755 (executable)
@@ -18,7 +18,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 # Ensure that $TMPDIR is valid.
 TMPDIR=.; export TMPDIR
index d2762f12a62930926c15b8db5b14899af00a262c..de3ec87ee91785f483cbbf4b9d421eb1f83755b2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "unexpand".
 
-# Copyright (C) 2000, 2003-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2003-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 44bf84ffe40273958d82a6c017e4bcbf44b29225..7b54fda6cfa1d6b8a39681003c3aaf241e33fee2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Show that wc's new --files0-from option works.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   wc --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 echo 2 > 2b || framework_failure
 echo 2 words > 2w || framework_failure
index 61340d66a164682b3c7bbdfbcabcda225f01e17c..d70bb7d567d999cea93485890c6ea7ff39435cbc 100755 (executable)
@@ -3,7 +3,7 @@
 # Exercise wc's --files0-from option.
 # This file bears a striking resemblance to tests/du/files0-from.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -19,7 +19,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index 874b4a502f71f9d3e4d748b9420154b263349772..cb85035432a94baa5e7cd97b44ff26173620fc3e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise xstrtol's diagnostics via pr
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/tests/mkdir/Makefile.am b/tests/mkdir/Makefile.am
deleted file mode 100644 (file)
index ee8bfb8..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  selinux \
-  p-1 \
-  p-2 \
-  p-3 \
-  p-slashdot \
-  p-thru-slink \
-  p-v \
-  parents \
-  perm \
-  special-1 \
-  t-slash \
-  writable-under-readonly
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index a5672743af3d659eb8b3fc956e7d0b97bd4b7c0c..95b26be8ac8aa77fa950f3460d81b1afccd2832b 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 mkdir --parents "`pwd`/t" || fail=1
index 0659a8e35c0bb2fe78d963819bbe97a63b7077d2..bbf391304d86d93302e4e69a9a3f13c78fe6e9c3 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 mkdir --parents "`pwd`/t/u" || fail=1
index e868b520f037aa408ddbe9a572d5eb6402b7b8e1..e05021ff2f3ea8d2d6adc300b89f0405cfe17056 100755 (executable)
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir no-access || framework_failure
index b35ce19cf784c0af1974940047e7a009e81009ad..273b7b7e39f01f071f53ea73ee91d0e181ba270a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that mkdir -p works with arguments specified with a trailing "/.".
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 8607a935ee217a6f29f672aa15d6ebdce54e944a..c326191401bbd7de516bcb92afd0c3179dd3d74d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that mkdir -p foo/bar works when foo is a symbolic link to a directory
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s . slink || framework_failure
 
index 316c1e9392d0bbd01b895828f5b70d037421fed4..ffca679e210fea2b2cdbe49bfb00c42c7eee6149 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 mkdir -pv foo/a/b/c/d >out || fail=1
index 81302745fb087a203965d1801cf22120e8a4997a..72fb05a4bb5b9cefdb4570a3acdd06cfb1e17ef3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure mkdir's -p options works properly
 
-# Copyright (C) 2000, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 . "$abs_top_srcdir/tests/setgid-check"
 
 mkdir -m 700 e-dir || framework_failure
@@ -36,12 +36,12 @@ mkdir e-dir > /dev/null 2>&1 && fail=1
 # Create an existing directory.
 umask 077
 mode_str=drwxr-x-wx
-mode_arg=`"$abs_top_srcdir/tests/rwx-to-mode" $mode_str`
+mode_arg=`rwx_to_mode_ $mode_str`
 mkdir -m $mode_arg a || fail=1
 
 # this `mkdir -p ...' shouldn't change perms of existing dir `a'.
 d_mode_str=drwx-w--wx
-d_mode_arg=`"$abs_top_srcdir/tests/rwx-to-mode" $d_mode_str`
+d_mode_arg=`rwx_to_mode_ $d_mode_str`
 mkdir -p -m $d_mode_arg a/b/c/d
 
 # Make sure the permissions of `a' haven't been changed.
index a10d5f6c1fae6cfd2faf9a33d74e7d0b3d5864b0..c6c9417650c7e98df7077fa1a04bdc5678f51d00 100755 (executable)
@@ -2,7 +2,7 @@
 # Verify that mkdir's `-m MODE' option works properly
 # with various umask settings.
 
-# Copyright (C) 2000, 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 . "$abs_top_srcdir/tests/setgid-check"
 . "$abs_top_srcdir/tests/umask-check"
 
index 91b23b14e44b2634c7085e10cde07e34f04f2c29..c81669d6172071cecda9e1add9610e43b447b16f 100755 (executable)
@@ -27,9 +27,9 @@ fi
 # mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
 # successfully, in spite of the invalid context string.
 
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 c=invalid-selinux-context
 msg="failed to set default file creation context to \`$c':"
index 800d51065de962143c54aef30c609f8963761c01..10d5b86aa90d0b48fc9f8d5d307a92a10fa6837e 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 set_mode_string=u=rwx,g=rx,o=w,-s,+t
 output_mode_string=drwxr-x-wT
index a6fab5cc2252186f01674b5675209034a6eac04f..fdb5e8692d44ca89c8fe9089f191c9fa653a304b 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that mkdir works with arguments specified with and without
 # a trailing slash.
 
-# Copyright (C) 2000, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 92d87ab5ab77f87f0d4d18d6c9d7c92c1ab7124c..ebca859b878761b96f969b7f1378952d564c3a30 100755 (executable)
@@ -29,7 +29,7 @@ if test "$VERBOSE" = yes; then
   mkdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 # FIXME: for now, skip it unconditionally
diff --git a/tests/mv/Makefile.am b/tests/mv/Makefile.am
deleted file mode 100644 (file)
index 92ec68e..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-# Make coreutils tests for "mv".                       -*-Makefile-*-
-
-# Copyright (C) 1998-2008 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTS = \
-  atomic2 \
-  sticky-to-xpart \
-  hard-verbose \
-  backup-dir \
-  dir2dir \
-  no-target-dir \
-  atomic \
-  acl \
-  reply-no \
-  leak-fd \
-  part-hardlink \
-  hard-4 \
-  hard-3 \
-  hard-2 \
-  perm-1 \
-  i-link-no \
-  part-fail \
-  dup-source childproof update mv-special-1 \
-  into-self \
-  into-self-2 \
-  into-self-3 \
-  into-self-4 \
-  i-1 \
-  i-2 \
-  i-3 \
-  i-4 \
-  i-5 \
-  backup-is-src \
-  hard-link-1 force partition-perm to-symlink dir-file diag \
-  part-symlink part-rename trailing-slash
-
-EXTRA_DIST = $(TESTS) vfat
-
-include $(top_srcdir)/tests/check.mk
index 4fc6350b17160dc96dd27e848eb6a2a4e296334f..095fef12da74f942ca94107e1d4b7635a330a4ec 100755 (executable)
@@ -24,8 +24,8 @@ if test "$VERBOSE" = yes; then
   setfacl --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_acl_
 
 # Skip this test if cp was built without ACL support:
index 5eadb958f2591b7f6ce5421ba4938e53519eeaee..e0e8adce1e331f10b66a3eb7ea9853fb6d880b24 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_strace_ unlink
 
 # Before the fix, mv would unnecessarily unlink the destination symlink:
index fe205b46d2f7c86f003ed7c08d8c0210178ff7c2..4d2b4fc08f51540d6d25f0a06472e3022e820e26 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_strace_ unlink
 
 # Before the fix, mv would unnecessarily unlink the destination symlink:
index 2880cbd308df9ac8be70bbd12c508850a6265f5a..d23476e34727e6dea1df5be519e35c6dfeed4b70 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure "mv --verbose --backup" works the same for dirs and non-dirs.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir A B || framework_failure
 touch X Y || framework_failure
index 9315d15a0cee26f85feda9c373ea618fdbc9bb83..f90ce43c675932c7059e51c4bac0dc5d4bb17fc5 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index cdce93253268e246d3c6bb1c49f363b4ab837616..6cece3f3c16f2643a2d8afcc2922cf10fad54c88 100755 (executable)
@@ -3,7 +3,7 @@
 # With fileutils-4.1 and earlier, this test would fail for cp and mv.
 # With coreutils-6.9 and earlier, this test would fail for ln.
 
-# Copyright (C) 2001, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,8 +25,8 @@ if test "$VERBOSE" = yes; then
   ln --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir a b c || framework_failure
index 3393606c31de9b57287ec1e4def7616f62baaaff..37739f07196454cd3e98cd9947515f8c9c4592de 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Make sure we get English translations.
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch f1 || framework_failure
 touch f2 || framework_failure
index 0695249645cbc73856161f681d6f6896f0f006ba..589944191ffbb5fbf08f37984000dc8f7fbdf890 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir/file || framework_failure
 > file || framework_failure
index 41b4c6363efd097610dd09da2d0fc45c8b9fab0b..f8361fbffcc3ae39d3f05a701e1e6c4ee2e92d5a 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that mv prints the right diagnostic for a dir->dir move
 # where the destination directory is not empty.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p a/t b/t || framework_failure
 touch a/t/f || framework_failure
index a3eff6bdce9c927afffd442c7cd73b0d4314e6c6..bba2ef86966a05d52b2ff35b49aa1cff475411e8 100755 (executable)
@@ -4,7 +4,7 @@
 # made this fail:  cp a a d/
 # Ensure that mv fails with a similar command.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,8 +25,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 fail=0
index ad64c229082a14e569bd270de60f5f6d9df7bf85..27c0a18b4352a0e5b13b8d94483b3f623a9da8c0 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 ff=mvforce
 ff2=mvforce2
index 7833e43f7b4f0135871c872c00a484afce8f993c..7813f8a958da19ea29595ce3383ef847e93295e5 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that moving hard-linked arguments onto existing destinations works.
 # Likewise when using cp --preserve=link.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir dst || framework_failure
index 8d532a7c97627cb52b3715428261727313e24f93..359a74dbaa2d3be8cac1100cc2277fcf6e196e46 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that using `cp --preserve=link' to copy hard-linked arguments
 # onto existing destinations works, even when one of the link operations fails.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -35,7 +35,7 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p x dst/x || framework_failure
index 924c002dd02727279d3121da759d35ab0e735671..b082c1b218863511492cc605986f6ecbf2ca2b1c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that mv removes a in this case: touch a; ln a b; mv a b
 
-# Copyright (C) 2003, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 touch a || framework_failure
 ln a b || framework_failure
 
index b82f2526d12f4901714a77355bbf044c1ea45a1e..93f8ec194dec0c1662687fc675451031959e5b1e 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 13ca23f16cf30dee62013676e571f605586b96cf..f156f79f742cdf4af6c42c877a76025d49b98755 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that mv's --verbose options works even in this unusual case
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch x || framework_failure
 ln x y || framework_failure
index 326d72e1a41df1e4e2aad3148d91982d30aa191f..24726fedb801fa0bc38654b25c0c6725a3f911ff 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure a `n' reply to `mv -i...' aborts the move operation.
 
-# Copyright (C) 2001, 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - <<\EOF
index eb0181e1ad8775b58b68c1f815ae31a72e56d5ce..2b537309ca6c58bb3a609fa377430f0cccca93b8 100755 (executable)
@@ -25,9 +25,9 @@ fi
 
 
 # Make sure we get English translations.
-. $srcdir/../lang-default
+. $top_srcdir/tests/lang-default
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 for i in a b c d e f g h; do
index efac633ef33f753a93278dc86396a3b7175b18b5..1250baf7dc6cb27b611dba9e8aa396dbe3fb8ad3 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure that `mv file unwritable-file' prompts the user
 # and that `mv -f file unwritable-file' doesn't.
 
-# Copyright (C) 2001, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,9 +22,9 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../input-tty
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/input-tty
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 touch f g h i || framework_failure
index db61aab86c28ea46758753ecb425f33af0f5854d..3714527595a2cb91e1df2beb1f44522512898076 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 for i in a b; do
   echo $i > $i || framework_failure
index e62d08cfae41a6f2851e9fecb272a3661dbd403a..4143c838edc15d2faee48194a1ea8458f19eb32f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure `mv -i dir file' prompts before failing.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a || framework_failure
 touch b || framework_failure
index bb6fa44e21a4c85739f3861b846da53f192f0835..b3f8fd4bec828eb08c57d95ee01f0f178c351a06 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Show that mv doesn't preserve links to files the user has declined to move.
 
-# Copyright (C) 2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b || framework_failure
 echo foo > a/foo || framework_failure
index cbe7df9c58396ccdc12c61cdb256d818635d36b4..a877de4f53bdb2a27f12265677a97f4b175e9abd 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 dir=toself-dir
 file=toself-file
index ad00cb787766de5a7dcb0dee447858289e185a8d..147941a223b29ba2a9327cc04d9f8ba2989b329c 100755 (executable)
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index ce858a234b8574700c3a6f1f6e2051a7dd0b0c58..f531f5188a5cb74253fc624171a1cdbb1f3abdc0 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 dir1=is3-dir1
 dir2=is3-dir2
index c43418a1d339c4629b7ac04aee033b91cb10d166..39e053d61f6ea39a80b0733d2c2d461a599d7577 100755 (executable)
@@ -2,7 +2,7 @@
 # confirm that `mv symlink symlink' doesn't remove symlink
 # Based on an example from David Luyer.
 
-# Copyright (C) 2001, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 touch file || framework_failure
 ln -s file s || framework_failure
index 7a0a0ba5d0c26677c1d438f5001be723c3662fc1..549d256439125ea35e3ce9094ac6d3e02693ca3f 100755 (executable)
@@ -2,7 +2,7 @@
 # Exercise mv's file-descriptor-leak bug, reported against coreutils-5.2.1
 # and fixed (properly) on 2004-10-21.
 
-# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -25,9 +25,9 @@ fi
 
 # This test is relatively expensive, and might well evoke a
 # framework-failure on systems with a smaller command-line length
-. $srcdir/../expensive
+. $top_srcdir/tests/expensive
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
index 4d70e592bb8e93327ab342b2822b62e02b3f184c..8bf5075770f382f171e9fef198632f73fb4d119b 100755 (executable)
@@ -1,7 +1,7 @@
 #! /bin/sh
 # Test "mv" with special files.
 
-# Copyright (C) 1998, 1999, 2000, 2002, 2004-2007 Free Software
+# Copyright (C) 1998, 1999, 2000, 2002, 2004-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 6fbdc8b9b9f985764a67428a6396e902d4463a10..ba9a6b0a9f1ca2b5f7a3d1ba9fa627fc36e12caf 100755 (executable)
@@ -2,7 +2,7 @@
 # ensure that --no-target-directory (-T) works when the destination is
 # an empty directory.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p d/sub empty src d2/sub e2 || framework_failure
 touch f || framework_failure
index 4f12c1415c05363732f41d7dff9ac8dc9f441eeb..92d7ad4af970f68b883fb64d63a885432d536606 100755 (executable)
@@ -4,7 +4,7 @@
 # This is a bit fragile since it relies on the string used
 # for EPERM: `permission denied'.
 
-# Copyright (C) 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,8 +24,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
index 859cab09eaec7af15901f6681705434be49d5007..fed5bcf347cb741c881f431f987aae6860420486 100755 (executable)
@@ -4,7 +4,7 @@
 # For additional constraints, see the comment in copy.c.
 # Before coreutils-5.2.1, this test would fail.
 
-# Copyright (C) 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 2c6035950f88acb633f0b3c28baf0a13052aa7cb..30913ec101d059b8987e7dfce4a0fae98f387c7c 100755 (executable)
@@ -3,7 +3,7 @@
 # another, and giving it a different name at the destination would cause mv
 # to get a failed assertion.
 
-# Copyright (C) 2000, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 383179bfc7218bbe422c9acc03c50c2ded9d2963..f49ebec02723f5294f0c3663c4e761bdea6fcf99 100755 (executable)
@@ -2,7 +2,7 @@
 # make sure cp and mv can handle many combinations of local and
 # other-partition regular/symlink'd files.
 
-# Copyright (C) 2000, 2003, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   cp --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 8df9571d90fad09dce769e31201f3680814f5b7f..54aa8363acc03fe924fde7f89ae37fdfc2fecef2 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index 08a4eaa5bfcb6bdf80eeee554c02fc4354d571a9..a5ab790c060f448ae8ab85ca48f6f5692a319c7d 100755 (executable)
@@ -2,7 +2,7 @@
 # ensure that mv gives one diagnostic, not two, when failing
 # due to lack of permissions
 
-# Copyright (C) 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p no-write/dir || framework_failure
index baa2f3e5dc86b075fb122d529272d45fa23ce677..35ec5241cb06058946f87a8d2f61e19a6fccb67a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that `mv --reply=no f1 f2' works.
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch a b || framework_failure
 
index ac2e16193fa89832932e2374542523cb508ae524..1578ae8498f43bc1bbe69ed88339fdcff65562a3 100755 (executable)
@@ -4,7 +4,7 @@
 # mv: cannot remove `x': Operation not permitted
 # Affects coreutils-6.0-6.9.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,9 +24,9 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
index 80e1d138f026349c306e15bc2f39f5e142dbb380..b265a3e31313d8ecd5a7f60deda9650feae23a76 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 cleanup_() { rm -rf "$other_partition_tmpdir"; }
 . "$abs_top_srcdir/tests/other-fs-tmpdir"
 
index e20d180d659e4ea6c845b68f07b1d095a401224c..0a2a361b0cb08fbc06ecc05e1c8a403088998861 100755 (executable)
@@ -4,7 +4,7 @@
 # Also, ensure that "mv dir non-exist-dir/" works.
 # Also, ensure that "cp dir non-exist-dir/" works.
 
-# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir foo || framework_failure
 
index 15c922c067d03e5e48726628f367f4e76c7b615a..6fab2ce036ca834ed2d4f2fe77d2220abc8f9eb7 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure --update works as advertised
 
-# Copyright (C) 2001, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   mv --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 echo old > old || framework_failure
 touch -d yesterday old || framework_failure
old mode 100755 (executable)
new mode 100644 (file)
index a4f7779..a56f7b1
@@ -4,7 +4,7 @@
 # of the current directory.  If one is found, create a temporary directory
 # inside it.
 
-# Copyright (C) 1998, 1999, 2001, 2002, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 1999, 2001, 2002, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
diff --git a/tests/readlink/Makefile.am b/tests/readlink/Makefile.am
deleted file mode 100644 (file)
index 54a9758..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  rl-1 can-e can-f can-m
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index 1758d4ed4c752ac4d440b3d3b28adc216953a9c0..500bbc582ce8543b1dff0f01fe21d541e611c328 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # tests for canonicalize-existing mode (readlink -e).
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index c920ddd3612571b3f790c3dba3225f154109198f..3ddfb8dbcd3558443790d1e30194c00d74cf22a6 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # tests for canonicalize mode (readlink -f).
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index bc5bafec35ec63858d7ec7af3b239ee5b3aeb97e..e6a3e7589e02ec91c18c192598759705fca83810 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # tests for canonicalize-missing mode (readlink -m).
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 pwd=`pwd`
 my_pwd=$("$abs_top_builddir/src/pwd")
index 0b1b21819e7007a8644bb477094a230f86f505ac..c2fbcd4d561d027bb4035a7c2dcbfe0d6860db7c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # test for readlink mode.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   readlink --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir subdir || framework_failure
 touch regfile || framework_failure
diff --git a/tests/rm/Makefile.am b/tests/rm/Makefile.am
deleted file mode 100644 (file)
index d7a09d9..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-# Make coreutils tests for "rm".                       -*-Makefile-*-
-
-# Copyright (C) 1997-1998, 2000-2008 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-TESTS = \
-  deep-2 \
-  deep-1 \
-  hash \
-  dangling-symlink \
-  v-slash \
-  i-never \
-  fail-eacces \
-  one-file-system \
-  ignorable \
-  readdir-bug \
-  empty-inacc \
-  dir-nonrecur \
-  dot-rel \
-  inaccessible \
-  unread3 \
-  no-give-up \
-  dir-no-w \
-  empty-name \
-  fail-2eperm \
-  cycle i-no-r fail-eperm \
-  rm1 rm2 rm3 rm4 rm5 \
-  unread2 r-1 r-2 r-3 r-4 i-1 ir-1 f-1 sunos-1 \
-  unreadable \
-  interactive-always interactive-once \
-  isatty
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index 9f7bfcc79676b4191d210e968855e92ce5cc8648..acaa14e35c4448ff7a5e64edb7ed11bde5f0aa3a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # rm (coreutils-4.5.4) could be tricked into mistakenly reporting a cycle.
 
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p a/b
index 12d07312af46cf169a03929658486067e4083b4b..8292ed7e4a12e3680de5c372645c1feaa5e8b47c 100755 (executable)
@@ -4,7 +4,7 @@
 # But for fileutils-4.1.9, it would do the former and
 # for fileutils-4.1.10 the latter.
 
-# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004-2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 ln -s no-file dangle
 ln -s / symlink
index a0f72e82c8394701fbedcc133985de8f22e2c9a5..25239d60666dda65ca44aa880cc4b0bdcbac2061 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm" with a deep hierarchy.
 
-# Copyright (C) 1997, 2002-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 2002-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 umask 022
 
index d5e1b572c0c0dd1d8a6760c4ce1a51be34955e87..277a0b664f9b331869ada85165216d23b9798e2d 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Root can run this test, but it always succeeds, since for root, all
 # files are writable, and write_protected_non_symlink never reaches
index 2ed6926bfc12c62175c581559b488d8cf8333b34..4f5b325909ebc9c39eeecbd43550999685d74cea 100755 (executable)
@@ -2,7 +2,7 @@
 # rm (without -r) must give a diagnostic for any directory.
 # It must not prompt, even if that directory is unwritable.
 
-# Copyright (C) 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir --mode=0500 unwritable-dir || framework_failure
 
index b912e6362b5479b4dfa6f5b0b2de6efa35f2fbc0..817edfd587e3228ca40e5aa6d955ba2a863849eb 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that `rm dir' (i.e., without --recursive) gives a reasonable
 # diagnostic when failing.
 
-# Copyright (C) 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir d || framework_failure
 
index f31e6f04cd5cadb54f4099e84c9a7e4c40f74551..256abcba15c04b5f8e54dafa50465cb2959dd954 100755 (executable)
@@ -2,7 +2,7 @@
 # Use rm -r to remove two non-empty dot-relative directories.
 # This would have failed between 2004-10-18 and 2004-10-21.
 
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a b || framework_failure
 touch a/f b/f || framework_failure
index 32772e75536a9382adfb94223bfdda23dea69098..d0b661f7c688d01094089d9a015272bd74b4f2d2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that rm -rf removes an empty-and-inaccessible directory.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -m0 inacc || framework_failure
index a250985c9606cb7c135f0ad27fc888b768d1989a..85cf1ed4dac9fa0cfc0046d19342edc21df8b1a0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure that rm -r '' fails.
 
-# Copyright (C) 1998, 2003, 2005, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2003, 2005, 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@
 # but relative to `/' rather than relative to the current directory.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index 750d660381a5e4313fcd7c9d968525c5ee78365a..5d80d85171095e098ea94420c5be7d5b11d389e3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm -f" with a nonexistent file.
 
-# Copyright (C) 1997, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p d || framework_failure
 
index 66efbce291721e9153c960781b2a89e9adff6b7b..90a1ce943f67e185a8e361211716ed01fcfc4184 100755 (executable)
@@ -2,7 +2,7 @@
 # Like fail-eperm, but the failure must be for a file encountered
 # while trying to remove the containing directory with the sticky bit set.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 # The containing directory must be owned by the user who eventually runs rm.
index d49764c5363367204c23716ca2ced978643e3a05..7e13a789a2f91a0f5cc49b57b1a8b6b31526d57c 100755 (executable)
@@ -4,7 +4,7 @@
 # With the symlink, rm from coreutils-6.9 would fail with a misleading
 # ELOOP diagnostic.
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -24,8 +24,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 ok=0
index e9e2108ec8f71d412e3bce167cad88af93547e93..57b33e8f7588c0ac8656f12444673dcc7b76b020 100755 (executable)
@@ -3,7 +3,7 @@
 # Ensure that rm gives the expected diagnostic when failing to remove a file
 # owned by some other user in a directory with the sticky bit set.
 
-# Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -51,7 +51,7 @@ delete @ENV{qw(BASH_ENV CDPATH ENV PATH)};
 $ENV{IFS}  = '';
 
 my @dir_list = qw(/tmp /var/tmp /usr/tmp);
-my $rm = '../../src/rm';
+my $rm = '../src/rm';
 
 # Find a directory with the sticky bit set.
 my $found_dir;
index 0261eef2ca2f2922dc5d06409d006c7ff8ea914d..0b2b6c57c322f265dca66803ffcb69a9d61e4e34 100755 (executable)
@@ -3,7 +3,7 @@
 # Before then, rm would fail occasionally, sometimes via
 # a failed assertion, others with a seg fault.
 
-# Copyright (C) 2000, 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2002, 2003, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # 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/../expensive
+. $top_srcdir/tests/expensive
 
 if test "$VERBOSE" = yes; then
   set -x
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Create a hierarchy with 3*26 leaf directories, each at depth 153.
 echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
index b0d939c2ad0cbb7f53c547395c41a190cc585943..15fd94f97e5eb09becacf1c583018a6e0f778fce 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm -i".
 
-# Copyright (C) 1997-1998, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997-1998, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 t=t
 mkdir -p $t || framework_failure
index 16edcf6f752020ba8c046665eef253f17cf365c4..24035f3c808d82f2d1544f69a0e3562e2d94d5c4 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that rm --interactive=never works does not prompt, even for
 # an unwritable file.
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 touch f || framework_failure
index 0c2e898d2dfe2966151d634d858445b32c96c225..d2b2c1062ec76d3e06ed5feb7280f2c93b0ea49a 100755 (executable)
@@ -3,7 +3,7 @@
 # recurse into directory DIR.  rm -i (without -r) must fail in that case.
 # Fixed in coreutils-4.5.2.
 
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 echo y > y || framework_failure
index a3fe1dcaf3213a60ef6e59dffafbe7b0ca1cf26c..0473a2039174cfb55ef7db7d7c6957b8660d4d59 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that rm -f existing-non-dir/anything exits successfully
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 touch existing-non-dir || framework_failure
index 2175a7d6bd2e1c368502421787d844c8e1ba3eca..e000936544e45bfda175691b8d9475dc052e995e 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 # Skip this test if your system has neither the openat-style functions
 # nor /proc/self/fd support with which to emulate them.
index f085ec1690efb096798bd651a42a230b904241ae..a20c879555a1217c32182d060d526fe229048862 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test the --interactive[=WHEN] changes added to coreutils 6.0
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
   || framework_failure
index e09db7c125d6630d125a224896ee1283739d85f0..bb2f23844b7731b36bd31ee9c40669136bcbbf6b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test the -I option added to coreutils 6.0
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -23,8 +23,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure
 touch file1-1 file2-1 file2-2 file2-3 file3-1 file3-2 file3-3 file3-4 \
index c3af0acc1fd6fa75b83c5645972c38d342273bdb..21bd8f0a7527c713f9587abd3b57e4b70eeedb65 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm -ir".
 
-# Copyright (C) 1997, 1998, 2002, 2004, 2006, 2007 Free Software Foundation,
+# Copyright (C) 1997, 1998, 2002, 2004, 2006-2008 Free Software Foundation,
 # Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 t=t
 mkdir -p $t $t/a $t/b $t/c || framework_failure
index 040d9754800c1ef15b76fa8bcd3e04bff603c1f2..b0f4fdcb7b33527457cff8de556c01eee7907c53 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure `chown 0 f; rm f' prompts before removing f.
 
-# Copyright (C) 2001-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 fail=0
index 8a1ecdc757c58b898ba3cea23722880b86c053bf..aa31d93f9dea477047ecbbc9b6445bbdd1767222 100755 (executable)
@@ -2,7 +2,7 @@
 # With rm from coreutils-5.2.1 and earlier, `rm -r' would mistakenly
 # give up too early under some conditions.
 
-# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 mkdir d || framework_failure
index 15d32796568cd2577d38b9cb79d6c6b7f5b14f53..1cc4bfb9dfbd6dbfd4beaa8d86e6aad37742594a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Demonstrate rm's new --one-file-system option.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 # If used, these must *follow* test-lib.sh.
index 5e05d43ea6b489aec6fca2b27480796384e65ea2..1bc1743a595d51e3c88f8f2467b47c941cbf8b67 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm -r --verbose".
 
-# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006, 2007 Free Software
+# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -24,8 +24,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a a/a || framework_failure
 > b || framework_failure
index 0e381ad40443fb7e99cfa1de5a376c794eab5dd9..370260690a665affc3151b43a30b5146852a6af8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm -r --verbose".
 
-# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006, 2007 Free Software
+# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006-2008 Free Software
 # Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir t t/a t/a/b || framework_failure
 > t/a/f || framework_failure
index 485832d0bfb5566e941d45201684181ed4f1cefb..26355600a63518c4d9556dcffebff7cfbbbad680 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Create and remove a directory with more than 254 files.
 
-# Copyright (C) 1997, 2001-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1997, 2001-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -28,7 +28,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir t || framework_failure
 cd t || framework_failure
index 8320542f79bb95a4c96489fd6518f15336c32e47..7430273a0a2c40e9aa91b72e854d2db308ae7b7e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Try to remove '.' and '..' recursively.
 
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir d || framework_failure
 touch d/a || framework_failure
index 6386b758331a58f9d838ea03b7a6ca99660723e5..6b81a746b44c967511e1c9a2813fbbc7995ca700 100755 (executable)
@@ -2,7 +2,7 @@
 # Exercise the Darwin/MacOS bug worked around on 2006-09-29,
 # whereby rm would fail to remove all entries in a directory.
 
-# Copyright (C) 2006 Free Software Foundation, Inc.
+# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Create a directory containing many files.
 # What counts is a combination of the number of files and
index 37705639d168100e75939ab811efe21370cea89f..0ea38eb5dc92371b01215851e6602df6cc9f410c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise another small part of remove.c
 
-# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p b/a/p b/c b/d || framework_failure
index 2524db06f325b2dba2c6b0cbaed6a2781b0813a1..fca9fa554e124d557c68a6226fe2c6bb3b1a5078 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise another small part of remove.c
 
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p a/0 || framework_failure
index cfa1b02a7ecd15daf0e1ceaf9b912e193eab1ef5..9708bd295110ce4b23e3984277688c053a46162f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise another small part of remove.c
 
-# Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p z || framework_failure
index c158e6905607aed5bb166fea797412a495963965..70bc048a9807c771f65132ba9537ff4b5f31dca5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that `rm dir' fails without --recursive
 
-# Copyright (C) 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir dir || framework_failure
index c3243233ed7b1a9b272a076a28e394b74be41a63..73245838d6751198c7b891b4d0b359005b7edf92 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # a basic test of rm -ri
 
-# Copyright (C) 2002-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p d/e || framework_failure
index a0e431287f0a7eaf2fc1cd48d4e353e6e600a58b..03200bf3625068f3253c3a92a6b59eb658a87f9f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Make sure that rm -r '' fails.
 
-# Copyright (C) 1997, 1998, 2002, 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 1997-1998, 2002, 2004, 2006, 2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 rm -r '' > /dev/null 2>&1 && fail=1
index 966bfa1b8d9a2a9e226138e47484c7566db0dc9b..1e3fad9399df6e96e4c486254ba9092550c840db 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # exercise one small part of remove.c
 
-# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p a/b || framework_failure
index 71089f5d626d2959237ddc4e3ceb4d194a3380e6..36e93bbe3dbad80ac43c664876a81203712e3d95 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that rm works even from an unreadable working directory.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 mkdir -p a/1 b c d/2 e/3 || framework_failure
index 4fb40235c3146b5687071ea38dc926bd6c8c0535..836cd611a4da0c678d3c96a9d67764d9318ca760 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test "rm" and unreadable directories.
 
-# Copyright (C) 1998, 2003, 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 1998, 2003, 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 : ${srcdir=.}
-. $srcdir/../require-perl
+. $top_srcdir/tests/require-perl
 
 me=`echo $0|sed 's,.*/,,'`
 exec $PERL -w -I$srcdir/.. -MCoreutils -M"CuTmpdir qw($me)" -- - << \EOF
index 2f26c03b4b786a4b965968c69fd80201f2938bd6..198b82b4c6a8dbfa4cc0e295c347fbea5e27ade5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # avoid extra slashes in --verbose output
 
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2007-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   rm --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 mkdir a || framework_failure
 touch a/x || framework_failure
diff --git a/tests/rmdir/Makefile.am b/tests/rmdir/Makefile.am
deleted file mode 100644 (file)
index 72397f0..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
-  fail-perm ignore t-slash
-
-EXTRA_DIST = $(TESTS)
-
-include $(top_srcdir)/tests/check.mk
index 51e4cf7f7424b99ad3e6395ca45934d7df0d555e..bbfcad83835968185ea3b324171eedbb34aeee7d 100755 (executable)
@@ -2,7 +2,7 @@
 # For unwritable directory `d', `rmdir -p d d/e/f' would emit
 # diagnostics but would not fail.  Fixed in 5.1.2.
 
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir d d/e d/e/f || framework_failure
 chmod a-w d || framework_failure
index 2555613dd7fd0c1a06ff59646bbd55d6496282f0..70b2944909e54419762228144a871edd3413c740 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 cwd=`pwd`
 mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure
index 4453f1606d3c380268e5ae5a9b8e5129a9a01b64..cd4dad34baa09e85c5b9c8b4691d4e5c3e6f8de6 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure rmdir -p works on a directory specified with a trailing slash
 
-# Copyright (C) 2002, 2006, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   rmdir --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkdir dir || framework_failure
 
diff --git a/tests/rwx-to-mode b/tests/rwx-to-mode
deleted file mode 100755 (executable)
index 3ea9d03..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx
-# to the equivalent chmod --mode (-m) argument, (=,u=rwx,g=r,o=x and
-# =,u=rw,g=rx,o=wx).  Ignore ACLs.
-
-# Copyright (C) 2000, 2005 Free Software Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-case $# in
-  1) rwx=$1;;
-  *) echo "$0: wrong number of arguments" 1>&2
-    echo "Usage: $0 ls-style-mode-string" 1>&2
-    exit 1;;
-esac
-
-case $rwx in
-  [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]) ;;
-  [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]+) ;;
-  *) echo "$0: invalid mode string: $rwx" 1>&2; exit 1;;
-esac
-
-# Perform these conversions:
-# S  s
-# s  xs
-# T  t
-# t  xt
-# The `T' and `t' ones are only valid for `other'.
-s='s/S/@/;s/s/x@/;s/@/s/'
-t='s/T/@/;s/t/x@/;s/@/t/'
-
-u=`echo $rwx|sed 's/^.\(...\).*/,u=\1/;s/-//g;s/^,u=$//;'$s`
-g=`echo $rwx|sed 's/^....\(...\).*/,g=\1/;s/-//g;s/^,g=$//;'$s`
-o=`echo $rwx|sed 's/^.......\(...\).*/,o=\1/;s/-//g;s/^,o=$//;'$s';'$t`
-echo "=$u$g$o"
-exit 0
old mode 100755 (executable)
new mode 100644 (file)
diff --git a/tests/tail-2/Makefile.am b/tests/tail-2/Makefile.am
deleted file mode 100644 (file)
index 6ec142e..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-# Make coreutils tests for "tail".                     -*-Makefile-*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS = \
-  append-only \
-  tail-n0f \
-  infloop-1 \
-  big-4gb proc-ksyms start-middle assert assert-2
-
-include $(top_srcdir)/tests/check.mk
index 615401874b569c41d9ff0ad47cc66ec9f51096fa..e061b125e6a98fdfda8974dfee4fe1b869dd7844 100755 (executable)
@@ -2,7 +2,7 @@
 # Ensure that tail -f works on an append-only file
 # Requires root access to do chattr +a, as well as an ext[23] or xfs file system
 
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 chattr_a_works=1
index 78e0082b4340c3f61c4f811d8833a700ff947454..88371c2d157bfeacac2befb64e2ee4956fc2453b 100755 (executable)
@@ -29,7 +29,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Not "expensive" per se, but sleeping for so long is annoying.
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 very_expensive_
 
 ok='ok ok ok'
index 6d30a665aaa1da88b1bb0dc8dfe5d4d1c33ec73d..4cfd6fbb2c7068cb135bb6e158de8adca830edad 100755 (executable)
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
 fi
 
 # Not "expensive" per se, but sleeping for so long is annoying.
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 very_expensive_
 
 ok='ok ok ok'
index 27319f98c2a6e8e528917f44bd39bf1ecf7ba362..b7d25289c65ee4a2efbcacdd6a659996266eee54 100755 (executable)
@@ -2,7 +2,7 @@
 # Demonstrate a bug in `tail -cN' when operating on files of size 4G and larger
 # Fixed in coreutils-4.5.2.
 
-# Copyright (C) 2002, 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../expensive
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/expensive
+. $top_srcdir/tests/test-lib.sh
 
 # Create a file of size exactly 4GB (2^32) with 8 bytes
 # at the beginning and another set of 8 bytes at the end.
index eb95ea090fd3b0bcb7a9cebd99b956b419b9c7a6..4015fcb067ab54315b3b3237d9daf8985cd0ad21 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # This test would fail with tail from pre-1.22i textutils.
 
-# Copyright (C) 1999, 2002, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 1999, 2002, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 yes > t &
 yes_pid=$!
index 4a1a17662ed0cc1a930d8855765ada2426fa4b89..ccd4fdccc09191b4517b8368237f20fc290d8e6a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Prior to textutils-2.0.17, `tail /proc/ksyms' would segfault on Linux.
 
-# Copyright (C) 2001, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index 7e62a407384f82ff1ab3d40976456194a03964fb..d11eaec6024b1ccf51ea4c9bc86dddc2ce9fb0e1 100755 (executable)
@@ -2,7 +2,7 @@
 # Verify that tail works even when it's reading from a file
 # that is not at its beginning.  Based on a report from John Roll.
 
-# Copyright (C) 2001, 2002, 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001, 2002, 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 (echo 1; echo 2) > k || framework_failure
 
index 3e3bc1ce75791121f90d798ddbf980c2343060f9..c07b30c491ffc4b1ea4730e5574dfaf65dc273b8 100755 (executable)
@@ -2,7 +2,7 @@
 # Make sure that `tail -n0 -f' and `tail -c0 -f' sleep
 # rather than doing what amounted to a busy-wait.
 
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   tail --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 sleep 2 &
 pid=$!
index ebc6a7cfc8f572d212a5b25c0dc560577881fbcb..80621bb5fe766eff0b4e3698e82718e6d07f2bc7 100644 (file)
@@ -86,6 +86,39 @@ uid_is_privileged_()
   esac
 }
 
+# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx
+# to the equivalent chmod --mode (-m) argument, (=,u=rwx,g=r,o=x and
+# =,u=rw,g=rx,o=wx).  Ignore ACLs.
+rwx_to_mode_()
+{
+  case $# in
+    1) rwx=$1;;
+    *) echo "$0: wrong number of arguments" 1>&2
+      echo "Usage: $0 ls-style-mode-string" 1>&2
+      return;;
+  esac
+
+  case $rwx in
+    [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]) ;;
+    [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]+) ;;
+    *) echo "$0: invalid mode string: $rwx" 1>&2; return;;
+  esac
+
+  # Perform these conversions:
+  # S  s
+  # s  xs
+  # T  t
+  # t  xt
+  # The `T' and `t' ones are only valid for `other'.
+  s='s/S/@/;s/s/x@/;s/@/s/'
+  t='s/T/@/;s/t/x@/;s/@/t/'
+
+  u=`echo $rwx|sed 's/^.\(...\).*/,u=\1/;s/-//g;s/^,u=$//;'$s`
+  g=`echo $rwx|sed 's/^....\(...\).*/,g=\1/;s/-//g;s/^,g=$//;'$s`
+  o=`echo $rwx|sed 's/^.......\(...\).*/,o=\1/;s/-//g;s/^,o=$//;'$s';'$t`
+  echo "=$u$g$o"
+}
+
 skip_if_()
 {
   case $1 in
@@ -145,7 +178,7 @@ test_dir_=$(pwd)
 this_test_() { echo "./$0" | sed 's,.*/,,'; }
 this_test=$(this_test_)
 
-. $srcdir/../envvar-check
+. $top_srcdir/tests/envvar-check
 
 # This is a stub function that is run upon trap (upon regular exit and
 # interrupt).  Override it with a per-test function, e.g., to unmount
index c69f9d9bc55e801917dc42096b53ba8632988b6b..66392a5fceb8893eb48836ebfa2794987c816a87 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 rm -f touch-target t-symlink
 ln -s touch-target t-symlink
index 5b7a86c1997859c2373da67c9294dcf55d587777..e48484a2a284894db6abaab117ea727206721d88 100755 (executable)
@@ -7,7 +7,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 touch . || fail=1
index 5368629b45c08791571c4d4759fe276da94b953b..1020a378d83f0995104a75fea7164f1bf5e4211d 100755 (executable)
@@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 DEFAULT_SLEEP_SECONDS=2
 SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
index 018d191e50b36fb519bdc96b8518e831f09460a4..7177ad44481da6fb980c2158993f83eacdb31250 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # make sure touch gives reasonable diagnostics
 
-# Copyright (C) 2001-2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2001-2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 d1=no-$$
index 5dd0840657df016e8c5f1eb01ec941d005b166ed..22cde83a79af4440122b769172e2cc1793aa2d00 100755 (executable)
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 mkfifo_or_skip_ fifo
 
index 79a2452e388644e44711cf3514982577beae0ea3..a503ff752b7cc22a11e96899c5183bf5dd7b790c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Ensure that touch -c no-such-file no longer fails (it did in 4.1.8).
 
-# Copyright (C) 2002, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 fail=0
 
index e90fcac5072a5df85e2250a1acda95be989fae5a..9466166cedcc8ca23b982b93348eea0207bf0626 100755 (executable)
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 # Make sure t2 is newer than t1.
 touch -d '2000-01-01 00:00' t1 || framework_failure
index 3f133f1e30cad8b3fbdc3ee11ce76de0c958c166..d041531c5319b0ef027499e64513e6de0397e2d5 100755 (executable)
@@ -22,8 +22,8 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../lang-default
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/lang-default
+. $top_srcdir/tests/test-lib.sh
 
 if env -- test -w /; then
   skip_test_ you have write access to /.
index d4e01dd27a23156c5cca4214f18634df2e2d3709..7aaa4f3a0f785fd403fd292643f8f0f88a8a0b5f 100755 (executable)
@@ -21,8 +21,8 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../envvar-check
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/envvar-check
+. $top_srcdir/tests/test-lib.sh
 require_root_
 
 group_num=$(id -g $NON_ROOT_USERNAME)
index dc1008d10ad812f6f1ff64aa94418bd7cd32430a..25f73828a0eafd7e112981ce7880087469cb408c 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Test touch with obsolescent 8- or 10-digit time stamps.
 
-# Copyright (C) 2000, 2004-2007 Free Software Foundation, Inc.
+# Copyright (C) 2000, 2004-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 _POSIX2_VERSION=199209; export _POSIX2_VERSION
 POSIXLY_CORRECT=1; export POSIXLY_CORRECT
index e1389c28076b4953bd6d7f9cfccf2508a78d0a47..47b7eb20d38b45d4228f0afc62e0ae7c8f44ac27 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # ensure that touch can operate on read-only files
 
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
+# Copyright (C) 2005-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 skip_if_root_
 
 : > read-only || framework_failure
index 910a3782cf38bb6b30bb1f85a8eb3a4cfc1dcf90..6a5d100f1391aea6bafd643959e4a6127614b39a 100755 (executable)
@@ -2,7 +2,7 @@
 # Demonstrate using a combination of --reference and --date to
 # set the time of a file back by an arbitrary amount.
 
-# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2008 Free Software Foundation, Inc.
 
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then
   touch --version
 fi
 
-. $srcdir/../test-lib.sh
+. $top_srcdir/tests/test-lib.sh
 
 TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure