mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-05 16:19:23 +02:00
Revamp test-related Makefiles.
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.
This commit is contained in:
@@ -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
|
||||
|
||||
+355
-27
@@ -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
|
||||
|
||||
+2
-1
@@ -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 \
|
||||
|
||||
@@ -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
|
||||
+4
-4
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+4
-4
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
+3
-3
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
+4
-4
@@ -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
|
||||
|
||||
+2
-2
@@ -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:
|
||||
|
||||
+2
-2
@@ -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.$$
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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_
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+3
-3
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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 ||
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
# Verify that cp -p preserves GID when it is possible.
|
||||
|
||||
# Copyright (C) 2007, 2008 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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
+1
-1
@@ -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.$$
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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_
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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; } )
|
||||
|
||||
+3
-3
@@ -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 \
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
+2
-2
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
@@ -24,7 +24,7 @@ if test "$VERBOSE" = yes; then
|
||||
ginstall --version
|
||||
fi
|
||||
|
||||
. $srcdir/../test-lib.sh
|
||||
. $top_srcdir/tests/test-lib.sh
|
||||
|
||||
fail=0
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user