Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 109) sorted by relevance

12345

/coreutils/tests/cp/
Ddebug.sh20 print_ver_ cp
23 cp --debug file file.cp >cp.out || fail=1
24 grep 'copy offload:.*reflink:.*sparse detection:' cp.out || fail=1
25 cp --debug --attributes-only file file.cp >cp.out || fail=1
26 returns_ 1 grep 'copy offload:.*reflink:.*sparse detection:' cp.out || fail=1
28 touch file.cp || framework_failure_
29 cp --debug --update=none file file.cp >cp.out || fail=1
30 grep 'skipped' cp.out || fail=1
Dpreserve-gid.sh20 print_ver_ cp
89 t0 a0 0 0 cp
90 t0 b0 0 0 cp
91 t0 b1 0 0 cp
92 t0 c0 0 0 cp
93 t0 c1 0 0 cp
95 t0 a0 0 0 cp -p
96 t0 b0 "$nameless_uid" "$nameless_gid1" cp -p
97 t0 b1 "$nameless_uid" "$nameless_gid2" cp -p
98 t0 c0 0 "$nameless_gid1" cp -p
[all …]
Dinto-self.sh25 print_ver_ cp
31 cp -R dir dir 2> out && fail=1
35 cp -rl dir dir 2>> out && fail=1
38 cp -rl a dir dir 2>> out && fail=1
40 cp -rl a dir dir 2>> out && fail=1
44 cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
46 cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
48 cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
50 cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
Dsparse-2.sh20 print_ver_ cp dd
35 cp --reflink=never --sparse=$i k k2 || fail=1
47 cp --debug --reflink=never --sparse=always k k2 >cp.out || fail=1
49 grep 'sparse detection: .*zeros' cp.out || { cat cp.out; fail=1; }
52 cp --debug --sparse=never k k2 >cp.out || fail=1
54 grep 'copy offload: avoided, reflink: no' cp.out || { cat cp.out; fail=1; }
Dsame-file.sh21 print_ver_ cp
96 cp $options $args 2>_err
121 *) echo cp FAILED;;
136 1 [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
137 1 -d [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
138 1 -f [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
139 1 -df [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
145 1 -l [cp: cannot create hard link 'symlink' to 'foo'] (foo symlink -> foo)
146 1 -dl [cp: cannot create hard link 'symlink' to 'foo'] (foo symlink -> foo)
153 1 -s [cp: cannot create symlink 'symlink' to 'foo'] (foo symlink -> foo)
[all …]
Dcp-a-selinux.sh23 print_ver_ cp
37 cp -a c d 2>err || framework_failure_
38 cp --preserve=context c e || framework_failure_
39 cp --preserve=all c f || framework_failure_
59 cp -a backup/. restore/ || fail=1
74 cp -r --parents --preserve=context parents/a/b/file parents_dest || fail=1
93 cp -a c Z1 || fail=1
94 cp -a c_d Z1_d || fail=1
101 cp -Z c Z2 || fail=1
106 cp -aZ c Z3 || fail=1
[all …]
Dsparse-extents.sh20 print_ver_ cp
59 timeout 3 cp --reflink=never --sparse=always empty.big cp.test || fail=1
60 test $(stat -c %s empty.big) = $(stat -c %s cp.test) || fail=1
61 rm empty.big cp.test
76 cp --reflink=never --sparse=$sparse_arg unwritten.withdata cp.test || fail=1
77 test $(stat -c %s unwritten.withdata) = $(stat -c %s cp.test) || fail=1
78 cmp unwritten.withdata cp.test || fail=1
79 rm unwritten.withdata cp.test || framework_failure_
Dcp-i.sh20 print_ver_ cp
27 echo n | returns_ 1 cp -iR a b 2>/dev/null || fail=1
36 echo n | returns_ 1 cp -vi c d 2>/dev/null > out1 || fail=1
40 echo y | cp -vi c d 2>/dev/null > out2 || fail=1
44 echo y | cp -vni c d 2>/dev/null > out3 || fail=1
48 echo y | returns_ 1 cp -vin c d 2>/dev/null > out4 || fail=1
52 echo y | returns_ 1 cp -in c d 2>err4 > out4 || fail=1
57 echo y | cp -vfi c d 2>/dev/null > out5 || fail=1
61 echo n | returns_ 1 cp -vfn c d 2>/dev/null > out6 || fail=1
65 echo n | returns_ 1 cp -vnf c d 2>/dev/null > out7 || fail=1
[all …]
Dpreserve-mode.sh20 print_ver_ cp
29 cp --no-preserve=mode b c || fail=1
34 cp --no-preserve=mode a b || fail=1
40 cp --no-preserve=mode -r d2 d3 || fail=1
47 cp --no-preserve=mode --preserve=all a b || fail=1
52 cp -a --no-preserve=mode fifo fifo_copy || fail=1
62 cp a b || fail=1
63 cp --preserve=ownership a c || fail=1
Dreflink-auto.sh20 print_ver_ cp
30 returns_ 1 cp --reflink "$a_other" b || fail=1
33 cp --reflink=auto "$a_other" b || fail=1
38 cp --reflink=auto --sparse=always "$a_other" b || fail=1
42 cp --reflink=auto --reflink=never "$a_other" b || fail=1
Dfail-perm.sh19 print_ver_ cp
30 returns_ 1 cp -pR D DD > /dev/null 2>&1 || fail=1
41 cp: cannot stat 'symlink': Permission denied
44 cp F symlink 2> out && fail=1
52 cp --no-target-directory F symlink 2> out && fail=1
57 cp: target directory 'symlink': Permission denied
60 cp --target-directory=symlink F 2> out && fail=1
Dcp-parents.sh19 print_ver_ cp
35 cp -R --parents foo/ bar || fail=1
39 cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
44 returns_ 1 cp --parents f/g d 2>/dev/null || fail=1
49 cp -a --parents d/a/b/c e || fail=1
50 cp -a --parents sym/b/c g || fail=1
66 cp --parents --no-preserve=mode np/b/file np_dest/ || fail=1
72 cp -t dest --parents -p /bin/ls || fail=1
Dlink-symlink.sh20 print_ver_ cp
35 cp -al link link.cp || fail=1
36 case $(stat --format=%y link.cp) in
Ddir-rm-dest.sh20 print_ver_ cp
25 cp -R --remove-destination d e || fail=1
28 cp -R --remove-destination d e || fail=1
33 cp --remove-destination file loop || fail=1
Dattr-existing.sh20 print_ver_ cp
26 cp --attributes-only file1 file2 || fail=1
32 cp -a --attributes-only file1 file2 || fail=1
36 returns_ 1 cp -a --attributes-only sym1 file2 || fail=1
40 cp -a --remove-destination --attributes-only sym1 file2 || fail=1
Dproc-short-read.sh20 print_ver_ cp
29 cp $proc_large 1 2>err \
38 sed "$del_varying" 1 > proc.cp || framework_failure_
41 compare proc.cp proc.cat || fail=1
Dbackup-dir.sh20 print_ver_ cp
25 cp -a x y || fail=1
28 cp -ab x y || fail=1
36 cp --recursive --backup src/* dst || fail=1
Dlink-preserve.sh21 print_ver_ cp
26 cp -d a b c || framework_failure_
40 cp --preserve=links -R -H a b c || fail=1
49 cp --preserve=links -R -L d c || fail=1
57 cp --preserve=links -R -L d c || fail=1
65 cp -dR --no-preserve=links d c || fail=1
75 cp -d a b c || fail=1
85 cp -a --no-preserve=mode a b || fail=1
Dlink-heap.sh20 print_ver_ cp
25 vm=$(get_min_ulimit_v_ cp -al f f2) \
35 cp -al $a $b || framework_failure_
40 (ulimit -v $(($vm+4000)) && cp -al e f) || fail=1
Dperm.sh20 print_ver_ cp mv
32 for cmd in mv 'cp -p' cp; do
47 test "$cmd" = cp && { test -f src || exit 1; }
51 cp:*:yes)
56 cp:*:no)
Dcp-mv-enotsup-xattr.sh22 print_ver_ cp mv
70 cp -a xattr/a noxattr/ 2>err || fail=1
77 cp --preserve=all xattr/a noxattr/ 2>err || fail=1
82 cp --preserve=all xattr/a noxattr/ 2>err || fail=1
89 cp -a --preserve=xattr xattr/a noxattr/ 2>err && fail=1
92 cp: setting attributes for 'noxattr/a': Operation not supported
96 cp: cannot preserve extended attributes, cp is built without xattr support
Dreflink-perm.sh20 print_ver_ cp
31 cp --reflink=auto --preserve file copy || fail=1
40 cp --reflink=auto --preserve --attributes-only file2 empty_copy || fail=1
42 cp --reflink=always --preserve --attributes-only file2 empty_copy || fail=1
Dlink.sh21 print_ver_ cp
28 cp -f --link src dest || fail=1
29 cp -f --symbolic-link src dest2 || fail=1
/coreutils/tests/mv/
Dpart-symlink.sh21 print_ver_ cp mv
58 for copy in cp mv; do
126 if test $copy = cp; then
155 1 cp loc_reg rem_sl
156 [cp: 'loc_reg' and 'rem_sl' are the same file]
158 0 cp --rem loc_reg rem_sl
160 0 cp --rem -d loc_reg rem_sl
162 0 cp --rem -b loc_reg rem_sl
164 0 cp -b loc_reg rem_sl
166 0 cp -bd loc_reg rem_sl
[all …]
/coreutils/src/
Dlogname.c52 char *cp; in main() local
74 cp = getlogin (); in main()
75 if (! cp) in main()
78 puts (cp); in main()

12345