diff options
Diffstat (limited to 'tests/cp')
40 files changed, 40 insertions, 40 deletions
diff --git a/tests/cp/abuse b/tests/cp/abuse index 2f6e20f67..d0faba4dd 100755 --- a/tests/cp/abuse +++ b/tests/cp/abuse @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir a b c || framework_failure ln -s ../t a/1 || framework_failure diff --git a/tests/cp/acl b/tests/cp/acl index bfbb23803..21a7742ef 100755 --- a/tests/cp/acl +++ b/tests/cp/acl @@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then setfacl --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_acl_ # Skip this test if cp was built without ACL support: diff --git a/tests/cp/backup-1 b/tests/cp/backup-1 index 6f2ca2eae..7fc165870 100755 --- a/tests/cp/backup-1 +++ b/tests/cp/backup-1 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh suffix=.b file=b1.$$ diff --git a/tests/cp/backup-dir b/tests/cp/backup-dir index d2ac2be39..88de81adf 100755 --- a/tests/cp/backup-dir +++ b/tests/cp/backup-dir @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir x y || framework_failure diff --git a/tests/cp/backup-is-src b/tests/cp/backup-is-src index 23d2a59d8..3703350ad 100755 --- a/tests/cp/backup-is-src +++ b/tests/cp/backup-is-src @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh echo a > a || framework_failure echo a-tilde > a~ || framework_failure diff --git a/tests/cp/cp-HL b/tests/cp/cp-HL index dbfaed1ef..bdc34d9a5 100755 --- a/tests/cp/cp-HL +++ b/tests/cp/cp-HL @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir src-dir dest-dir || framework_failure echo f > f || framework_failure diff --git a/tests/cp/cp-a-selinux b/tests/cp/cp-a-selinux index 92627e719..feb66f9ac 100755 --- a/tests/cp/cp-a-selinux +++ b/tests/cp/cp-a-selinux @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_root_ require_selinux_ diff --git a/tests/cp/cp-deref b/tests/cp/cp-deref index 181ba4722..89584502c 100755 --- a/tests/cp/cp-deref +++ b/tests/cp/cp-deref @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir a b c d || framework_failure ln -s ../c a || framework_failure diff --git a/tests/cp/cp-i b/tests/cp/cp-i index a2c47be44..a248eaa9e 100755 --- a/tests/cp/cp-i +++ b/tests/cp/cp-i @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir -p a b/a/c || framework_failure touch a/c || framework_failure diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup index 41bf8771c..4280e481a 100755 --- a/tests/cp/cp-mv-backup +++ b/tests/cp/cp-mv-backup @@ -23,7 +23,7 @@ fi # Ensure that ls sorts the same way for everyone. -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh umask 022 diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents index 3394265bb..e936f59be 100755 --- a/tests/cp/cp-parents +++ b/tests/cp/cp-parents @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then mv --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh working_umask_or_skip_ diff --git a/tests/cp/deref-slink b/tests/cp/deref-slink index 6a24290c9..d2e953752 100755 --- a/tests/cp/deref-slink +++ b/tests/cp/deref-slink @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch f slink-target || framework_failure ln -s slink-target slink || framework_failure diff --git a/tests/cp/dir-rm-dest b/tests/cp/dir-rm-dest index e9934c339..c97e709f2 100755 --- a/tests/cp/dir-rm-dest +++ b/tests/cp/dir-rm-dest @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir d e || framework_failure diff --git a/tests/cp/dir-slash b/tests/cp/dir-slash index 3521a1a70..0e591cedb 100755 --- a/tests/cp/dir-slash +++ b/tests/cp/dir-slash @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir dir1 dir2 || framework_failure touch dir1/file || framework_failure diff --git a/tests/cp/dir-vs-file b/tests/cp/dir-vs-file index cb23172cb..317c69a9c 100755 --- a/tests/cp/dir-vs-file +++ b/tests/cp/dir-vs-file @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir dir || framework_failure touch file || framework_failure diff --git a/tests/cp/existing-perm-race b/tests/cp/existing-perm-race index f2a328723..d428e99bf 100755 --- a/tests/cp/existing-perm-race +++ b/tests/cp/existing-perm-race @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_membership_in_two_groups_ set _ $groups; shift diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm index ae9ca041c..f2dabd155 100755 --- a/tests/cp/fail-perm +++ b/tests/cp/fail-perm @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh skip_if_root_ chmod g-s . || framework_failure diff --git a/tests/cp/file-perm-race b/tests/cp/file-perm-race index 09d38a734..1b6eff6bf 100755 --- a/tests/cp/file-perm-race +++ b/tests/cp/file-perm-race @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh umask 022 mkfifo fifo || diff --git a/tests/cp/into-self b/tests/cp/into-self index 49f5feddd..53dfe5697 100755 --- a/tests/cp/into-self +++ b/tests/cp/into-self @@ -26,7 +26,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir dir || framework_failure diff --git a/tests/cp/link b/tests/cp/link index 49cedebc4..a1cf92622 100755 --- a/tests/cp/link +++ b/tests/cp/link @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch src || framework_failure touch dest || framework_failure diff --git a/tests/cp/link-no-deref b/tests/cp/link-no-deref index d249b03d8..3ff16e036 100755 --- a/tests/cp/link-no-deref +++ b/tests/cp/link-no-deref @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh ln -s no-such-file dangling-slink || framework_failure diff --git a/tests/cp/link-preserve b/tests/cp/link-preserve index b396cd566..0dd96f05e 100755 --- a/tests/cp/link-preserve +++ b/tests/cp/link-preserve @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch a || framework_failure ln a b || framework_failure diff --git a/tests/cp/no-deref-link1 b/tests/cp/no-deref-link1 index 018a029fd..e92c40cc3 100755 --- a/tests/cp/no-deref-link1 +++ b/tests/cp/no-deref-link1 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir a b msg=bar diff --git a/tests/cp/no-deref-link2 b/tests/cp/no-deref-link2 index 0046dce4a..20b87fc98 100755 --- a/tests/cp/no-deref-link2 +++ b/tests/cp/no-deref-link2 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir b msg=bar diff --git a/tests/cp/no-deref-link3 b/tests/cp/no-deref-link3 index 5d0ba7538..32966ca0e 100755 --- a/tests/cp/no-deref-link3 +++ b/tests/cp/no-deref-link3 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh msg=bar echo $msg > a diff --git a/tests/cp/parent-perm b/tests/cp/parent-perm index 77bcf7584..a7da5e2e0 100755 --- a/tests/cp/parent-perm +++ b/tests/cp/parent-perm @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh working_umask_or_skip_ diff --git a/tests/cp/parent-perm-race b/tests/cp/parent-perm-race index de542e00d..c84f2e9f3 100755 --- a/tests/cp/parent-perm-race +++ b/tests/cp/parent-perm-race @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh umask 002 mkdir mode ownership d || framework_failure diff --git a/tests/cp/perm b/tests/cp/perm index b482c173d..aed3a722b 100755 --- a/tests/cp/perm +++ b/tests/cp/perm @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then mv --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh very_expensive_ umask 037 diff --git a/tests/cp/preserve-2 b/tests/cp/preserve-2 index 0bbe3390c..667b50392 100755 --- a/tests/cp/preserve-2 +++ b/tests/cp/preserve-2 @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch f || framework_failure diff --git a/tests/cp/preserve-gid b/tests/cp/preserve-gid index 1f18e0375..a999322d2 100755 --- a/tests/cp/preserve-gid +++ b/tests/cp/preserve-gid @@ -16,7 +16,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_root_ create() { diff --git a/tests/cp/proc-zero-len b/tests/cp/proc-zero-len index aef5e5a62..33e5802a5 100755 --- a/tests/cp/proc-zero-len +++ b/tests/cp/proc-zero-len @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch empty || framework_failure diff --git a/tests/cp/r-vs-symlink b/tests/cp/r-vs-symlink index 6ee237037..08070f7d9 100755 --- a/tests/cp/r-vs-symlink +++ b/tests/cp/r-vs-symlink @@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh echo abc > foo || framework_failure ln -s foo slink || framework_failure diff --git a/tests/cp/same-file b/tests/cp/same-file index b32d2d81f..e5cc8237e 100755 --- a/tests/cp/same-file +++ b/tests/cp/same-file @@ -23,7 +23,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh # Unset CDPATH. Otherwise, output from the `cd dir' command # can make this test fail. diff --git a/tests/cp/slink-2-slink b/tests/cp/slink-2-slink index 8fd1dac8f..c86a251dd 100755 --- a/tests/cp/slink-2-slink +++ b/tests/cp/slink-2-slink @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh touch file || framework_failure ln -s file a || framework_failure diff --git a/tests/cp/sparse b/tests/cp/sparse index 0d915df57..2c2024ce3 100755 --- a/tests/cp/sparse +++ b/tests/cp/sparse @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_sparse_support_ # Create a sparse file. diff --git a/tests/cp/special-bits b/tests/cp/special-bits index e0f8bbb0d..c75fb5014 100755 --- a/tests/cp/special-bits +++ b/tests/cp/special-bits @@ -25,7 +25,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh require_root_ touch a b c || framework_failure diff --git a/tests/cp/special-f b/tests/cp/special-f index 82e6ae27b..054ad70b4 100755 --- a/tests/cp/special-f +++ b/tests/cp/special-f @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkfifo fifo || skip_test_ "fifos not supported" diff --git a/tests/cp/src-base-dot b/tests/cp/src-base-dot index a20268be0..09aedb21f 100755 --- a/tests/cp/src-base-dot +++ b/tests/cp/src-base-dot @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir x y || framework_failure diff --git a/tests/cp/symlink-slash b/tests/cp/symlink-slash index a5854e1b9..893a413e7 100755 --- a/tests/cp/symlink-slash +++ b/tests/cp/symlink-slash @@ -22,7 +22,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh mkdir dir || framework_failure ln -s dir symlink || framework_failure diff --git a/tests/cp/thru-dangling b/tests/cp/thru-dangling index aa494c597..71b41cd5d 100755 --- a/tests/cp/thru-dangling +++ b/tests/cp/thru-dangling @@ -21,7 +21,7 @@ if test "$VERBOSE" = yes; then cp --version fi -. $top_srcdir/tests/test-lib.sh +. $srcdir/test-lib.sh ln -s no-such dangle || framework_failure echo hi > f || framework_failure |