Lines Matching full:copy

9 DIR=${COPY}.dd
10 DIR2=${COPY}.dd2
11 COPY3=${OBJ}/copy.glob[123]
12 DIR3=${COPY}.dd.glob[456]
23 rm -rf ${COPY} ${COPY2} ${DIR} ${DIR2} ${COPY3} ${DIR3}
28 # Create directory structure for recursive copy tests.
32 cp ${DATA} ${DIR}/copy
33 ln -s ${DIR}/copy ${DIR}/copy-sym
35 cp ${DATA} ${DIR}/subdir/copy
47 verbose "$tag: simple copy local file to local file"
49 $SCP $scpopts ${DATA} ${COPY} || fail "copy failed"
50 cmp ${DATA} ${COPY} || fail "corrupted copy"
52 verbose "$tag: simple copy local file to remote file"
54 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
55 cmp ${DATA} ${COPY} || fail "corrupted copy"
57 verbose "$tag: simple copy remote file to local file"
59 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
60 cmp ${DATA} ${COPY} || fail "corrupted copy"
62 verbose "$tag: copy local file to remote file in place"
64 cp ${DATA} ${COPY}
65 $SCP $scpopts ${COPY} somehost:${COPY} || fail "copy failed"
66 cmp ${DATA} ${COPY} || fail "corrupted copy"
68 verbose "$tag: copy remote file to local file in place"
70 cp ${DATA} ${COPY}
71 $SCP $scpopts somehost:${COPY} ${COPY} || fail "copy failed"
72 cmp ${DATA} ${COPY} || fail "corrupted copy"
74 verbose "$tag: copy local file to remote file clobber"
76 cat ${DATA} ${DATA} > ${COPY}
77 $SCP $scpopts ${DATA} somehost:${COPY} || fail "copy failed"
78 ls -l $DATA $COPY
79 cmp ${DATA} ${COPY} || fail "corrupted copy"
81 verbose "$tag: copy remote file to local file clobber"
83 cat ${DATA} ${DATA} > ${COPY}
84 $SCP $scpopts somehost:${DATA} ${COPY} || fail "copy failed"
85 cmp ${DATA} ${COPY} || fail "corrupted copy"
87 verbose "$tag: simple copy local file to remote dir"
89 cp ${DATA} ${COPY}
90 $SCP $scpopts ${COPY} somehost:${DIR} || fail "copy failed"
91 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
93 verbose "$tag: simple copy local file to local dir"
95 cp ${DATA} ${COPY}
96 $SCP $scpopts ${COPY} ${DIR} || fail "copy failed"
97 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
99 verbose "$tag: simple copy remote file to local dir"
101 cp ${DATA} ${COPY}
102 $SCP $scpopts somehost:${COPY} ${DIR} || fail "copy failed"
103 cmp ${COPY} ${DIR}/copy || fail "corrupted copy"
107 $SCP $scpopts -r ${DIR} somehost:${DIR2} || fail "copy failed"
108 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
113 cp ${DATA} ${DIR}/copy
114 $SCP $scpopts -r ${DIR} ${DIR2} || fail "copy failed"
115 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
120 cp ${DATA} ${DIR}/copy
121 $SCP $scpopts -r somehost:${DIR} ${DIR2} || fail "copy failed"
122 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
126 $SCP $scpopts ${DATA} somehost:${COPY3} || fail "copy failed"
127 cmp ${DATA} ${COPY3} || fail "corrupted copy"
131 $SCP $scpopts somehost:${COPY3} ${COPY2} || fail "copy failed"
132 cmp ${DATA} ${COPY2} || fail "corrupted copy"
137 cp ${DATA} ${DIR}/copy
138 cp ${DATA} ${DIR}/copy.glob[1234]
139 $SCP $scpopts -r ${DIR} somehost:${DIR3} || fail "copy failed"
140 diff ${DIFFOPT} ${DIR} ${DIR3} || fail "corrupted copy"
145 $SCP $scpopts -r somehost:${DIR3} ${DIR2} || fail "copy failed"
146 diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
158 cp -p ${DATA} ${DIR}/copy
160 cp ${DATA} ${DIR2}/copy
161 chmod 660 ${DIR2}/copy
162 $SUDO chown root ${DIR2}/copy
164 $SUDO diff ${DIFFOPT} ${DIR} ${DIR2} || fail "corrupted copy"
165 $SUDO rm ${DIR2}/copy
193 echo a > ${COPY}
195 $SCP $scpopts ${DATA} ${COPY} ${COPY2}
196 cmp ${COPY} ${COPY2} >/dev/null && fail "corrupt target"