Lines Matching full:copy

9 DIR=${COPY}.dd
10 DIR2=${COPY}.dd2
11 COPY3=${OBJ}/copy.glob[123]
12 DIR3=${COPY}.dd.glob[456]
28 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} ${COPY3} ${DIR3}
33 # Create directory structure for recursive copy tests.
37 cp ${DATA} ${DIR}/copy
38 ln -s ${DIR}/copy ${DIR}/copy-sym
40 cp ${DATA} ${DIR}/subdir/copy
52 verbose "$tag: simple copy local file to local file"
54 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
55 cmp ${DATA} ${COPY} || fail "corrupted copy"
57 verbose "$tag: simple copy local file to remote file"
59 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
60 cmp ${DATA} ${COPY} || fail "corrupted copy"
62 verbose "$tag: simple copy remote file to local file"
64 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
65 cmp ${DATA} ${COPY} || fail "corrupted copy"
67 verbose "$tag: copy local file to remote file in place"
69 cp ${DATA} ${COPY}
70 $SCP $scpopts ${COPY} somehost:${COPY} || fail "copy failed"
71 cmp ${DATA} ${COPY} || fail "corrupted copy"
73 verbose "$tag: copy remote file to local file in place"
75 cp ${DATA} ${COPY}
76 $SCP $scpopts somehost:${COPY} ${COPY} || fail "copy failed"
77 cmp ${DATA} ${COPY} || fail "corrupted copy"
79 verbose "$tag: copy local file to remote file clobber"
81 cat ${DATA} ${DATA} > ${COPY}
82 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
83 ls -l $DATA $COPY
84 cmp ${DATA} ${COPY} || fail "corrupted copy"
86 verbose "$tag: copy remote file to local file clobber"
88 cat ${DATA} ${DATA} > ${COPY}
89 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
90 cmp ${DATA} ${COPY} || fail "corrupted copy"
92 verbose "$tag: simple copy local file to remote dir"
94 cp ${DATA} ${COPY}
95 $SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
96 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
98 verbose "$tag: simple copy local file to local dir"
100 cp ${DATA} ${COPY}
101 $SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
102 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
104 verbose "$tag: simple copy remote file to local dir"
106 cp ${DATA} ${COPY}
107 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
108 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
112 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
113 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
118 cp ${DATA} ${DIR}/copy
119 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
120 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
125 cp ${DATA} ${DIR}/copy
126 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
127 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
131 $SCP $scpopts ${DATA} somehost:${COPY3} || fail "copy failed"
132 cmp ${DATA} ${COPY3} || fail "corrupted copy"
136 $SCP $scpopts somehost:${COPY3} ${COPY2} || fail "copy failed"
137 cmp ${DATA} ${COPY2} || fail "corrupted copy"
142 cp ${DATA} ${DIR}/copy
143 cp ${DATA} ${DIR}/copy.glob[1234]
144 $SCP $scpopts -r ${DIR} somehost:${DIR3} || fail "copy failed"
145 diff ${DIFFOPT} ${DIR} ${DIR3} || fail "corrupted copy"
150 $SCP $scpopts -r somehost:${DIR3} ${DIR2} || fail "copy failed"
151 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
163 cp -p ${DATA} ${DIR}/copy
165 cp ${DATA} ${DIR2}/copy
166 chmod 660 ${DIR2}/copy
167 $SUDO chown root ${DIR2}/copy
169 $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
170 $SUDO rm ${DIR2}/copy
198 echo a > ${COPY}
200 $SCP $scpopts ${DATA} ${COPY} ${COPY2}
201 cmp ${COPY} ${COPY2} >/dev/null && fail "corrupt target"